Documentation
¶
Index ¶
- Variables
- func AccountExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Accounts(mods ...qm.QueryMod) accountQuery
- func AddAccountHook(hookPoint boil.HookPoint, accountHook AccountHook)
- func AddCommentHook(hookPoint boil.HookPoint, commentHook CommentHook)
- func AddPostHook(hookPoint boil.HookPoint, postHook PostHook)
- func AddRelationshipHook(hookPoint boil.HookPoint, relationshipHook RelationshipHook)
- func CommentExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Comments(mods ...qm.QueryMod) commentQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func PostExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Posts(mods ...qm.QueryMod) postQuery
- func RelationshipExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Relationships(mods ...qm.QueryMod) relationshipQuery
- type Account
- func (o *Account) AddAuthorComments(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Account) AddAuthorPosts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Post) error
- func (o *Account) AddFolloweeRelationships(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Account) AddFollowerRelationships(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Account) AuthorComments(mods ...qm.QueryMod) commentQuery
- func (o *Account) AuthorPosts(mods ...qm.QueryMod) postQuery
- func (o *Account) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Account) FolloweeRelationships(mods ...qm.QueryMod) relationshipQuery
- func (o *Account) FollowerRelationships(mods ...qm.QueryMod) relationshipQuery
- func (o *Account) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Account) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Account) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Account) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type AccountHook
- type AccountSlice
- type Comment
- func (o *Comment) Author(mods ...qm.QueryMod) accountQuery
- func (o *Comment) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Comment) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Comment) Post(mods ...qm.QueryMod) postQuery
- func (o *Comment) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Comment) SetAuthor(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error
- func (o *Comment) SetPost(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Post) error
- func (o *Comment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Comment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type CommentHook
- type CommentSlice
- type M
- type Post
- func (o *Post) AddComments(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Post) Author(mods ...qm.QueryMod) accountQuery
- func (o *Post) Comments(mods ...qm.QueryMod) commentQuery
- func (o *Post) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Post) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Post) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Post) SetAuthor(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error
- func (o *Post) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Post) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type PostHook
- type PostSlice
- type Relationship
- func (o *Relationship) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Relationship) Followee(mods ...qm.QueryMod) accountQuery
- func (o *Relationship) Follower(mods ...qm.QueryMod) accountQuery
- func (o *Relationship) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Relationship) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Relationship) SetFollowee(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error
- func (o *Relationship) SetFollower(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error
- func (o *Relationship) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Relationship) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type RelationshipHook
- type RelationshipSlice
Constants ¶
This section is empty.
Variables ¶
var AccountColumns = struct { ID string AccountID string CreatedAt string UpdatedAt string BirthDate string }{ ID: "id", AccountID: "account_id", CreatedAt: "created_at", UpdatedAt: "updated_at", BirthDate: "birth_date", }
var AccountRels = struct { AuthorComments string AuthorPosts string FolloweeRelationships string FollowerRelationships string }{ AuthorComments: "AuthorComments", AuthorPosts: "AuthorPosts", FolloweeRelationships: "FolloweeRelationships", FollowerRelationships: "FollowerRelationships", }
AccountRels is where relationship names are stored.
var AccountWhere = struct { ID whereHelperstring AccountID whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time BirthDate whereHelperstring }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, AccountID: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, BirthDate: whereHelperstring{/* contains filtered or unexported fields */}, }
var CommentColumns = struct { ID string PostID string AuthorID string Body string CreatedAt string UpdatedAt string }{ ID: "id", PostID: "post_id", AuthorID: "author_id", Body: "body", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var CommentRels = struct { Author string Post string }{ Author: "Author", Post: "Post", }
CommentRels is where relationship names are stored.
var CommentWhere = struct { ID whereHelperstring PostID whereHelperstring AuthorID whereHelperstring Body whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, PostID: whereHelperstring{/* contains filtered or unexported fields */}, AuthorID: whereHelperstring{/* contains filtered or unexported fields */}, Body: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var ErrSyncFail = errors.New("entity: 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 PostColumns = struct { ID string AuthorID string Body string CreatedAt string UpdatedAt string }{ ID: "id", AuthorID: "author_id", Body: "body", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var PostRels = struct { Author string Comments string }{ Author: "Author", Comments: "Comments", }
PostRels is where relationship names are stored.
var PostWhere = struct { ID whereHelperstring AuthorID whereHelperstring Body whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, AuthorID: whereHelperstring{/* contains filtered or unexported fields */}, Body: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var RelationshipColumns = struct { ID string FollowerID string FolloweeID string CreatedAt string UpdatedAt string }{ ID: "id", FollowerID: "follower_id", FolloweeID: "followee_id", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var RelationshipRels = struct { Followee string Follower string }{ Followee: "Followee", Follower: "Follower", }
RelationshipRels is where relationship names are stored.
var RelationshipWhere = struct { ID whereHelperstring FollowerID whereHelperstring FolloweeID whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, FollowerID: whereHelperstring{/* contains filtered or unexported fields */}, FolloweeID: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { Accounts string Comments string Posts string Relationships string }{ Accounts: "accounts", Comments: "comments", Posts: "posts", Relationships: "relationships", }
Functions ¶
func AccountExists ¶
AccountExists checks if the Account row exists.
func AddAccountHook ¶
func AddAccountHook(hookPoint boil.HookPoint, accountHook AccountHook)
AddAccountHook registers your hook function for all future operations.
func AddCommentHook ¶
func AddCommentHook(hookPoint boil.HookPoint, commentHook CommentHook)
AddCommentHook registers your hook function for all future operations.
func AddPostHook ¶
AddPostHook registers your hook function for all future operations.
func AddRelationshipHook ¶
func AddRelationshipHook(hookPoint boil.HookPoint, relationshipHook RelationshipHook)
AddRelationshipHook registers your hook function for all future operations.
func CommentExists ¶
CommentExists checks if the Comment row exists.
func PostExists ¶
PostExists checks if the Post row exists.
func RelationshipExists ¶
RelationshipExists checks if the Relationship row exists.
func Relationships ¶
Relationships retrieves all the records using an executor.
Types ¶
type Account ¶
type Account struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` AccountID string `boil:"account_id" json:"account_id" toml:"account_id" yaml:"account_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"` BirthDate string `boil:"birth_date" json:"birth_date" toml:"birth_date" yaml:"birth_date"` R *accountR `boil:"-" json:"-" toml:"-" yaml:"-"` L accountL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Account is an object representing the database table.
func FindAccount ¶
func FindAccount(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Account, error)
FindAccount retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Account) AddAuthorComments ¶
func (o *Account) AddAuthorComments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Comment) error
AddAuthorComments adds the given related objects to the existing relationships of the account, optionally inserting them as new records. Appends related to o.R.AuthorComments. Sets related.R.Author appropriately.
func (*Account) AddAuthorPosts ¶
func (o *Account) AddAuthorPosts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Post) error
AddAuthorPosts adds the given related objects to the existing relationships of the account, optionally inserting them as new records. Appends related to o.R.AuthorPosts. Sets related.R.Author appropriately.
func (*Account) AddFolloweeRelationships ¶
func (o *Account) AddFolloweeRelationships(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Relationship) error
AddFolloweeRelationships adds the given related objects to the existing relationships of the account, optionally inserting them as new records. Appends related to o.R.FolloweeRelationships. Sets related.R.Followee appropriately.
func (*Account) AddFollowerRelationships ¶
func (o *Account) AddFollowerRelationships(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Relationship) error
AddFollowerRelationships adds the given related objects to the existing relationships of the account, optionally inserting them as new records. Appends related to o.R.FollowerRelationships. Sets related.R.Follower appropriately.
func (*Account) AuthorComments ¶
AuthorComments retrieves all the comment's Comments with an executor via author_id column.
func (*Account) AuthorPosts ¶
AuthorPosts retrieves all the post's Posts with an executor via author_id column.
func (*Account) Delete ¶
Delete deletes a single Account record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Account) FolloweeRelationships ¶
FolloweeRelationships retrieves all the relationship's Relationships with an executor via followee_id column.
func (*Account) FollowerRelationships ¶
FollowerRelationships retrieves all the relationship's Relationships with an executor via follower_id column.
func (*Account) Insert ¶
func (o *Account) 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 (*Account) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Account) Update ¶
func (o *Account) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Account. 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 (*Account) Upsert ¶
func (o *Account) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 AccountHook ¶
AccountHook is the signature for custom Account hook methods
type AccountSlice ¶
type AccountSlice []*Account
AccountSlice is an alias for a slice of pointers to Account. This should generally be used opposed to []Account.
func (AccountSlice) DeleteAll ¶
func (o AccountSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*AccountSlice) ReloadAll ¶
func (o *AccountSlice) 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 (AccountSlice) UpdateAll ¶
func (o AccountSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Comment ¶
type Comment struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` PostID string `boil:"post_id" json:"post_id" toml:"post_id" yaml:"post_id"` AuthorID string `boil:"author_id" json:"author_id" toml:"author_id" yaml:"author_id"` Body string `boil:"body" json:"body" toml:"body" yaml:"body"` 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"` R *commentR `boil:"-" json:"-" toml:"-" yaml:"-"` L commentL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Comment is an object representing the database table.
func FindComment ¶
func FindComment(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Comment, error)
FindComment retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Comment) Delete ¶
Delete deletes a single Comment record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Comment) Insert ¶
func (o *Comment) 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 (*Comment) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Comment) SetAuthor ¶
func (o *Comment) SetAuthor(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error
SetAuthor of the comment to the related item. Sets o.R.Author to related. Adds o to related.R.AuthorComments.
func (*Comment) SetPost ¶
func (o *Comment) SetPost(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Post) error
SetPost of the comment to the related item. Sets o.R.Post to related. Adds o to related.R.Comments.
func (*Comment) Update ¶
func (o *Comment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Comment. 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 (*Comment) Upsert ¶
func (o *Comment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 CommentHook ¶
CommentHook is the signature for custom Comment hook methods
type CommentSlice ¶
type CommentSlice []*Comment
CommentSlice is an alias for a slice of pointers to Comment. This should generally be used opposed to []Comment.
func (CommentSlice) DeleteAll ¶
func (o CommentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*CommentSlice) ReloadAll ¶
func (o *CommentSlice) 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 (CommentSlice) UpdateAll ¶
func (o CommentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Post ¶
type Post struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` AuthorID string `boil:"author_id" json:"author_id" toml:"author_id" yaml:"author_id"` Body string `boil:"body" json:"body" toml:"body" yaml:"body"` 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"` R *postR `boil:"-" json:"-" toml:"-" yaml:"-"` L postL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Post is an object representing the database table.
func FindPost ¶
func FindPost(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Post, error)
FindPost retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Post) AddComments ¶
func (o *Post) AddComments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Comment) error
AddComments adds the given related objects to the existing relationships of the post, optionally inserting them as new records. Appends related to o.R.Comments. Sets related.R.Post appropriately.
func (*Post) Delete ¶
Delete deletes a single Post record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Post) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Post) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Post) SetAuthor ¶
func (o *Post) SetAuthor(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error
SetAuthor of the post to the related item. Sets o.R.Author to related. Adds o to related.R.AuthorPosts.
func (*Post) Update ¶
func (o *Post) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Post. 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 (*Post) Upsert ¶
func (o *Post) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 PostSlice ¶
type PostSlice []*Post
PostSlice is an alias for a slice of pointers to Post. This should generally be used opposed to []Post.
type Relationship ¶
type Relationship struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` FollowerID string `boil:"follower_id" json:"follower_id" toml:"follower_id" yaml:"follower_id"` FolloweeID string `boil:"followee_id" json:"followee_id" toml:"followee_id" yaml:"followee_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"` R *relationshipR `boil:"-" json:"-" toml:"-" yaml:"-"` L relationshipL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Relationship is an object representing the database table.
func FindRelationship ¶
func FindRelationship(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Relationship, error)
FindRelationship retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Relationship) Delete ¶
func (o *Relationship) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single Relationship record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Relationship) Followee ¶
func (o *Relationship) Followee(mods ...qm.QueryMod) accountQuery
Followee pointed to by the foreign key.
func (*Relationship) Follower ¶
func (o *Relationship) Follower(mods ...qm.QueryMod) accountQuery
Follower pointed to by the foreign key.
func (*Relationship) Insert ¶
func (o *Relationship) 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 (*Relationship) Reload ¶
func (o *Relationship) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*Relationship) SetFollowee ¶
func (o *Relationship) SetFollowee(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error
SetFollowee of the relationship to the related item. Sets o.R.Followee to related. Adds o to related.R.FolloweeRelationships.
func (*Relationship) SetFollower ¶
func (o *Relationship) SetFollower(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error
SetFollower of the relationship to the related item. Sets o.R.Follower to related. Adds o to related.R.FollowerRelationships.
func (*Relationship) Update ¶
func (o *Relationship) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Relationship. 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 (*Relationship) Upsert ¶
func (o *Relationship) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 RelationshipHook ¶
type RelationshipHook func(context.Context, boil.ContextExecutor, *Relationship) error
RelationshipHook is the signature for custom Relationship hook methods
type RelationshipSlice ¶
type RelationshipSlice []*Relationship
RelationshipSlice is an alias for a slice of pointers to Relationship. This should generally be used opposed to []Relationship.
func (RelationshipSlice) DeleteAll ¶
func (o RelationshipSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*RelationshipSlice) ReloadAll ¶
func (o *RelationshipSlice) 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 (RelationshipSlice) UpdateAll ¶
func (o RelationshipSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.