Documentation
¶
Index ¶
- func GetConfig() *viper.Viper
- func InitORMConfig(configFilePath string) (err error)
- func UseViperConfig(config *viper.Viper)
- type BoolORM
- type BulkWriteOperation
- type DBConfig
- type MongoBulkWriteOperation
- type MongoDBConfig
- type MySQLConfig
- type ORM
- func Init(configPath ...string) ORM
- func InitMongoDB(configPath ...string) ORM
- func InitMongoDBWithDBConfig(config *MongoDBConfig) ORM
- func InitMongoDBWithDBConfigWithError(config *MongoDBConfig) (ORM, error)
- func InitMongoDBWithError(configPath ...string) (ORM, error)
- func InitMySQL(configPath ...string) ORM
- func InitMySQLWithDBConfig(config *MySQLConfig) ORM
- func InitMySQLWithDBConfigWithError(config *MySQLConfig) (ORM, error)
- func InitMySQLWithError(configPath ...string) (ORM, error)
- func InitSQLite(configPath ...string) ORM
- func InitSQLiteWithDBConfig(config *SQLiteConfig) ORM
- func InitSQLiteWithDBConfigWithError(config *SQLiteConfig) (ORM, error)
- func InitSQLiteWithError(configPath ...string) (ORM, error)
- func InitWithDBConfig(config *DBConfig) ORM
- func InitWithDBConfigWithError(config *DBConfig) (ORM, error)
- func InitWithError(configPath ...string) (ORM, error)
- type ORMModel
- type ORMQuary
- type SQLiteConfig
- type Session
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 MongoDBConfig ¶ added in v0.3.5
type MongoDBConfig = conf.MongoDBConfig
type MySQLConfig ¶ added in v0.3.5
type MySQLConfig = conf.MySQLConfig
type ORM ¶
func InitMongoDB ¶ added in v0.0.2
初始化MongoDB连接(带错误panic)
func InitMongoDBWithDBConfig ¶ added in v0.3.5
func InitMongoDBWithDBConfig(config *MongoDBConfig) ORM
func InitMongoDBWithDBConfigWithError ¶ added in v0.3.5
func InitMongoDBWithDBConfigWithError(config *MongoDBConfig) (ORM, error)
func InitMongoDBWithError ¶ added in v0.3.1
初始化MongoDB连接(返回错误)
func InitMySQLWithDBConfig ¶ added in v0.3.5
func InitMySQLWithDBConfig(config *MySQLConfig) ORM
使用配置结构体初始化MySQL
func InitMySQLWithDBConfigWithError ¶ added in v0.3.5
func InitMySQLWithDBConfigWithError(config *MySQLConfig) (ORM, error)
使用配置结构体初始化MySQL
func InitMySQLWithError ¶ added in v0.3.1
初始化MySQL连接(返回错误)
func InitSQLiteWithDBConfig ¶ added in v0.3.5
func InitSQLiteWithDBConfig(config *SQLiteConfig) ORM
使用配置结构体初始化SQLite
func InitSQLiteWithDBConfigWithError ¶ added in v0.3.5
func InitSQLiteWithDBConfigWithError(config *SQLiteConfig) (ORM, error)
使用配置结构体初始化SQLite
func InitSQLiteWithError ¶ added in v0.3.1
初始化SQLite连接(返回错误)
func InitWithDBConfigWithError ¶ added in v0.3.5
使用配置结构体初始化
func InitWithError ¶ added in v0.3.1
初始化ORM连接(返回错误)
type SQLiteConfig ¶ added in v0.3.5
type SQLiteConfig = conf.SQLiteConfig
Click to show internal directories.
Click to hide internal directories.