Home > other >  Flask with sqlacodegen automatically generate the corresponding table models
Flask with sqlacodegen automatically generate the corresponding table models

Time:12-02

Because need paging, not directly use fetchall () method, must be generated by the query object can paginate paging properties,

But with sqlcodegen to establish essentially models do not support the tables, the default is to import table information, cannot be established corresponding models,

Consult everybody have support for importing used to generate models corresponding database table, or use pymssql connect to the database, and use the fetch method to get the data, is there good way paging,
  • Related