Documentation ¶
Index ¶
- Variables
- func AddCircleHook(hookPoint boil.HookPoint, circleHook CircleHook)
- func AddCircleMemberHook(hookPoint boil.HookPoint, circleMemberHook CircleMemberHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func CircleExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func CircleExistsG(ctx context.Context, iD string) (bool, error)
- func CircleMemberExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func CircleMemberExistsG(ctx context.Context, iD int) (bool, error)
- func CircleMembers(mods ...qm.QueryMod) circleMemberQuery
- func Circles(mods ...qm.QueryMod) circleQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func UserExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func UserExistsG(ctx context.Context, iD string) (bool, error)
- func Users(mods ...qm.QueryMod) userQuery
- type Circle
- func (o *Circle) AddCircleMembers(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Circle) AddCircleMembersG(ctx context.Context, insert bool, related ...*CircleMember) error
- func (o *Circle) CircleMembers(mods ...qm.QueryMod) circleMemberQuery
- func (o *Circle) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *Circle) DeleteG(ctx context.Context, hardDelete bool) (int64, error)
- func (o *Circle) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Circle) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *Circle) Owner(mods ...qm.QueryMod) userQuery
- func (o *Circle) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Circle) ReloadG(ctx context.Context) error
- func (o *Circle) SetOwner(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *Circle) SetOwnerG(ctx context.Context, insert bool, related *User) error
- func (o *Circle) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Circle) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *Circle) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *Circle) UpsertG(ctx context.Context, updateColumns, insertColumns boil.Columns) error
- type CircleHook
- type CircleMember
- func (o *CircleMember) Circle(mods ...qm.QueryMod) circleQuery
- func (o *CircleMember) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *CircleMember) DeleteG(ctx context.Context, hardDelete bool) (int64, error)
- func (o *CircleMember) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *CircleMember) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *CircleMember) Member(mods ...qm.QueryMod) userQuery
- func (o *CircleMember) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CircleMember) ReloadG(ctx context.Context) error
- func (o *CircleMember) SetCircle(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Circle) error
- func (o *CircleMember) SetCircleG(ctx context.Context, insert bool, related *Circle) error
- func (o *CircleMember) SetMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *CircleMember) SetMemberG(ctx context.Context, insert bool, related *User) error
- func (o *CircleMember) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *CircleMember) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *CircleMember) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *CircleMember) UpsertG(ctx context.Context, updateColumns, insertColumns boil.Columns) error
- type CircleMemberHook
- type CircleMemberSlice
- func (o CircleMemberSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o CircleMemberSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)
- func (o *CircleMemberSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CircleMemberSlice) ReloadAllG(ctx context.Context) error
- func (o CircleMemberSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o CircleMemberSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type CircleSlice
- func (o CircleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o CircleSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)
- func (o *CircleSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CircleSlice) ReloadAllG(ctx context.Context) error
- func (o CircleSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o CircleSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type M
- type User
- func (o *User) AddMemberCircleMembers(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddMemberCircleMembersG(ctx context.Context, insert bool, related ...*CircleMember) error
- func (o *User) AddOwnerCircles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddOwnerCirclesG(ctx context.Context, insert bool, related ...*Circle) error
- func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *User) DeleteG(ctx context.Context, hardDelete bool) (int64, error)
- func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *User) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *User) MemberCircleMembers(mods ...qm.QueryMod) circleMemberQuery
- func (o *User) OwnerCircles(mods ...qm.QueryMod) circleQuery
- func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *User) ReloadG(ctx context.Context) error
- func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *User) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *User) UpsertG(ctx context.Context, updateColumns, insertColumns boil.Columns) error
- type UserHook
- type UserSlice
- func (o UserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o UserSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)
- func (o *UserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserSlice) ReloadAllG(ctx context.Context) error
- func (o UserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o UserSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
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", }
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", }
var CircleMemberRels = struct { Circle string Member string }{ Circle: "Circle", Member: "Member", }
CircleMemberRels is where relationship names are stored.
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 */}, }
var CircleRels = struct { Owner string CircleMembers string }{ Owner: "Owner", CircleMembers: "CircleMembers", }
CircleRels is where relationship names are stored.
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 */}, }
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.
var TableNames = struct { Circle string CircleMembers string User string }{ Circle: "circle", CircleMembers: "circle_members", User: "user", }
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", }
var UserRels = struct { OwnerCircles string MemberCircleMembers string }{ OwnerCircles: "OwnerCircles", MemberCircleMembers: "MemberCircleMembers", }
UserRels is where relationship names are stored.
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 ¶
AddUserHook registers your hook function for all future operations.
func CircleExists ¶
CircleExists checks if the Circle row exists.
func CircleExistsG ¶
CircleExistsG checks if the Circle row exists.
func CircleMemberExists ¶
CircleMemberExists checks if the CircleMember row exists.
func CircleMemberExistsG ¶
CircleMemberExistsG checks if the CircleMember row exists.
func CircleMembers ¶
CircleMembers retrieves all the records using an executor.
func UserExists ¶
UserExists checks if the User row exists.
func UserExistsG ¶
UserExistsG checks if the User row exists.
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 ¶
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 ¶
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 ¶
DeleteG deletes a single Circle record. DeleteG will match against the primary key column to find the record to delete.
func (*Circle) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Circle) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
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 ¶
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 ¶
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.
type CircleHook ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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.
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 ¶
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 ¶
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 ¶
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 ¶
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 (*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 ¶
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 ¶
DeleteG deletes a single User record. DeleteG will match against the primary key column to find the record to delete.
func (*User) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*User) MemberCircleMembers ¶
MemberCircleMembers retrieves all the circle_member's CircleMembers with an executor via member_id column.
func (*User) OwnerCircles ¶
OwnerCircles retrieves all the circle's Circles with an executor via owner_id column.
func (*User) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
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 ¶
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.
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 ¶
DeleteAllG deletes all rows in the slice.
func (*UserSlice) ReloadAll ¶
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*UserSlice) ReloadAllG ¶
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.