A component providing a pooled postgres JDBC data source.
Add the following to your project.clj
file:
[io.logicblocks/component.jdbc-data-source.postgres "0.1.2"]
(require '[com.stuartsierra.component :as component])
(require '[component.jdbc-data-source.postgres.core
:as postgres-jdbc-data-source])
(def system
(component/system-map
:data-source (postgres-jdbc-data-source/create
{:host "localhost"
:port 5432
:user "admin"
:password "super-secret-password"
:database-name "test"})))
Copyright © 2023 LogicBlocks Maintainers
Distributed under the terms of the MIT License.
Can you improve this documentation? These fine people already did:
Toby Clemson & Circle CIEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close