12 lines
238 B
Python
12 lines
238 B
Python
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()
|
|
|