21 lines
319 B
Go
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()
|
||
|
}
|