I found, sqlalhemy has reflection/"autoload" <http://docs.sqlalchemy.org/en/latest/core/reflection.html> feature per table.
and sqlsoup <https://sqlsoup.readthedocs.io/en/latest/tutorial.html> seems even better -- it analyses all tables at once - and can generate code (for sqlalchemy). probaly these can be applied for my conserns.. -- so one only needs to define extra constrains.. On Friday, July 7, 2017 at 2:49:41 PM UTC+3, Jurgis Pralgauskis wrote: > > Hi, > > As I understand I could autogenerate table definitions from MySQL > INFORMATION > SCHEMA <https://dev.mysql.com/doc/refman/en/information-schema.html> > (mostly TABLES and COLUMNS tables). > And references should be figured out somehow (probably in custom way) > > > Maybe someone has tried this? > Probably this is the way phpmyadmin / adminer knows db structure? > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.