https://github.com/logicblocks/component.jdbc.data-source.postgres
A component providing a pooled postgres JDBC data source.
https://github.com/logicblocks/component.jdbc.data-source.postgres
Last synced: 21 days ago
JSON representation
A component providing a pooled postgres JDBC data source.
- Host: GitHub
- URL: https://github.com/logicblocks/component.jdbc.data-source.postgres
- Owner: logicblocks
- License: mit
- Created: 2020-04-10T19:55:10.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-03T11:11:25.000Z (over 1 year ago)
- Last Synced: 2024-06-03T20:19:50.366Z (over 1 year ago)
- Language: Clojure
- Size: 246 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# component.jdbc.data-source.postgres
[](https://clojars.org/io.logicblocks/component.jdbc.data-source.postgres)
[](https://clojars.org/io.logicblocks/component.jdbc.data-source.postgres)
[](https://github.com/logicblocks/component.jdbc.data-source.postgres/graphs/contributors)
A component providing a pooled postgres JDBC data source.
## Install
Add the following to your `project.clj` file:
```clj
[io.logicblocks/component.jdbc.data-source.postgres "0.1.2"]
```
## Documentation
* [API Docs](https://logicblocks.github.io/component.jdbc.data-source.postgres/index.html)
## Usage
```clojure
(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](http://opensource.org/licenses/MIT).