Skip to content

logicblocks/component.jdbc.data-source.postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

component.jdbc.data-source.postgres

Clojars Project Clojars Downloads GitHub Contributors

A component providing a pooled postgres JDBC data source.

Install

Add the following to your project.clj file:

[io.logicblocks/component.jdbc.data-source.postgres "0.1.2"]

Documentation

Usage

(require '[com.stuartsierra.component :as component])
(require '[component.jdbc.data-source.postgres.core 
            :as postgres-jdbc-data-source])

(def system
  (component/system-map
    :postgres-data-source 
    (postgres-jdbc-data-source/create
      {:host "localhost"
       :port 5432
       :user "admin"
       :password "super-secret-password"
       :database-name "test"})))

License

Copyright © 2024 LogicBlocks Maintainers

Distributed under the terms of the MIT License.

About

A component providing a pooled postgres JDBC data source.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published