python-gino / gino

GINO Is Not ORM - a Python asyncio ORM on SQLAlchemy core.
https://python-gino.org/
Other
2.67k stars 150 forks source link

Docs #146

Open fantix opened 6 years ago

fantix commented 6 years ago

Tutorials

How-To Guides

Explanation

Karpov-Konstantin commented 4 years ago

Hi, u probably forgot one closing bracket here https://python-gino.org/docs/en/master/how-to/loaders.html

now = db.Column('time', db.DateTime())
result = await db.first(db.text(
    'SELECT now() AT TIME ZONE \'UTC\''
).columns(
    now,
).gino.load(
    ('now:', now)
).first()
print(result)  # now: 2018-04-08 08:23:02.431847
fantix commented 4 years ago

You're right - fixing that now. Thanks!