well-goknown/vendor/github.com/fiatjaf/eventstore/postgresql/postgresql.go

23 lines
340 B
Go

package postgresql
import (
"sync"
"github.com/jmoiron/sqlx"
)
type PostgresBackend struct {
sync.Mutex
*sqlx.DB
DatabaseURL string
QueryLimit int
QueryIDsLimit int
QueryAuthorsLimit int
QueryKindsLimit int
QueryTagsLimit int
KeepRecentEvents bool
}
func (b *PostgresBackend) Close() {
b.DB.Close()
}