⚡️ Replace asyncpg with psycopg
This commit is contained in:
@@ -45,8 +45,16 @@ MODE = environ.get("MODE", "grpc")
|
||||
COLLECTOR_ENDPOINT_GRPC_ENDPOINT = environ.get(
|
||||
"COLLECTOR_ENDPOINT_GRPC_ENDPOINT", "127.0.0.1:14250" # "jaeger-collector:14250"
|
||||
)
|
||||
# TODO: Remove postgresql+asyncpg from environ variable
|
||||
DB_PATH = "postgresql+asyncpg://cer_user:cer_password@127.0.0.1:5438/cer_db"
|
||||
|
||||
# CREATE DATABASE "carrramba-encore-rate";
|
||||
# CREATE USER cer WITH ENCRYPTED PASSWORD 'cer_password';
|
||||
# GRANT ALL PRIVILEGES ON DATABASE "carrramba-encore-rate" TO cer;
|
||||
# \c "carrramba-encore-rate";
|
||||
# GRANT ALL ON schema public TO cer;
|
||||
# CREATE EXTENSION IF NOT EXISTS pg_trgm;
|
||||
|
||||
# TODO: Remove postgresql+psycopg from environ variable
|
||||
DB_PATH = "postgresql+psycopg://cer:cer_password@127.0.0.1:5432/carrramba-encore-rate"
|
||||
|
||||
|
||||
app = FastAPI()
|
||||
|
Reference in New Issue
Block a user