first commit

This commit is contained in:
2023-04-12 15:58:25 +08:00
commit 59b3faa171
30 changed files with 6257 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
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
}