Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import asyncio
- import peewee
- from peewee_async import Manager, PostgresqlDatabase
- loop = asyncio.new_event_loop() # Note: custom loop!
- database = PostgresqlDatabase('test')
- objects = Manager(database, loop=loop)
Add Comment
Please, Sign In to add comment