Documentation
¶
Overview ¶
Package queries provides a set of SQL queries based on the driver
Index ¶
- Variables
- type Builder
- func (b *Builder) CheckTableExitsQuery(tableName string) (string, []any, error)
- func (b *Builder) ColumnsList(tableName string) (string, []any, error)
- func (b *Builder) CreateTable(tableName string, inputs []database.Input) (string, error)
- func (b *Builder) DeleteRow(tableName string, columns []models.ListDataCol, rows []any, argIdx int) (string, []any, error)
- func (b *Builder) DeleteTable(tableName string) string
- func (b *Builder) GetRow(tableName string, limit, offset int) (string, []any)
- func (b *Builder) InsertRow(tableName string, form map[string]models.FormValue) (string, []any, error)
- func (b *Builder) ListRows(tableName, orderCol, orderBy string, limit, offset int) (string, []any)
- func (b *Builder) ListTables() (string, error)
- func (b *Builder) UpdateRow(tableName string, form map[string]models.FormValue, ...) (string, []any, error)
- func (b *Builder) WhereCluse(cols []models.ListDataCol, rows []any, argsIdx int) (string, []any, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownDriver = errors.New("unknown driver")
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func (*Builder) CheckTableExitsQuery ¶
func (*Builder) ColumnsList ¶
func (*Builder) CreateTable ¶
func (*Builder) DeleteTable ¶
func (*Builder) ListTables ¶
func (*Builder) WhereCluse ¶
Click to show internal directories.
Click to hide internal directories.