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