Documentation ¶
Index ¶
- Constants
- func BackQuotes(arg any) string
- func Map[Data any, Datas ~[]Data, Result any](datas Datas, mapper func(Data) Result) []Result
- func NamedSprintf(format string, a ...any) string
- func ToSlice(arg any) []any
- func TrimPrefixAndOr(s string) string
- type Builder
- func (b Builder) ToSql(c *gorose.Context) (sql4prepare string, binds []any, err error)
- func (b Builder) ToSqlDelete(c *gorose.Context, obj any) (sqlSegment string, binds []any, err error)
- func (b Builder) ToSqlGroupBy(c *gorose.Context) (sql4prepare string)
- func (b Builder) ToSqlHaving(c *gorose.Context) (sql4prepare string, binds []any, err error)
- func (b Builder) ToSqlInsert(c *gorose.Context, obj any, args ...gorose.TypeToSqlInsertCase) (sqlSegment string, binds []any, err error)
- func (b Builder) ToSqlJoin(c *gorose.Context) (sql4prepare string, binds []any, err error)
- func (b Builder) ToSqlLimitOffset(c *gorose.Context) (sqlSegment string, binds []any)
- func (b Builder) ToSqlOrderBy(c *gorose.Context) (sql4prepare string)
- func (Builder) ToSqlSelect(c *gorose.Context) (sql4prepare string, binds []any)
- func (b Builder) ToSqlTable(c *gorose.Context) (sql4prepare string, binds []any, err error)
- func (b Builder) ToSqlUpdate(c *gorose.Context, arg any) (sqlSegment string, binds []any, err error)
- func (b Builder) ToSqlWhere(c *gorose.Context) (sql4prepare string, binds []any, err error)
Constants ¶
View Source
const DriverName = "mysql"
Variables ¶
This section is empty.
Functions ¶
func BackQuotes ¶
func NamedSprintf ¶
func TrimPrefixAndOr ¶
Types ¶
type Builder ¶
type Builder struct { }
func (Builder) ToSqlDelete ¶
func (Builder) ToSqlHaving ¶
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) ToSqlLimitOffset ¶
func (Builder) ToSqlSelect ¶
func (Builder) ToSqlTable ¶
func (Builder) ToSqlUpdate ¶
Click to show internal directories.
Click to hide internal directories.