Documentation
¶
Index ¶
- Variables
- func Init()
- func MysqlDialector(configMap map[string]string) (dialector gorm.Dialector, err error)
- func NewRepo[T Repo](conn *gorm.DB, inRepo T) (repo T)
- func OracleDialector(configMap map[string]string) (dialector gorm.Dialector, err error)
- func SqliteDialector(configMap map[string]string) (dialector gorm.Dialector, err error)
- func SqliteVectorDialector(configMap map[string]string) (dialector gorm.Dialector, err error)
- func SqliteVectorProxy(db *gorm.DB) (proxy *sqliteVectorProxy)
- type Config
- type Dialector
- func (d Dialector) BindVarTo(writer clause.Writer, stmt *gorm.Statement, v interface{})
- func (d Dialector) DataTypeOf(field *schema.Field) string
- func (d Dialector) DefaultValueOf(field *schema.Field) clause.Expression
- func (d Dialector) Explain(sql string, vars ...interface{}) string
- func (d Dialector) Initialize(db *gorm.DB) (err error)
- func (d Dialector) Migrator(db *gorm.DB) gorm.Migrator
- func (d Dialector) Name() string
- func (d Dialector) QuoteTo(writer clause.Writer, str string)
- type GeneralRepo
- type Model
- type Repo
Constants ¶
This section is empty.
Variables ¶
View Source
var DBMgr = manager{}
Functions ¶
func MysqlDialector ¶
func OracleDialector ¶
func SqliteDialector ¶ added in v1.0.3
func SqliteVectorDialector ¶ added in v0.5.7
func SqliteVectorProxy ¶ added in v1.0.3
Types ¶
type Dialector ¶
type Dialector struct {
*Config
}
func (Dialector) DefaultValueOf ¶
func (d Dialector) DefaultValueOf(field *schema.Field) clause.Expression
type GeneralRepo ¶ added in v0.5.7
type GeneralRepo struct {
// contains filtered or unexported fields
}
func (*GeneralRepo) GetConn ¶ added in v0.5.7
func (repo *GeneralRepo) GetConn() *gorm.DB
func (*GeneralRepo) SetConn ¶ added in v0.5.7
func (repo *GeneralRepo) SetConn(inConn *gorm.DB)
Click to show internal directories.
Click to hide internal directories.