Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/giautm/eh-pg


https://github.com/giautm/eh-pg

Last synced: about 1 month ago
JSON representation

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)
```