Files
eventstore/postgresql/postgresql.go
Yasuhiro Matsumoto 21f4750ac3 add KeepRecentEvents
2024-03-24 19:18:32 +09:00

21 lines
319 B
Go

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()
}