Documentation ¶
Index ¶
- func LoadConfig(cfg []byte) (*database.SQLiteParams, 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) ([]any, error)
- func (l *Loader) Connection(ctx context.Context) (any, error)
- func (l *Loader) Count(ctx context.Context, m *model.Model) (int, error)
- func (l *Loader) Default(ctx context.Context, m *model.Model) ([]any, error)
- func (l *Loader) Get(ctx context.Context, m *model.Model, ids []any) (*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 []any, ...) (int, error)
- func (l *Loader) Save(ctx context.Context, m *model.Model, ids []any, changes util.ValueMap) ([]any, 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.SQLiteParams, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.