mirror of
https://github.com/Paillat-dev/viralfactory.git
synced 2026-01-02 17:24:54 +00:00
16 lines
281 B
Python
16 lines
281 B
Python
import os
|
|
|
|
from sqlalchemy import create_engine
|
|
from sqlalchemy.orm import Session, sessionmaker
|
|
|
|
from . import Base
|
|
|
|
engine = create_engine(f"sqlite:///local/database/db.db")
|
|
|
|
SessionLocal = sessionmaker(bind=engine)
|
|
|
|
|
|
def init_db():
|
|
Base.metadata.create_all(engine)
|
|
pass
|