Documentation ¶
Index ¶
- type DatabasePlugin
- type Plugin
- func (this *Plugin) AddObjects(key string, objs []interface{}) (*gorm.DB, *herrors.Error)
- func (this *Plugin) AddObjectsToDefaultDB(objs []interface{}) (*gorm.DB, *herrors.Error)
- func (this *Plugin) AutoMigrate(key string, objs []interface{}) (*gorm.DB, *herrors.Error)
- func (this *Plugin) Capability() htypes.Any
- func (this *Plugin) Close()
- func (this *Plugin) Config() core.IEntityConf
- func (this *Plugin) DB(key string) *gorm.DB
- func (this *Plugin) DefaultDB() *gorm.DB
- func (this *Plugin) Dsn(conn *connection, new bool) string
- func (this *Plugin) EntityStub() *core.EntityStub
- func (this *Plugin) Objects() htypes.Map
- func (this *Plugin) Open(s core.IServer, ins core.IPlugin) *herrors.Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabasePlugin ¶
type DatabasePlugin struct { core.PluginConf SkipAutoMigrate bool Connections []connection }
type Plugin ¶
type Plugin struct { core.BasePlugin Conf DatabasePlugin // contains filtered or unexported fields }
func (*Plugin) AddObjects ¶
func (*Plugin) AddObjectsToDefaultDB ¶
func (*Plugin) AutoMigrate ¶
func (*Plugin) Capability ¶
func (*Plugin) Config ¶
func (this *Plugin) Config() core.IEntityConf
func (*Plugin) EntityStub ¶
func (this *Plugin) EntityStub() *core.EntityStub
Click to show internal directories.
Click to hide internal directories.