Documentation ¶ Index ¶ Variables func Module() dep.Module type DB type Driver func (d *Driver) Dialect(dsn url.URL) (*gorm.Dialector, bool) func (d *Driver) Register(name string, dialectFn func(dsn string) gorm.Dialector) Constants ¶ This section is empty. Variables ¶ View Source var ( ModuleName = dep.Name("wk", "gorm") ) Functions ¶ func Module ¶ func Module() dep.Module Types ¶ type DB ¶ type DB struct { sync.RWMutex // contains filtered or unexported fields } type Driver ¶ type Driver struct { // contains filtered or unexported fields } func (*Driver) Dialect ¶ func (d *Driver) Dialect(dsn url.URL) (*gorm.Dialector, bool) func (*Driver) Register ¶ func (d *Driver) Register(name string, dialectFn func(dsn string) gorm.Dialector) Source Files ¶ View all Source files driver.go factories.go gorm.go module.go Click to show internal directories. Click to hide internal directories.