Documentation ¶
Index ¶
- Variables
- func CRDBGetClient(instanceName string) (*gorm.DB, error)
- func CRDBGetDefaultClient() (*gorm.DB, error)
- func CRDBNew(ctx context.Context, config cockroachConfig.Config) (*gorm.DB, error)
- func CRDBNewClient(instanceName string) (*gorm.DB, error)
- func DB() *gorm.DB
- func GetClient(instanceName string) (*gorm.DB, error)
- func GetDefaultClient() (*gorm.DB, error)
- func GetDefaultClientDriverName() string
- func MySQLGetClient(instanceName string) (*gorm.DB, error)
- func MySQLGetDefaultClient() (*gorm.DB, error)
- func MySQLNew(ctx context.Context, config mysqlConfig.Config) (*gorm.DB, error)
- func MySQLNewClient(instanceName string) (*gorm.DB, error)
- func New(ctx context.Context, config dbDriver.Config) (*gorm.DB, error)
- func NewClient(instanceName string) (*gorm.DB, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CRDBDefaultInstanceClient *gorm.DB
View Source
var DefaultInstanceClient *gorm.DB
View Source
var MySQLDefaultInstanceClient *gorm.DB
Functions ¶
func CRDBGetDefaultClient ¶
CRDBGetDefaultClient -> this is a common function which helps getting the default Database client based on the current configuration!
func CRDBNewClient ¶
CRDBNewClient -> Get the default driver and generate a new client...
func GetDefaultClient ¶
GetDefaultClient -> this is a common function which helps getting the default Database client based on the current configuration!
func GetDefaultClientDriverName ¶
func GetDefaultClientDriverName() string
func MySQLGetDefaultClient ¶
MySQLGetDefaultClient -> this is a common function which helps getting the default Database client based on the current configuration!
func MySQLNewClient ¶
MySQLNewClient -> Get the default driver and generate a new client...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.