13 lines
352 B
Python
13 lines
352 B
Python
from constants import CONNECTION_URI
|
|
from sqlalchemy import MetaData, create_engine
|
|
from sqlalchemy.ext.declarative import declarative_base
|
|
from databases import Database
|
|
|
|
metadata = MetaData()
|
|
engine = create_engine(CONNECTION_URI)
|
|
metadata.create_all(engine)
|
|
Base = declarative_base()
|
|
database = Database(CONNECTION_URI)
|
|
|
|
from database import models
|