Skip to content

Commit

Permalink
#15: no DB pooling.
Browse files Browse the repository at this point in the history
  • Loading branch information
garncarz committed Nov 9, 2018
1 parent 2ed6e7e commit 176d5f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nogamespy/database.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.pool import NullPool
from sqlalchemy.ext.declarative import declarative_base

from . import settings

db_engine = create_engine(
settings.DATABASE,
convert_unicode=True,
poolclass=NullPool,
)

db_session = scoped_session(
Expand Down

0 comments on commit 176d5f5

Please sign in to comment.