Open fantix opened 6 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
You're right - fixing that now. Thanks!
Tutorials
How-To Guides
Explanation