https://github.com/go-helium/postgres
PostgreSQL module provides you connection to PostgreSQL server
https://github.com/go-helium/postgres
component golang helium module postgresql
Last synced: over 1 year ago
JSON representation
PostgreSQL module provides you connection to PostgreSQL server
- Host: GitHub
- URL: https://github.com/go-helium/postgres
- Owner: go-helium
- License: mit
- Created: 2019-02-24T20:16:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-24T14:27:28.000Z (about 2 years ago)
- Last Synced: 2024-06-24T16:18:30.543Z (about 2 years ago)
- Topics: component, golang, helium, module, postgresql
- Language: Go
- Homepage: https://github.com/im-kulikov/helium
- Size: 51.8 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PostgreSQL module (for Helium) provides you connection to PostgreSQL server

[](https://travis-ci.com/go-helium/redis)
[](https://goreportcard.com/report/github.com/go-helium/postgres)
[](https://github.com/go-helium/postgres)
[](https://sourcegraph.com/github.com/go-helium/postgres?badge)

Module provides you connection to PostgreSQL server
- `*pg.DB` is a database handle representing a pool of zero or more underlying connections. It's safe for concurrent use by multiple goroutines
Configuration:
- yaml example
```yaml
posgres:
hostname: string
username: string
password: string
database: string
debug: bool
pool_size: int
options: # optional
host: string
sslkey: string
sslmode: string
sslcert: string
sslrootcert: string
```
- env example
```
POSTGRES_HOSTNAME=string
POSTGRES_USERNAME=string
POSTGRES_PASSWORD=string
POSTGRES_DATABASE=string
POSTGRES_DEBUG=bool
POSTGRES_POOL_SIZE=int
POSTGRES_OPTIONS_HOST=string
POSTGRES_OPTIONS_SSLKEY=string
POSTGRES_OPTIONS_SSLMODE=string
POSTGRES_OPTIONS_SSLCERT=string
POSTGRES_OPTIONS_SSLROOTCERT=string
```