We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__tablename__
1 parent 494480c commit 28e9c55Copy full SHA for 28e9c55
docs/schema.rst
@@ -186,6 +186,10 @@ instance. Still the same example rewritten in GINO ORM::
186
print(await User.query.gino.all())
187
# Outputs: [<User object at 0x10a8ba860>]
188
189
+.. important::
190
+
191
+ The ``__tablename__`` is a mandatory field to define a concrete model.
192
193
As you can see, the declaration is pretty much the same as before. Underlying
194
they are identical, declaring two tables in ``db``. The ``class`` style is just
195
more declarative. Instead of ``users.c.name``, you can now access the column by
0 commit comments