Documentation ¶
Index ¶
- func LoadConfig(cfg []byte) (*database.PostgresParams, error)
- func NewLoader(ctx context.Context, logger *zap.SugaredLogger) func(key string, cfg []byte) (loader.Loader, error)
- type Loader
- func (l *Loader) Add(ctx context.Context, m *model.Model, changes util.ValueMap) ([]interface{}, error)
- func (l *Loader) Connection(ctx context.Context) (interface{}, error)
- func (l *Loader) Count(ctx context.Context, m *model.Model) (int, error)
- func (l *Loader) Default(ctx context.Context, m *model.Model) ([]interface{}, error)
- func (l *Loader) Get(ctx context.Context, m *model.Model, ids []interface{}) (*result.Result, error)
- func (l *Loader) List(ctx context.Context, m *model.Model, opts *filter.Options) (*result.Result, error)
- func (l *Loader) Query(ctx context.Context, enums model.Models, sql string) (*result.Result, error)
- func (l *Loader) Remove(ctx context.Context, m *model.Model, fields []string, values []interface{}, ...) (int, error)
- func (l *Loader) Save(ctx context.Context, m *model.Model, ids []interface{}, changes util.ValueMap) ([]interface{}, error)
- func (l *Loader) Schema(ctx context.Context) (*schema.Schema, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig(cfg []byte) (*database.PostgresParams, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.