feat(01-02): create Quill PostgreSQL context with ZIO integration
- Add QuillContext with dataSourceLayer and quillLayer - Update application.conf for HikariCP-compatible format - Export combined quillLive layer for database access
This commit is contained in:
@@ -5,6 +5,7 @@ server {
|
||||
port = ${?SERVER_PORT}
|
||||
}
|
||||
|
||||
# Database configuration for ZIO config (used by AppConfig)
|
||||
database {
|
||||
host = "localhost"
|
||||
host = ${?DB_HOST}
|
||||
@@ -17,3 +18,24 @@ database {
|
||||
password = "summercms"
|
||||
password = ${?DB_PASSWORD}
|
||||
}
|
||||
|
||||
# HikariCP configuration for Quill DataSource
|
||||
# Reads from "database" prefix via Quill.DataSource.fromPrefix
|
||||
database {
|
||||
dataSourceClassName = "org.postgresql.ds.PGSimpleDataSource"
|
||||
dataSource {
|
||||
serverName = "localhost"
|
||||
serverName = ${?DB_HOST}
|
||||
portNumber = 5432
|
||||
portNumber = ${?DB_PORT}
|
||||
databaseName = "summercms"
|
||||
databaseName = ${?DB_NAME}
|
||||
user = "summercms"
|
||||
user = ${?DB_USER}
|
||||
password = "summercms"
|
||||
password = ${?DB_PASSWORD}
|
||||
}
|
||||
# HikariCP pool settings
|
||||
maximumPoolSize = 10
|
||||
connectionTimeout = 30000
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user