Categorygithub.com/gtkit/orm
modulepackage
1.0.0
Repository: https://github.com/gtkit/orm.git
Documentation: pkg.go.dev

# README

orm

gorm链接数据库

var mdb *gorm.DB
orm.MysqlConfig(
		orm.Host("127.0.0.1"),
		orm.Port("3306"),
		orm.DbType("mysql"),
		orm.Name("office_aid"),
		orm.User("root"),
	)
orm.GormConfig(
		orm.PrepareStmt(true),
		orm.SkipDefaultTransaction(true),
		orm.GormLog(logger.NewGormLogger()), // 此处注意,日志需要先实例化
	)

mdb = orm.NewMysql()

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
JSONOverlaps query column as json.
JSONQuery query column as json.
JSONSet update fields of json column.
No description provided by the author
No description provided by the author
No description provided by the author
NewTime is a constructor for Time and returns new Time.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

JSONOverlapsExpression JSON_OVERLAPS expression, implements clause.Expression interface to use as querier.
JSONQueryExpression json query expression, implements clause.Expression interface to use as querier.
JSONSetExpression json set expression, implements clause.Expression interface to use as updater.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
JSON defined JSON data type, need to implements driver.Valuer, sql.Scanner interface.
Time is time data type.
No description provided by the author