drivers

package module
v0.0.0-...-cb75e56 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 11 Imported by: 0

README

gorose-driver-mysql

mysql driver for gorose orm

Documentation

Index

Constants

View Source
const DriverName = "mysql"

Variables

This section is empty.

Functions

func BackQuotes

func BackQuotes(arg any) string

func Map

func Map[Data any, Datas ~[]Data, Result any](datas Datas, mapper func(Data) Result) []Result

func NamedSprintf

func NamedSprintf(format string, a ...any) string

func ToSlice

func ToSlice(arg any) []any

func TrimPrefixAndOr

func TrimPrefixAndOr(s string) string

Types

type Builder

type Builder struct {
}

func (Builder) ToSql

func (b Builder) ToSql(c *gorose.Context) (sql4prepare string, binds []any, err error)

func (Builder) ToSqlDelete

func (b Builder) ToSqlDelete(c *gorose.Context, obj any) (sqlSegment string, binds []any, err error)

func (Builder) ToSqlGroupBy

func (b Builder) ToSqlGroupBy(c *gorose.Context) (sql4prepare string)

func (Builder) ToSqlHaving

func (b Builder) ToSqlHaving(c *gorose.Context) (sql4prepare string, binds []any, err error)

func (Builder) ToSqlInsert

func (b Builder) ToSqlInsert(c *gorose.Context, obj any, args ...gorose.TypeToSqlInsertCase) (sqlSegment string, binds []any, err error)

ToSqlInsert insert

func (Builder) ToSqlJoin

func (b Builder) ToSqlJoin(c *gorose.Context) (sql4prepare string, binds []any, err error)

func (Builder) ToSqlLimitOffset

func (b Builder) ToSqlLimitOffset(c *gorose.Context) (sqlSegment string, binds []any)

func (Builder) ToSqlOrderBy

func (b Builder) ToSqlOrderBy(c *gorose.Context) (sql4prepare string)

func (Builder) ToSqlSelect

func (Builder) ToSqlSelect(c *gorose.Context) (sql4prepare string, binds []any)

func (Builder) ToSqlTable

func (b Builder) ToSqlTable(c *gorose.Context) (sql4prepare string, binds []any, err error)

func (Builder) ToSqlUpdate

func (b Builder) ToSqlUpdate(c *gorose.Context, arg any) (sqlSegment string, binds []any, err error)

func (Builder) ToSqlWhere

func (b Builder) ToSqlWhere(c *gorose.Context) (sql4prepare string, binds []any, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL