db/gramar.go

35 lines
598 B
Go
Raw Permalink Normal View History

2023-04-12 15:58:25 +08:00
package db
type IGrammar interface {
SetTablePrefix(prefix string)
GetTablePrefix() string
SetBuilder(builder *Builder)
GetBuilder() *Builder
CompileInsert([]map[string]interface{}) string
CompileInsertOrIgnore([]map[string]interface{}) string
CompileDelete() string
CompileUpdate(map[string]interface{}) string
CompileSelect() string
CompileExists() string
Wrap(interface{}, ...bool) string
WrapTable(interface{}) string
CompileComponentWheres() string
CompileComponentJoins() string
CompileRandom(seed string) string
//Wrap(value string, b *query.Builder) string
}