Documentation
¶
Index ¶
- func Query[T any](q Queryer, tag, query string, a ...any) ([]T, error)
- func QueryRow[T any](q RowQueryer, tag, query string, a ...any) (T, error)
- func ScanRows[T any](rows *sql.Rows, tag string) ([]T, error)
- func ScriptMigration(script string) func(*sql.Tx) error
- type Builder
- type FieldList
- type Migration
- type ParamFunc
- type Queryer
- type Raw
- type RawBuilder
- type RawList
- type RawStringer
- type RowQueryer
- type ValList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RawBuilder ¶
type RawBuilder struct {
// contains filtered or unexported fields
}
func (RawBuilder) Param ¶
func (b RawBuilder) Param(val any) string
Param converts val to a value safe to use in SQL. if it is Raw, the value will be returned. In any other case a parameter will be created
type RawList ¶
type RawList []string
RawList is a string slice that will be used as a comma seperated list of raw strings.
func (RawList) RawString ¶
func (s RawList) RawString(b RawBuilder) string
type RawStringer ¶
type RawStringer interface {
RawString(b RawBuilder) string
}
Click to show internal directories.
Click to hide internal directories.