Table Relationship in SQLAlchemy without ForeignKey

  • Posted on: 5 March 2015
  • By: oon
SQLAlchemy Relationship

Secara umum Relationship di SQLAlchemy dibangun dengan mengecek ForeignKey antara 2 table, tapi jika ingin membentuk Relationship lain, bisa menggunakan pendefinisian join seperti dijelaskan pada situs berikut.

http://docs.sqlalchemy.org/en/latest/orm/join_conditions.html#specifying...

Masih bingung dengan Relationship di SQLAlchemy? Artikel berikut ini memberikan penjelasan yang mudah dan disertai contoh.

http://lucumr.pocoo.org/2011/7/19/sqlachemy-and-you/

 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.