tranny / App /modelInit.py
Mbonea's picture
changed db
ca40eab
raw
history blame contribute delete
264 Bytes
import databases
import orm, asyncio
import os
dbLink = 'postgresql+asyncpg://postgres.vfhoydxvxuesxhrcdnmx:[email protected]:5432/postgres'
database = databases.Database(dbLink)
models = orm.ModelRegistry(database=database)