Skip to content

Commit ff4fa20

Browse files
committed
db
1 parent 4e75bcc commit ff4fa20

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

db.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
'''
2+
/**
3+
* @file db.py
4+
* @author Krisna Pranav
5+
* @brief Database
6+
* @version 1.0
7+
* @date 2024-11-25
8+
*
9+
* @copyright Copyright (c) 2024 ThunderPayment Developers, Krisna Pranav
10+
*
11+
*/
12+
'''
13+
14+
from gino import Gino
15+
16+
db = Gino(
17+
naming_convention={
18+
"ix": "%(column_0_label)s_idx",
19+
"uq": "%(table_name)s_%(column_0_name)s_key",
20+
"ck": "%(table_name)s_%(constraint_name)s_check",
21+
"fk": "%(table_name)s_%(column_0_name)s_%(referred_table_name)s_fkey",
22+
"pk": "%(table_name)s_pkey",
23+
}
24+
)

0 commit comments

Comments
 (0)