Documentation ¶
Index ¶
- Variables
- func CheckJoin(on_str, mainTable string) (join int, err error)
- func Connect(uri, dbName string, timeout, clientMaxNum uint64) (db *mongo.Database, err error)
- func Disconnect(db *mongo.Database) (err error)
- func GetIgnoreCase(db *gorm.DB) (b bool)
- func Parse(sql string, ignoreCase bool) (string, string, error)
- func ParsingDDLSQL(stmt sqlparser.Statement) (ret map[string]string, err error)
- func ParsingDeleteSQL(stmt sqlparser.Statement, ignoreCase bool) (ret map[string]string, err error)
- func ParsingInsertSQL(stmt sqlparser.Statement, ignoreCase bool) (ret map[string]string, err error)
- func ParsingSQL(sql string, ignoreCase bool) (ret map[string]string, err error)
- func ParsingSelectSQL(stmt sqlparser.Statement, ignoreCase bool) (ret map[string]string, err error)
- func ParsingUpdateSQL(stmt sqlparser.Statement, ignoreCase bool) (ret map[string]string, err error)
- func RegexEscapeString(input string) (out string)
- func ShowQueryInfo(sql, query string)
- func Sql2Mongo(gdb *gorm.DB, DB *mongo.Database, sql string, z1count, showQuery bool, ...) (result []bson.M, total int64, action string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *mongo.Database
View Source
var ReverseSlashFlag = `___z1ReverseSlashFlagz1____`
Functions ¶
func Connect ¶
connetc pool url mongodb://localhost:27017, mongodb://username:password@localhost:27017
func Disconnect ¶
func GetIgnoreCase ¶ added in v1.2.0
func ParsingDDLSQL ¶
func ParsingDeleteSQL ¶
func ParsingInsertSQL ¶
func ParsingSelectSQL ¶
func ParsingUpdateSQL ¶
func RegexEscapeString ¶ added in v1.3.1
func ShowQueryInfo ¶
func ShowQueryInfo(sql, query string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.