Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
louis70109 committed Jun 5, 2021
1 parent c7df72b commit 715e6ea
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sql_app/database.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from sqlalchemy import MetaData, create_engine

from sqlalchemy.ext.declarative import declarative_base

from sqlalchemy.orm import sessionmaker
import os
# from databases import Database


SQLALCHEMY_DATABASE_URL = os.getenv('DATABASE_URI')
Expand All @@ -13,8 +10,6 @@
metadata = MetaData()
Base = declarative_base()

Base.metadata.create_all(bind=engine)
# database = Database(SQLALCHEMY_DATABASE_URL)
def get_db():
db = SessionLocal()
try:
Expand Down

0 comments on commit 715e6ea

Please sign in to comment.