Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMysqlDsn ¶ added in v0.0.4
func GetPostgresqlDsn ¶ added in v0.0.4
Types ¶
type DbTypeGetDatabase ¶
type DbTypeGetDatabase interface {
GetDatabase() string
}
type DbTypeGetDsn ¶ added in v0.0.4
refer: https://gorm.io/zh_CN/docs/connecting_to_the_database.html
type DbTypeGetTables ¶
type DbTypeGetTables interface {
GetTables() []interface{}
}
type GormDb ¶
type GormDb[T comparable] struct { // contains filtered or unexported fields }
T is a type representing the database of mappings
func NewGormDb ¶
func NewGormDb[T comparable](config *Config) *GormDb[T]
Click to show internal directories.
Click to hide internal directories.