Files
khatru/storage/postgresql/postgresql.go
bndw 55f0f5a225 feat(postgres): configurable limits
Makes all hardcoded limits configurable for `type PostgresBackend` and retains the
current default values.

Related to #60
2023-06-05 11:49:23 -03:00

16 lines
242 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
}