Skip to content

Commit

Permalink
db
Browse files Browse the repository at this point in the history
  • Loading branch information
krishpranav committed Dec 25, 2024
1 parent 4e75bcc commit ff4fa20
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions db.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'''
/**
* @file db.py
* @author Krisna Pranav
* @brief Database
* @version 1.0
* @date 2024-11-25
*
* @copyright Copyright (c) 2024 ThunderPayment Developers, Krisna Pranav
*
*/
'''

from gino import Gino

db = Gino(
naming_convention={
"ix": "%(column_0_label)s_idx",
"uq": "%(table_name)s_%(column_0_name)s_key",
"ck": "%(table_name)s_%(constraint_name)s_check",
"fk": "%(table_name)s_%(column_0_name)s_%(referred_table_name)s_fkey",
"pk": "%(table_name)s_pkey",
}
)

0 comments on commit ff4fa20

Please sign in to comment.