gino icon indicating copy to clipboard operation
gino copied to clipboard

Docs

Open fantix opened this issue 7 years ago • 2 comments

Tutorials

  • [x] tutorial (fantix)
  • [x] FastAPI tutorial (fantix)

How-To Guides

  • [x] schema (fantix)
  • [x] transaction (fantix)
  • [x] crud
  • [x] relationship (fantix)
  • [x] FAQ

Explanation

  • [x] engine (fantix)
  • [x] why (fantix)
  • [ ] GINO from scratch

fantix avatar Feb 26 '18 07:02 fantix

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

Karpov-Konstantin avatar May 05 '20 16:05 Karpov-Konstantin

You're right - fixing that now. Thanks!

fantix avatar May 05 '20 16:05 fantix