ASH84
Software Engineer focused on turning complexity into simplicity. Co-founder at Payhere. Previously Tech Lead of remit team at Banksalad.
Experience
- Head of tech Payhere.Inc, 2024βpresent
- CTO Payhere.Inc, 2020β2023
- TechLead, Banksalad, 2018β2020
- Senior Software Engineer Danal, 2014β2018
Latest Blog Posts
-
Aug 28, 2019μ½μλ¬λ 5th μμ λ°ννμμ΅λλ€.λ± ν¬μλ¬λμμ μ£Όμ΅ν μ½μλ¬λ 5th νμ΄μ½μλ¬λμμ SQLAlchemy CustomTypes μ λν΄μ λ°ννμ΅λλ€. μ€μ νλ‘λμ μ μ μ©ν΄μ Έμλ μ½λμ΄κΈ°λ νκ³ , DB μνΈνλ₯Ό μ§ννλ©΄μ κ³ λ―Όνλ λ΄μ©λ€μ λ΄μμ΅λλ€. ...
-
Sep 04, 2018SQLAlchemy Join #3 One to One**[One To One](http://docs.sqlalchemy.org/en/latest/orm/basic_relationships.html#one-to-one)** μΌλμΌ κ΄κ³μμλ μμͺ½ 맀νΌμμ μ€μΉΌλΌ μμ±μ ν΅ν μλ°©ν₯ κ΄κ³κ° νμμ μ΄λ€. μ΄κ²μ μν΄μ `uselist` flag κ° μλλ° μ΄κ²μ λ§μμͺ½("manyβ side of the relationship.)μ 컬λμ λμ μ μ€μΉΌλΌ μμ±μ μμΉλ₯Ό κ°λ¦¬ν¨λ€. μΌλλ€ λ₯Ό μΌλμΌλ‘ λ°κΎΈλ©΄, ```python class Parent(Base): ...
-
Aug 31, 2018SQLAlchemy Join #2 Many To One**Many To One** λ€λμΌ κ΄κ³μμ child λ₯Ό μ°Έμ‘°νλ μΈλν€λ parent ν΄λμ€μ μμΉν΄μλ€. `relationship()` ν¨μ λ parent ν΄λμ€μ μμΉν΄μμΌλ©°, scalar-holding μμ±μ΄ μμ±λ κ²μ΄λ€. ```python class Parent(Base): __tablename__ = 'parent' id = Column(Integer, primary_key=True) child_id = Column(Integer, ForeignKey('chi...
-
Aug 18, 2018SQLAlchemy Join #1 One To ManySQLAlchemy Join μ λν΄μ λ§μ°νκ² μ°λ€λ³΄λ μ¬λ¬κ°μ§ κ΄κ³ ν μ΄λΈμν©μμ μ λλ‘ μ¬μ©νμ§ λͺ»νκ³ μλ°κ²ν£κΈ°μμΌλ‘ μ°λ κ²½μ°κ° λ§μλ€. κ·Έλμ 곡μ λ¬Έμμμ Join κ΄λ ¨ λΆλΆ(μλμ URL)μ λ°λΌνλ©΄μ λ§νλ λΆλΆμ νμ΄λ³΄κ³ μ νλ€. [http://docs.sqlalchemy.org/en/latest/orm/relationships.html](http://docs.sqlalchemy.org/en/latest/orm/relationships.html) ## Basic Relationship Patterns ###...
-
Jul 30, 2018SQLAlchemy autocommit μ λν΄μDB μμμ autocommit μ΄λ λ°μ΄ν° λ³κ²½ μμ μ λν SQL μμ²΄κ° λ°λ‘ λ°μλλ κ²μ μλ―Ένλλ° autocommit μ΄ μλ μνμμλ μ¬λ¬μ€μ λͺ λ Ήμ νλμ νΈλμμ μΌλ‘ λ¬Άμμκ° μλ€.(κ°λ³ DBMS μμ§μ΄λ DBνμ μ λ°λΌ λ€λ₯Όμλ μλ€. μ¬κΈ°μμλ MYSQL InnoDB κΈ°λ°μΌλ‘ ν μ€νΈλ₯Ό μ§ννμλ€.) **mysql autocommit νμΈνκΈ°** ```python SELECT @@AUTOCOMMIT; ``` **mysql autocommit μ€μ /ν΄μ νκΈ°** ```python SET AUTOCOMM...
-
Sep 06, 2017flask-sqlalchemy multiple databases### **μ¬μ©νκΈ°** flask-sqlalchemy μμ κΈ°λ³Έμ μΌλ‘ `SQLALCHEMY_DATABASE_URI` μ€μ μ ν΅ν΄μ mapping class μ μ μλ ν μ΄λΈλ€μ΄ DBμ μ°κ²°λκ² λλ€. κ·Έλ°λ° 1κ° μ΄μμ DBμ μ°κ²°ν΄μΌνλ κ²½μ°κ° μκΈ΄λ€. κΈ°μ‘΄μ νμμ 보λ₯Ό κ°μ΄ μ°λ λ€λ₯Έ μλΉμ€μ κ²½μ°κ° λνμ μΈ μΌμ΄μ€μ΄λ€. μ΄λ΄κ²½μ°, flask-sqlalchemy μμλ `SQLALCHEMY_BINDS` λ₯Ό ν΅ν΄μ μ¬λ¬ λ°μ΄ν°λ² μ΄μ€ URIλ₯Ό μ§μ ν μ μκ² ν΄μ£Όκ³ μλ€. ```python app.config['SQLALCH...
-
Aug 24, 2016SQLAlchemy with StoreProcedure...