tranny / App /modelInit.py
Mbonea's picture
hello
252d749
raw
history blame
402 Bytes
import databases
import orm
import psycopg2
#deployment
database = databases.Database(
"postgresql+asyncpg://postgres:[email protected]:5432/postgres"
)
#development
# database = databases.Database(
# "postgresql+asyncpg://postgres:[email protected]:5432/postgres"
# )
models = orm.ModelRegistry(database=database)