import databases | |
import orm, asyncio | |
# deployment | |
# database = databases.Database( | |
# "postgresql+asyncpg://postgres:[email protected]:5432/postgres" | |
# ) | |
# development | |
# dbLink = "postgresql+asyncpg://postgres:[email protected]:5432/postgres" | |
dbLink = "postgresql+asyncpg://postgres:[email protected]:5432/postgres" | |
database = databases.Database(dbLink) | |
models = orm.ModelRegistry(database=database) | |