Skip to content

Commit

Permalink
chore: fix connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Oct 31, 2023
1 parent 8a3808b commit aca994f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions icon_stats/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,7 @@ def create_conn_str(
return f"{prefix}://{user}:{password}@{server}:{port}/{database}"


# ASYNC_SQLALCHEMY_DATABASE_URL = create_conn_str(**config.db.stats.__dict__)
ASYNC_CONNECTION_STRING = create_conn_str(
user="postgres",
password="changeme",
server="localhost",
database="postgres",
port="5432",
)
ASYNC_CONNECTION_STRING = create_conn_str(**config.db.stats.__dict__)


def create_db_connection_strings() -> dict[str, str]:
Expand All @@ -44,7 +37,6 @@ def create_session_factories() -> dict[str, async_sessionmaker]:
connection_string = create_conn_str(**db_config.__dict__)
engine = create_async_engine(
connection_string,
# connect_args={"options": f"-c search_path={db_config.schema_}"},
echo=True,
future=True,
)
Expand Down

0 comments on commit aca994f

Please sign in to comment.