Documentation
¶
Index ¶
- func AddModels(ctx context.Context, db database.DB, model *tests.Car, ...) error
- func AddNonPointerModels(ctx context.Context, db database.DB, model *tests.Car, ...) error
- func ClearModelsRelation(ctx context.Context, db database.DB, models ...*tests.Car) (int64, error)
- func ClearNonPointerModelsRelation(ctx context.Context, db database.DB, models ...*tests.Car) (int64, error)
- func Delete(ctx context.Context, db database.DB, models ...*tests.Car) (int64, error)
- func FromModels(input ...mapping.Model) []*tests.Car
- func GetModels(ctx context.Context, db database.DB, model *tests.Car, ...) ([]*external.Model, error)
- func GetNonPointerModels(ctx context.Context, db database.DB, model *tests.Car, ...) ([]*external.Model, error)
- func Insert(ctx context.Context, db database.DB, models ...*tests.Car) error
- func Query(db database.DB, models ...*tests.Car) *_customCarsQueryBuilder
- func QueryCtx(ctx context.Context, db database.DB, models ...*tests.Car) *_customCarsQueryBuilder
- func Refresh(ctx context.Context, db database.DB, models ...*tests.Car) error
- func SetModels(ctx context.Context, db database.DB, model *tests.Car, ...) error
- func SetNonPointerModels(ctx context.Context, db database.DB, model *tests.Car, ...) error
- func ToModels(input ...*tests.Car) []mapping.Model
- func Update(ctx context.Context, db database.DB, models ...*tests.Car) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddModels ¶
func AddModels(ctx context.Context, db database.DB, model *tests.Car, relations ...*external.Model) error
AddModels adds the 'Models' relationship for provided input 'models'.
func AddNonPointerModels ¶
func AddNonPointerModels(ctx context.Context, db database.DB, model *tests.Car, relations ...*external.Model) error
AddNonPointerModels adds the 'NonPointerModels' relationship for provided input 'models'.
func ClearModelsRelation ¶
ClearModelsRelation clears the 'Models' relationship for provided models. For relationships of type: BelongsTo, HasOne, HasMany if foreign key is not nullable than the function would return an error.
func ClearNonPointerModelsRelation ¶
func ClearNonPointerModelsRelation(ctx context.Context, db database.DB, models ...*tests.Car) (int64, error)
ClearNonPointerModelsRelation clears the 'NonPointerModels' relationship for provided models. For relationships of type: BelongsTo, HasOne, HasMany if foreign key is not nullable than the function would return an error.
func FromModels ¶
FromModels converts the input mapping.Model into []*tests.Car.
func GetModels ¶
func GetModels(ctx context.Context, db database.DB, model *tests.Car, relationFieldset ...string) ([]*external.Model, error)
GetModels gets the 'Models' relationship for provided input 'model'.
func GetNonPointerModels ¶
func GetNonPointerModels(ctx context.Context, db database.DB, model *tests.Car, relationFieldset ...string) ([]*external.Model, error)
GetNonPointerModels gets the 'NonPointerModels' relationship for provided input 'model'.
func SetModels ¶
func SetModels(ctx context.Context, db database.DB, model *tests.Car, relations ...*external.Model) error
SetModels sets the 'Models' relationship for provided input 'models'.
func SetNonPointerModels ¶
func SetNonPointerModels(ctx context.Context, db database.DB, model *tests.Car, relations ...*external.Model) error
SetNonPointerModels sets the 'NonPointerModels' relationship for provided input 'models'.
Types ¶
This section is empty.