Title: Does SQLObject support creating a class from existing table in SQLite?

Hi, everybody,

I have created tables in SQLite, Can I define a class based on these tables?

For example, I have got a table 'address':

Create table address (
       id INTEGER PRIMARY KEY,
       addr TEXT,
       postcode TEXT);

I define the class:
    class Address(SQLObject):
          class sqlmeta:
                 fromDatabase = True
                 table = 'address'


It doesn't work. Is it right way to do it? Does SQLObject not support creating a class from existing table in SQLite at all?

If not, Does anybody know any other tools can do this job?

Any reply would be highly appreciated!

Kind Regards,

Wendy

_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to