• 3125 views
  • 0 comments
  • loading...

Define database table

DAL table constructor enables to define table with define_table, improve performance with lazy tables and addes custom attributes to to fields, Note, when custom atribues are used with tables, attributes must be preceded by an underscore to avoid naming conflicts with fields:

db.table._extra = {}

Related References


loading...

Sources / Reference

" Web2py Book - Chapter 6 Database Abstraction Level" is licensed under Creative Common License BY-NC-ND 3.0


Comments

loading...

Powered by
Web2py

Hosted on
www.pythonanywhere.com
(affiliated link)