Documentation ¶
Index ¶
- Variables
- func New(db client.DataBase, informer logger.Informer) (*goqu.DialectWrapper, error)
- type Generator
- type ReConfiguration
- func (reConfiguration *ReConfiguration) Delete(table interface{}) *goqu.DeleteDataset
- func (reConfiguration *ReConfiguration) From(table ...interface{}) *goqu.SelectDataset
- func (reConfiguration *ReConfiguration) Generator() *goqu.DialectWrapper
- func (reConfiguration *ReConfiguration) Insert(table interface{}) *goqu.InsertDataset
- func (reConfiguration *ReConfiguration) ReConfiguration(_ configurator.Configurator) error
- func (reConfiguration *ReConfiguration) Select(cols ...interface{}) *goqu.SelectDataset
- func (reConfiguration *ReConfiguration) Truncate(table ...interface{}) *goqu.TruncateDataset
- func (reConfiguration *ReConfiguration) Update(table interface{}) *goqu.UpdateDataset
Constants ¶
This section is empty.
Variables ¶
View Source
var Component = &app.Component{ Dependencies: app.Components{ logger.Component, configurator.Component, reConfiguration.Component, client.Component, }, Constructor: app.Constructor(func(container container.Container) error { return container.Provides( NewReConfiguration, func(reConfiguration *ReConfiguration) Generator { return reConfiguration }, ) }), Run: func(container container.Container) error { return container.Invoke(func( generator *ReConfiguration, reConfiguration reConfiguration.ReConfiguration, informer logger.Informer, ) { reConfiguration.Registration(generator) informer.Info("sql-generator: registration in the reConfigurator") }) }, }
Functions ¶
Types ¶
type Generator ¶
type Generator interface { From(table ...interface{}) *goqu.SelectDataset Select(cols ...interface{}) *goqu.SelectDataset Update(table interface{}) *goqu.UpdateDataset Insert(table interface{}) *goqu.InsertDataset Delete(table interface{}) *goqu.DeleteDataset Truncate(table ...interface{}) *goqu.TruncateDataset }
type ReConfiguration ¶
type ReConfiguration struct {
// contains filtered or unexported fields
}
func NewReConfiguration ¶
func (*ReConfiguration) Delete ¶
func (reConfiguration *ReConfiguration) Delete(table interface{}) *goqu.DeleteDataset
func (*ReConfiguration) From ¶
func (reConfiguration *ReConfiguration) From(table ...interface{}) *goqu.SelectDataset
func (*ReConfiguration) Generator ¶
func (reConfiguration *ReConfiguration) Generator() *goqu.DialectWrapper
func (*ReConfiguration) Insert ¶
func (reConfiguration *ReConfiguration) Insert(table interface{}) *goqu.InsertDataset
func (*ReConfiguration) ReConfiguration ¶
func (reConfiguration *ReConfiguration) ReConfiguration(_ configurator.Configurator) error
func (*ReConfiguration) Select ¶
func (reConfiguration *ReConfiguration) Select(cols ...interface{}) *goqu.SelectDataset
func (*ReConfiguration) Truncate ¶
func (reConfiguration *ReConfiguration) Truncate(table ...interface{}) *goqu.TruncateDataset
func (*ReConfiguration) Update ¶
func (reConfiguration *ReConfiguration) Update(table interface{}) *goqu.UpdateDataset
Click to show internal directories.
Click to hide internal directories.