mirror of
https://github.com/aljazceru/khatru.git
synced 2026-01-09 16:34:23 +01:00
Makes all hardcoded limits configurable for `type PostgresBackend` and retains the current default values. Related to #60
16 lines
242 B
Go
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
|
|
}
|