Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormDB ¶
type GormDB interface { Migrate(ctx context.Context, models any) (bool, error) Create(ctx context.Context, models any) (any, error) GetRows(ctx context.Context, models any) (any, error) Get(ctx context.Context, models any, fields map[string]any) (any, error) GetAll(ctx context.Context, models any) (any, error) First(ctx context.Context, models any, id string) (any, error) FindAll(ctx context.Context, models any, query string) (any, error) Update(ctx context.Context, models any, id string, fields map[string]any) (bool, error) Updates(ctx context.Context, model, updaded any) error Delete(ctx context.Context, models any, id string) (bool, error) }
Generic helper wrappers for our differents models
Click to show internal directories.
Click to hide internal directories.