forked from mtusi2026/mtusi2026lab7
Выполнение лабораторной работы номер 7
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
import db
|
||||
|
||||
|
||||
def main():
|
||||
db.pool.open(wait=True, timeout=30)
|
||||
try:
|
||||
db.run_migrations()
|
||||
finally:
|
||||
db.pool.close()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user