Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giautm/eh-pg
https://github.com/giautm/eh-pg
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/giautm/eh-pg
- Owner: giautm
- License: mit
- Created: 2019-02-08T06:15:12.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-08T06:41:16.000Z (almost 6 years ago)
- Last Synced: 2024-06-20T15:57:13.041Z (5 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EventHorizon with PostgreSQL
## Features
- EventStore
```golang
db := pg.Connect(&pg.Options{
Addr: os.Getenv("POSTGRES_ADDR"),
Database: os.Getenv("POSTGRES_DB"),
User: os.Getenv("POSTGRES_USER"),
Password: os.Getenv("POSTGRES_PASSWORD"),
})
defer db.Close()store, err := ehpg.NewEventStore(db)
```