Guest User

Untitled

a guest
Nov 21st, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import asyncio
  2. import peewee
  3. from peewee_async import Manager, PostgresqlDatabase
  4.  
  5. loop = asyncio.new_event_loop() # Note: custom loop!
  6. database = PostgresqlDatabase('test')
  7. objects = Manager(database, loop=loop)
Add Comment
Please, Sign In to add comment