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

21 lines
319 B
Go
Raw Permalink Normal View History

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