users and status working
This commit is contained in:
11
app/dependencies/engine.py
Normal file
11
app/dependencies/engine.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from sqlalchemy import create_engine
|
||||
|
||||
# engine_url="sqlite+pysqlite:///vpsx.db"
|
||||
engine_url="mariadb+pymysql://fast:fast@localhost/fast_vpsx?charset=utf8mb4"
|
||||
|
||||
|
||||
def get_engine():
|
||||
return create_engine(engine_url)
|
||||
|
||||
engine = get_engine()
|
||||
|
||||
Reference in New Issue
Block a user