10 lines
328 B
Python
10 lines
328 B
Python
|
from bot_bde.config import config
|
||
|
from sqlalchemy import create_engine
|
||
|
from sqlalchemy.orm import sessionmaker
|
||
|
from sqlalchemy.ext.declarative import declarative_base
|
||
|
engine = create_engine(config.get("db"))
|
||
|
Session = sessionmaker(bind=engine)
|
||
|
Base = declarative_base()
|
||
|
#from db.foo import Barr
|
||
|
Base.metadata.create_all(engine)
|