yasuki_core.accounts.db.accounts_connection_string#

accounts_connection_string()[source]#

DSN for the accounts database — a separate Postgres from the card DB.

Read YASUKI_ACCOUNTS_DATABASE_URL; fall back to a local yasuki_accounts database so development needs only a second database on the same server, not a second server. Apply the same TLS treatment as the card pool (verify-full / require on public hosts).

Returns:
dsnstr

The accounts-database connection string.