-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml.example
40 lines (37 loc) · 1.09 KB
/
config.yaml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
connections:
# SQLite configuration examples
# SQLite with standard configuration
dev-db:
type: sqlite
path: /path/to/dev.db
password:
# SQLite with JDBC URL configuration
# jdbc:sqlite: URL supports query parameters:
# - mode=ro: Read-only mode
# - cache=shared: Shared cache mode
# Note: Password must be provided separately
prod-sqlite:
type: sqlite
jdbc_url: jdbc:sqlite:/path/to/prod.db?mode=ro
password: optional_password # Provided separately for security
# PostgreSQL configuration examples
# Standard configuration
test-db:
type: postgres
host: postgres.example.com
port: 5432
dbname: test_db
user: test_user
password: test_pass
# JDBC URL configuration
# Note: When using JDBC URL in code, provide credentials separately:
# PostgresConfig.from_jdbc_url(
# "jdbc:postgresql://prod.example.com:5432/prod_db",
# user="prod_user",
# password="your@special#password"
# )
prod-db:
type: postgres
jdbc_url: jdbc:postgresql://postgres.example.com:5432/prod-db
user: prod_user
password: prod_pass