Documentation
¶
Index ¶
- func GetConfig() *viper.Viper
- func InitORMConfig(configFilePath string) (err error)
- func UseViperConfig(config *viper.Viper)
- type BoolORM
- type BulkWriteOperation
- type MongoBulkWriteOperation
- type ORM
- func Init(configPath ...string) ORM
- func InitMongoDB(configPath ...string) ORM
- func InitMongoDBWithError(configPath ...string) (ORM, error)
- func InitMySQL(configPath ...string) ORM
- func InitMySQLWithError(configPath ...string) (ORM, error)
- func InitSQLite(configPath ...string) ORM
- func InitSQLiteWithError(configPath ...string) (ORM, error)
- func InitWithError(configPath ...string) (ORM, error)
- type ORMModel
- type ORMQuary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitORMConfig ¶ added in v0.0.2
初始化orm配置文件
Types ¶
type BulkWriteOperation ¶ added in v0.1.9
type BulkWriteOperation = types.BulkWriteOperation
type MongoBulkWriteOperation ¶ added in v0.1.9
type MongoBulkWriteOperation = types.MongoBulkWriteOperation
type ORM ¶
func InitMongoDB ¶ added in v0.0.2
初始化MongoDB连接(带错误panic)
func InitMongoDBWithError ¶ added in v0.3.1
初始化MongoDB连接(返回错误)
func InitMySQLWithError ¶ added in v0.3.1
初始化MySQL连接(返回错误)
func InitSQLiteWithError ¶ added in v0.3.1
初始化SQLite连接(返回错误)
func InitWithError ¶ added in v0.3.1
初始化ORM连接(返回错误)
Click to show internal directories.
Click to hide internal directories.