2009/10/4 李白,字一日 <[email protected]>:
> class Student(Entity):
>  table = Field(Text)
>
> failed to create

Elixir replaces the .table attribute with a reference to the
underlying SQLAlchemy table object. If you must have a column in the
database called 'table' then you can use the following:

>>> class Student(Entity):
...   _table = Field(Text, colname='table')

See http://elixir.ematia.de/apidocs/elixir.fields.html for details.

Schiavo
Simon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to