Documentation
¶
Index ¶
- Variables
- func Close() error
- func GetDB() *dbExecutor
- func JSONScan(value any, o any) error
- func JSONValue(o any) (driver.Value, error)
- func JoinColumnNames(columns ...string) string
- func JoinPrefixedColumnNames(prefix string, columns ...string) string
- func Ping()
- func PrepareFTS5Query(query string, lenient bool) string
- func Query(query string, args ...any) (*sql.Rows, error)
- func QueryRow(query string, args ...any) *sql.Row
- func ToValues[T any](values []T, format string) string
- type AdvisoryLock
- type CommaSeperatedInt
- type CommaSeperatedString
- type ConnectionURI
- type DB
- type DBDialect
- type DSNModifier
- type DateOnly
- type Executor
- type JSONIntList
- type JSONStringList
- type NullString
- type Timestamp
- type Tx
Constants ¶
This section is empty.
Variables ¶
View Source
var BooleanFalse string
View Source
var BooleanTrue string
View Source
var CurrentTimestamp string
View Source
var Exec = getExec(db)
View Source
var FnJSONGroupArray string
View Source
var FnJSONObject string
View Source
var NewAdvisoryLock func(names ...string) AdvisoryLock
Functions ¶
func JoinColumnNames ¶
func JoinPrefixedColumnNames ¶
func PrepareFTS5Query ¶
Types ¶
type AdvisoryLock ¶
type CommaSeperatedInt ¶
type CommaSeperatedInt []int
func (*CommaSeperatedInt) Scan ¶
func (csi *CommaSeperatedInt) Scan(value any) error
type CommaSeperatedString ¶
type CommaSeperatedString []string
func (*CommaSeperatedString) Scan ¶
func (css *CommaSeperatedString) Scan(value any) error
type ConnectionURI ¶
func ParseConnectionURI ¶
func ParseConnectionURI(connection_uri string) (ConnectionURI, error)
func (ConnectionURI) DSN ¶
func (uri ConnectionURI) DSN(mods ...DSNModifier) string
type JSONIntList ¶
type JSONIntList []int
func (*JSONIntList) Scan ¶
func (list *JSONIntList) Scan(value any) error
type JSONStringList ¶
type JSONStringList []string
func (*JSONStringList) Scan ¶
func (list *JSONStringList) Scan(value any) error
type NullString ¶
type NullString struct {
String string
}
func (NullString) Is ¶
func (nv NullString) Is(value string) bool
func (NullString) IsZero ¶
func (nv NullString) IsZero() bool
func (*NullString) Scan ¶
func (nv *NullString) Scan(value any) error
Click to show internal directories.
Click to hide internal directories.