File size: 512 Bytes
252d749
fa1fb30
591d823
252d749
fa1fb30
252d749
fa1fb30
252d749
 
 
fa1fb30
e8e45ce
 
fa1fb30
 
252d749
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)