models

package
v0.0.0-...-c828c98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CircleColumns = struct {
	ID        string
	Name      string
	OwnerID   string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	Name:      "name",
	OwnerID:   "owner_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var CircleMemberColumns = struct {
	ID        string
	CircleID  string
	MemberID  string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	CircleID:  "circle_id",
	MemberID:  "member_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var CircleMemberRels = struct {
	Circle string
	Member string
}{
	Circle: "Circle",
	Member: "Member",
}

CircleMemberRels is where relationship names are stored.

View Source
var CircleMemberWhere = struct {
	ID        whereHelperint
	CircleID  whereHelperstring
	MemberID  whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	CircleID:  whereHelperstring{/* contains filtered or unexported fields */},
	MemberID:  whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var CircleRels = struct {
	Owner         string
	CircleMembers string
}{
	Owner:         "Owner",
	CircleMembers: "CircleMembers",
}

CircleRels is where relationship names are stored.

View Source
var CircleWhere = struct {
	ID        whereHelperstring
	Name      whereHelperstring
	OwnerID   whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	OwnerID:   whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var TableNames = struct {
	Circle        string
	CircleMembers string
	User          string
}{
	Circle:        "circle",
	CircleMembers: "circle_members",
	User:          "user",
}
View Source
var UserColumns = struct {
	ID        string
	Name      string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	Name:      "name",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var UserRels = struct {
	OwnerCircles        string
	MemberCircleMembers string
}{
	OwnerCircles:        "OwnerCircles",
	MemberCircleMembers: "MemberCircleMembers",
}

UserRels is where relationship names are stored.

View Source
var UserWhere = struct {
	ID        whereHelperstring
	Name      whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}

Functions

func AddCircleHook

func AddCircleHook(hookPoint boil.HookPoint, circleHook CircleHook)

AddCircleHook registers your hook function for all future operations.

func AddCircleMemberHook

func AddCircleMemberHook(hookPoint boil.HookPoint, circleMemberHook CircleMemberHook)

AddCircleMemberHook registers your hook function for all future operations.

func AddUserHook

func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)

AddUserHook registers your hook function for all future operations.

func CircleExists

func CircleExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

CircleExists checks if the Circle row exists.

func CircleExistsG

func CircleExistsG(ctx context.Context, iD string) (bool, error)

CircleExistsG checks if the Circle row exists.

func CircleMemberExists

func CircleMemberExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

CircleMemberExists checks if the CircleMember row exists.

func CircleMemberExistsG

func CircleMemberExistsG(ctx context.Context, iD int) (bool, error)

CircleMemberExistsG checks if the CircleMember row exists.

func CircleMembers

func CircleMembers(mods ...qm.QueryMod) circleMemberQuery

CircleMembers retrieves all the records using an executor.

func Circles

func Circles(mods ...qm.QueryMod) circleQuery

Circles retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func UserExists

func UserExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

UserExists checks if the User row exists.

func UserExistsG

func UserExistsG(ctx context.Context, iD string) (bool, error)

UserExistsG checks if the User row exists.

func Users

func Users(mods ...qm.QueryMod) userQuery

Users retrieves all the records using an executor.

Types

type Circle

type Circle struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	OwnerID   string    `boil:"owner_id" json:"owner_id" toml:"owner_id" yaml:"owner_id"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *circleR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L circleL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Circle is an object representing the database table.

func FindCircle

func FindCircle(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Circle, error)

FindCircle retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindCircleG

func FindCircleG(ctx context.Context, iD string, selectCols ...string) (*Circle, error)

FindCircleG retrieves a single record by ID.

func (*Circle) AddCircleMembers

func (o *Circle) AddCircleMembers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CircleMember) error

AddCircleMembers adds the given related objects to the existing relationships of the circle, optionally inserting them as new records. Appends related to o.R.CircleMembers. Sets related.R.Circle appropriately.

func (*Circle) AddCircleMembersG

func (o *Circle) AddCircleMembersG(ctx context.Context, insert bool, related ...*CircleMember) error

AddCircleMembersG adds the given related objects to the existing relationships of the circle, optionally inserting them as new records. Appends related to o.R.CircleMembers. Sets related.R.Circle appropriately. Uses the global database handle.

func (*Circle) CircleMembers

func (o *Circle) CircleMembers(mods ...qm.QueryMod) circleMemberQuery

CircleMembers retrieves all the circle_member's CircleMembers with an executor.

func (*Circle) Delete

func (o *Circle) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

Delete deletes a single Circle record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Circle) DeleteG

func (o *Circle) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single Circle record. DeleteG will match against the primary key column to find the record to delete.

func (*Circle) Insert

func (o *Circle) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Circle) InsertG

func (o *Circle) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Circle) Owner

func (o *Circle) Owner(mods ...qm.QueryMod) userQuery

Owner pointed to by the foreign key.

func (*Circle) Reload

func (o *Circle) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Circle) ReloadG

func (o *Circle) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*Circle) SetOwner

func (o *Circle) SetOwner(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetOwner of the circle to the related item. Sets o.R.Owner to related. Adds o to related.R.OwnerCircles.

func (*Circle) SetOwnerG

func (o *Circle) SetOwnerG(ctx context.Context, insert bool, related *User) error

SetOwnerG of the circle to the related item. Sets o.R.Owner to related. Adds o to related.R.OwnerCircles. Uses the global database handle.

func (*Circle) Update

func (o *Circle) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Circle. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Circle) UpdateG

func (o *Circle) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Circle record using the global executor. See Update for more documentation.

func (*Circle) Upsert

func (o *Circle) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*Circle) UpsertG

func (o *Circle) UpsertG(ctx context.Context, updateColumns, insertColumns boil.Columns) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type CircleHook

type CircleHook func(context.Context, boil.ContextExecutor, *Circle) error

CircleHook is the signature for custom Circle hook methods

type CircleMember

type CircleMember struct {
	ID        int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	CircleID  string    `boil:"circle_id" json:"circle_id" toml:"circle_id" yaml:"circle_id"`
	MemberID  string    `boil:"member_id" json:"member_id" toml:"member_id" yaml:"member_id"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *circleMemberR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L circleMemberL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

CircleMember is an object representing the database table.

func FindCircleMember

func FindCircleMember(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*CircleMember, error)

FindCircleMember retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindCircleMemberG

func FindCircleMemberG(ctx context.Context, iD int, selectCols ...string) (*CircleMember, error)

FindCircleMemberG retrieves a single record by ID.

func (*CircleMember) Circle

func (o *CircleMember) Circle(mods ...qm.QueryMod) circleQuery

Circle pointed to by the foreign key.

func (*CircleMember) Delete

func (o *CircleMember) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

Delete deletes a single CircleMember record with an executor. Delete will match against the primary key column to find the record to delete.

func (*CircleMember) DeleteG

func (o *CircleMember) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single CircleMember record. DeleteG will match against the primary key column to find the record to delete.

func (*CircleMember) Insert

func (o *CircleMember) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*CircleMember) InsertG

func (o *CircleMember) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*CircleMember) Member

func (o *CircleMember) Member(mods ...qm.QueryMod) userQuery

Member pointed to by the foreign key.

func (*CircleMember) Reload

func (o *CircleMember) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*CircleMember) ReloadG

func (o *CircleMember) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*CircleMember) SetCircle

func (o *CircleMember) SetCircle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Circle) error

SetCircle of the circleMember to the related item. Sets o.R.Circle to related. Adds o to related.R.CircleMembers.

func (*CircleMember) SetCircleG

func (o *CircleMember) SetCircleG(ctx context.Context, insert bool, related *Circle) error

SetCircleG of the circleMember to the related item. Sets o.R.Circle to related. Adds o to related.R.CircleMembers. Uses the global database handle.

func (*CircleMember) SetMember

func (o *CircleMember) SetMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetMember of the circleMember to the related item. Sets o.R.Member to related. Adds o to related.R.MemberCircleMembers.

func (*CircleMember) SetMemberG

func (o *CircleMember) SetMemberG(ctx context.Context, insert bool, related *User) error

SetMemberG of the circleMember to the related item. Sets o.R.Member to related. Adds o to related.R.MemberCircleMembers. Uses the global database handle.

func (*CircleMember) Update

func (o *CircleMember) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the CircleMember. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*CircleMember) UpdateG

func (o *CircleMember) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single CircleMember record using the global executor. See Update for more documentation.

func (*CircleMember) Upsert

func (o *CircleMember) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*CircleMember) UpsertG

func (o *CircleMember) UpsertG(ctx context.Context, updateColumns, insertColumns boil.Columns) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type CircleMemberHook

type CircleMemberHook func(context.Context, boil.ContextExecutor, *CircleMember) error

CircleMemberHook is the signature for custom CircleMember hook methods

type CircleMemberSlice

type CircleMemberSlice []*CircleMember

CircleMemberSlice is an alias for a slice of pointers to CircleMember. This should generally be used opposed to []CircleMember.

func (CircleMemberSlice) DeleteAll

func (o CircleMemberSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (CircleMemberSlice) DeleteAllG

func (o CircleMemberSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*CircleMemberSlice) ReloadAll

func (o *CircleMemberSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*CircleMemberSlice) ReloadAllG

func (o *CircleMemberSlice) ReloadAllG(ctx context.Context) error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (CircleMemberSlice) UpdateAll

func (o CircleMemberSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

func (CircleMemberSlice) UpdateAllG

func (o CircleMemberSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type CircleSlice

type CircleSlice []*Circle

CircleSlice is an alias for a slice of pointers to Circle. This should generally be used opposed to []Circle.

func (CircleSlice) DeleteAll

func (o CircleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (CircleSlice) DeleteAllG

func (o CircleSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*CircleSlice) ReloadAll

func (o *CircleSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*CircleSlice) ReloadAllG

func (o *CircleSlice) ReloadAllG(ctx context.Context) error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (CircleSlice) UpdateAll

func (o CircleSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

func (CircleSlice) UpdateAllG

func (o CircleSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type User

type User struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *userR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

User is an object representing the database table.

func FindUser

func FindUser(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*User, error)

FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindUserG

func FindUserG(ctx context.Context, iD string, selectCols ...string) (*User, error)

FindUserG retrieves a single record by ID.

func (*User) AddMemberCircleMembers

func (o *User) AddMemberCircleMembers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CircleMember) error

AddMemberCircleMembers adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.MemberCircleMembers. Sets related.R.Member appropriately.

func (*User) AddMemberCircleMembersG

func (o *User) AddMemberCircleMembersG(ctx context.Context, insert bool, related ...*CircleMember) error

AddMemberCircleMembersG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.MemberCircleMembers. Sets related.R.Member appropriately. Uses the global database handle.

func (*User) AddOwnerCircles

func (o *User) AddOwnerCircles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Circle) error

AddOwnerCircles adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.OwnerCircles. Sets related.R.Owner appropriately.

func (*User) AddOwnerCirclesG

func (o *User) AddOwnerCirclesG(ctx context.Context, insert bool, related ...*Circle) error

AddOwnerCirclesG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.OwnerCircles. Sets related.R.Owner appropriately. Uses the global database handle.

func (*User) Delete

func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.

func (*User) DeleteG

func (o *User) DeleteG(ctx context.Context, hardDelete bool) (int64, error)

DeleteG deletes a single User record. DeleteG will match against the primary key column to find the record to delete.

func (*User) Insert

func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*User) InsertG

func (o *User) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*User) MemberCircleMembers

func (o *User) MemberCircleMembers(mods ...qm.QueryMod) circleMemberQuery

MemberCircleMembers retrieves all the circle_member's CircleMembers with an executor via member_id column.

func (*User) OwnerCircles

func (o *User) OwnerCircles(mods ...qm.QueryMod) circleQuery

OwnerCircles retrieves all the circle's Circles with an executor via owner_id column.

func (*User) Reload

func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*User) ReloadG

func (o *User) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*User) Update

func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*User) UpdateG

func (o *User) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single User record using the global executor. See Update for more documentation.

func (*User) Upsert

func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*User) UpsertG

func (o *User) UpsertG(ctx context.Context, updateColumns, insertColumns boil.Columns) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type UserHook

type UserHook func(context.Context, boil.ContextExecutor, *User) error

UserHook is the signature for custom User hook methods

type UserSlice

type UserSlice []*User

UserSlice is an alias for a slice of pointers to User. This should generally be used opposed to []User.

func (UserSlice) DeleteAll

func (o UserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (UserSlice) DeleteAllG

func (o UserSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*UserSlice) ReloadAll

func (o *UserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*UserSlice) ReloadAllG

func (o *UserSlice) ReloadAllG(ctx context.Context) error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (UserSlice) UpdateAll

func (o UserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

func (UserSlice) UpdateAllG

func (o UserSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL