35 lines
598 B
Go
35 lines
598 B
Go
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
|
|
}
|