Refactored db logic. Can now specify schema in config
This commit is contained in:
@@ -5,10 +5,12 @@
|
||||
database:
|
||||
url: "postgresql+asyncpg://username:password@hostname:5432/database_name"
|
||||
# Example: "postgresql+asyncpg://alpinebits_user:your_password@localhost:5432/alpinebits"
|
||||
schema: "alpinebits" # Optional: PostgreSQL schema name (default: public)
|
||||
|
||||
# If using annotatedyaml secrets:
|
||||
# database:
|
||||
# url: !secret POSTGRES_URL
|
||||
# schema: "alpinebits" # Optional: PostgreSQL schema name
|
||||
#
|
||||
# Then in secrets.yaml:
|
||||
# POSTGRES_URL: "postgresql+asyncpg://username:password@hostname:5432/database_name"
|
||||
|
||||
Reference in New Issue
Block a user