Documentation
¶
Index ¶
- Variables
- func AccessLogExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func AccessLogs(mods ...qm.QueryMod) accessLogQuery
- func AccountExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func Accounts(mods ...qm.QueryMod) accountQuery
- func AddAccessLogHook(hookPoint boil.HookPoint, accessLogHook AccessLogHook)
- func AddAccountHook(hookPoint boil.HookPoint, accountHook AccountHook)
- func AddAttachtmentHook(hookPoint boil.HookPoint, attachtmentHook AttachtmentHook)
- func AddCommentHook(hookPoint boil.HookPoint, commentHook CommentHook)
- func AddPostHook(hookPoint boil.HookPoint, postHook PostHook)
- func AddSiteHook(hookPoint boil.HookPoint, siteHook SiteHook)
- func AddSiteRoleHook(hookPoint boil.HookPoint, siteRoleHook SiteRoleHook)
- func AttachtmentExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func Attachtments(mods ...qm.QueryMod) attachtmentQuery
- func CommentExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func Comments(mods ...qm.QueryMod) commentQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func PostExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func Posts(mods ...qm.QueryMod) postQuery
- func SiteExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func SiteRoleExists(ctx context.Context, exec boil.ContextExecutor, accountID int, siteID int) (bool, error)
- func SiteRoles(mods ...qm.QueryMod) siteRoleQuery
- func Sites(mods ...qm.QueryMod) siteQuery
- type AccessLog
- func (o *AccessLog) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *AccessLog) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *AccessLog) GetUser() *Account
- func (o *AccessLog) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *AccessLog) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AccessLog) RemoveUser(ctx context.Context, exec boil.ContextExecutor, related *Account) error
- func (o *AccessLog) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error
- func (o *AccessLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *AccessLog) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *AccessLog) User(mods ...qm.QueryMod) accountQuery
- type AccessLogHook
- type AccessLogSlice
- type Account
- func (o *Account) AddSiteRoles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Account) AddUserAccessLogs(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Account) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *Account) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Account) GetSiteRoles() SiteRoleSlice
- func (o *Account) GetUserAccessLogs() AccessLogSlice
- 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) RemoveUserAccessLogs(ctx context.Context, exec boil.ContextExecutor, related ...*AccessLog) error
- func (o *Account) SetUserAccessLogs(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Account) SiteRoles(mods ...qm.QueryMod) siteRoleQuery
- 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
- func (o *Account) UserAccessLogs(mods ...qm.QueryMod) accessLogQuery
- type AccountHook
- type AccountSlice
- func (o AccountSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *AccountSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o AccountSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Attachtment
- func (o *Attachtment) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *Attachtment) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Attachtment) GetRelated() *Post
- func (o *Attachtment) GetSite() *Site
- func (o *Attachtment) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Attachtment) Related(mods ...qm.QueryMod) postQuery
- func (o *Attachtment) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Attachtment) SetRelated(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Post) error
- func (o *Attachtment) SetSite(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Site) error
- func (o *Attachtment) Site(mods ...qm.QueryMod) siteQuery
- func (o *Attachtment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Attachtment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type AttachtmentHook
- type AttachtmentSlice
- func (o AttachtmentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *AttachtmentSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o AttachtmentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Comment
- func (o *Comment) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Comment) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Comment) GetPost() *Post
- 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) 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) AddRelatedAttachtments(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Post) Comments(mods ...qm.QueryMod) commentQuery
- func (o *Post) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *Post) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Post) GetComments() CommentSlice
- func (o *Post) GetRelatedAttachtments() AttachtmentSlice
- func (o *Post) GetSite() *Site
- func (o *Post) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Post) RelatedAttachtments(mods ...qm.QueryMod) attachtmentQuery
- func (o *Post) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Post) SetSite(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Site) error
- func (o *Post) Site(mods ...qm.QueryMod) siteQuery
- 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 Site
- func (o *Site) AddAttachtments(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Site) AddPosts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Post) error
- func (o *Site) AddSiteRoles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Site) Attachtments(mods ...qm.QueryMod) attachtmentQuery
- func (o *Site) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *Site) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Site) GetAttachtments() AttachtmentSlice
- func (o *Site) GetPosts() PostSlice
- func (o *Site) GetSiteRoles() SiteRoleSlice
- func (o *Site) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Site) Posts(mods ...qm.QueryMod) postQuery
- func (o *Site) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Site) SiteRoles(mods ...qm.QueryMod) siteRoleQuery
- func (o *Site) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Site) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type SiteHook
- type SiteRole
- func (o *SiteRole) Account(mods ...qm.QueryMod) accountQuery
- func (o *SiteRole) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SiteRole) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *SiteRole) GetAccount() *Account
- func (o *SiteRole) GetSite() *Site
- func (o *SiteRole) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *SiteRole) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *SiteRole) SetAccount(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error
- func (o *SiteRole) SetSite(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Site) error
- func (o *SiteRole) Site(mods ...qm.QueryMod) siteQuery
- func (o *SiteRole) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *SiteRole) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type SiteRoleHook
- type SiteRoleSlice
- type SiteSlice
- type UpsertOptionFunc
- type UpsertOptions
Constants ¶
This section is empty.
Variables ¶
var AccessLogColumns = struct { ID string CreatedAt string UserID string Method string }{ ID: "id", CreatedAt: "created_at", UserID: "user_id", Method: "method", }
var AccessLogRels = struct { User string }{ User: "User", }
AccessLogRels is where relationship names are stored.
var AccessLogTableColumns = struct { ID string CreatedAt string UserID string Method string }{ ID: "access_log.id", CreatedAt: "access_log.created_at", UserID: "access_log.user_id", Method: "access_log.method", }
var AccessLogWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time UserID whereHelpernull_Int Method whereHelperstring }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UserID: whereHelpernull_Int{/* contains filtered or unexported fields */}, Method: whereHelperstring{/* contains filtered or unexported fields */}, }
var AccountColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string Username string Role string Email string PasswdHash string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", Username: "username", Role: "role", Email: "email", PasswdHash: "passwd_hash", }
var AccountRels = struct { UserAccessLogs string SiteRoles string }{ UserAccessLogs: "UserAccessLogs", SiteRoles: "SiteRoles", }
AccountRels is where relationship names are stored.
var AccountTableColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string Username string Role string Email string PasswdHash string }{ ID: "account.id", CreatedAt: "account.created_at", UpdatedAt: "account.updated_at", DeletedAt: "account.deleted_at", Username: "account.username", Role: "account.role", Email: "account.email", PasswdHash: "account.passwd_hash", }
var AccountWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time DeletedAt whereHelpernull_Time Username whereHelperstring Role whereHelperstring Email whereHelperstring PasswdHash whereHelperstring }{ ID: whereHelperint{/* 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 */}, Username: whereHelperstring{/* contains filtered or unexported fields */}, Role: whereHelperstring{/* contains filtered or unexported fields */}, Email: whereHelperstring{/* contains filtered or unexported fields */}, PasswdHash: whereHelperstring{/* contains filtered or unexported fields */}, }
var AttachtmentColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string SiteID string RelatedID string URL string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", SiteID: "site_id", RelatedID: "related_id", URL: "url", }
var AttachtmentRels = struct { Related string Site string }{ Related: "Related", Site: "Site", }
AttachtmentRels is where relationship names are stored.
var AttachtmentTableColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string SiteID string RelatedID string URL string }{ ID: "attachtment.id", CreatedAt: "attachtment.created_at", UpdatedAt: "attachtment.updated_at", DeletedAt: "attachtment.deleted_at", SiteID: "attachtment.site_id", RelatedID: "attachtment.related_id", URL: "attachtment.url", }
var AttachtmentWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time DeletedAt whereHelpernull_Time SiteID whereHelperint RelatedID whereHelperint URL whereHelperstring }{ ID: whereHelperint{/* 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 */}, SiteID: whereHelperint{/* contains filtered or unexported fields */}, RelatedID: whereHelperint{/* contains filtered or unexported fields */}, URL: whereHelperstring{/* contains filtered or unexported fields */}, }
var CommentColumns = struct { ID string CreatedAt string PostID string Email string Name string Content string }{ ID: "id", CreatedAt: "created_at", PostID: "post_id", Email: "email", Name: "name", Content: "content", }
var CommentRels = struct { Post string }{ Post: "Post", }
CommentRels is where relationship names are stored.
var CommentTableColumns = struct { ID string CreatedAt string PostID string Email string Name string Content string }{ ID: "comment.id", CreatedAt: "comment.created_at", PostID: "comment.post_id", Email: "comment.email", Name: "comment.name", Content: "comment.content", }
var CommentWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time PostID whereHelperint Email whereHelperstring Name whereHelperstring Content whereHelperstring }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, PostID: whereHelperint{/* contains filtered or unexported fields */}, Email: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Content: whereHelperstring{/* 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 PostColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string SiteID string Content string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", SiteID: "site_id", Content: "content", }
var PostRels = struct { Site string RelatedAttachtments string Comments string }{ Site: "Site", RelatedAttachtments: "RelatedAttachtments", Comments: "Comments", }
PostRels is where relationship names are stored.
var PostTableColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string SiteID string Content string }{ ID: "post.id", CreatedAt: "post.created_at", UpdatedAt: "post.updated_at", DeletedAt: "post.deleted_at", SiteID: "post.site_id", Content: "post.content", }
var PostWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time DeletedAt whereHelpernull_Time SiteID whereHelperint Content whereHelperstring }{ ID: whereHelperint{/* 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 */}, SiteID: whereHelperint{/* contains filtered or unexported fields */}, Content: whereHelperstring{/* contains filtered or unexported fields */}, }
var SiteColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string Name string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", Name: "name", }
var SiteRels = struct { Attachtments string Posts string SiteRoles string }{ Attachtments: "Attachtments", Posts: "Posts", SiteRoles: "SiteRoles", }
SiteRels is where relationship names are stored.
var SiteRoleColumns = struct { CreatedAt string UpdatedAt string AccountID string SiteID string Role string }{ CreatedAt: "created_at", UpdatedAt: "updated_at", AccountID: "account_id", SiteID: "site_id", Role: "role", }
var SiteRoleRels = struct { Account string Site string }{ Account: "Account", Site: "Site", }
SiteRoleRels is where relationship names are stored.
var SiteRoleTableColumns = struct { CreatedAt string UpdatedAt string AccountID string SiteID string Role string }{ CreatedAt: "site_role.created_at", UpdatedAt: "site_role.updated_at", AccountID: "site_role.account_id", SiteID: "site_role.site_id", Role: "site_role.role", }
var SiteRoleWhere = struct { CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time AccountID whereHelperint SiteID whereHelperint Role whereHelperstring }{ CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, AccountID: whereHelperint{/* contains filtered or unexported fields */}, SiteID: whereHelperint{/* contains filtered or unexported fields */}, Role: whereHelperstring{/* contains filtered or unexported fields */}, }
var SiteTableColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string Name string }{ ID: "site.id", CreatedAt: "site.created_at", UpdatedAt: "site.updated_at", DeletedAt: "site.deleted_at", Name: "site.name", }
var SiteWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time DeletedAt whereHelpernull_Time Name whereHelperstring }{ ID: whereHelperint{/* 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 */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, }
var TableNames = struct { AccessLog string Account string Attachtment string Comment string Post string Site string SiteRole string }{ AccessLog: "access_log", Account: "account", Attachtment: "attachtment", Comment: "comment", Post: "post", Site: "site", SiteRole: "site_role", }
var ViewNames = struct {
}{}
Functions ¶
func AccessLogExists ¶
AccessLogExists checks if the AccessLog row exists.
func AccessLogs ¶
AccessLogs retrieves all the records using an executor.
func AccountExists ¶
AccountExists checks if the Account row exists.
func AddAccessLogHook ¶
func AddAccessLogHook(hookPoint boil.HookPoint, accessLogHook AccessLogHook)
AddAccessLogHook registers your hook function for all future operations.
func AddAccountHook ¶
func AddAccountHook(hookPoint boil.HookPoint, accountHook AccountHook)
AddAccountHook registers your hook function for all future operations.
func AddAttachtmentHook ¶
func AddAttachtmentHook(hookPoint boil.HookPoint, attachtmentHook AttachtmentHook)
AddAttachtmentHook 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 AddSiteHook ¶
AddSiteHook registers your hook function for all future operations.
func AddSiteRoleHook ¶
func AddSiteRoleHook(hookPoint boil.HookPoint, siteRoleHook SiteRoleHook)
AddSiteRoleHook registers your hook function for all future operations.
func AttachtmentExists ¶
AttachtmentExists checks if the Attachtment row exists.
func Attachtments ¶
Attachtments retrieves all the records using an executor.
func CommentExists ¶
CommentExists checks if the Comment row exists.
func PostExists ¶
PostExists checks if the Post row exists.
func SiteExists ¶
SiteExists checks if the Site row exists.
func SiteRoleExists ¶
func SiteRoleExists(ctx context.Context, exec boil.ContextExecutor, accountID int, siteID int) (bool, error)
SiteRoleExists checks if the SiteRole row exists.
Types ¶
type AccessLog ¶
type AccessLog struct {
ID int `boil:"id" json:"id" toml:"id" yaml:"id"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
UserID null.Int `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"`
Method string `boil:"method" json:"method" toml:"method" yaml:"method"`
R *accessLogR `boil:"-" json:"-" toml:"-" yaml:"-"`
L accessLogL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
AccessLog is an object representing the database table.
func FindAccessLog ¶
func FindAccessLog(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*AccessLog, error)
FindAccessLog retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*AccessLog) Delete ¶
Delete deletes a single AccessLog record with an executor. Delete will match against the primary key column to find the record to delete.
func (*AccessLog) Insert ¶
func (o *AccessLog) 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 (*AccessLog) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*AccessLog) RemoveUser ¶
func (o *AccessLog) RemoveUser(ctx context.Context, exec boil.ContextExecutor, related *Account) error
RemoveUser relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct.
func (*AccessLog) SetUser ¶
func (o *AccessLog) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error
SetUser of the accessLog to the related item. Sets o.R.User to related. Adds o to related.R.UserAccessLogs.
func (*AccessLog) Update ¶
func (o *AccessLog) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the AccessLog. 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 (*AccessLog) Upsert ¶
func (o *AccessLog) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 AccessLogHook ¶
AccessLogHook is the signature for custom AccessLog hook methods
type AccessLogSlice ¶
type AccessLogSlice []*AccessLog
AccessLogSlice is an alias for a slice of pointers to AccessLog. This should almost always be used instead of []AccessLog.
func (AccessLogSlice) DeleteAll ¶
func (o AccessLogSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*AccessLogSlice) ReloadAll ¶
func (o *AccessLogSlice) 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 (AccessLogSlice) UpdateAll ¶
func (o AccessLogSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Account ¶
type Account struct {
ID int `boil:"id" json:"id" toml:"id" yaml:"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"`
Username string `boil:"username" json:"username" toml:"username" yaml:"username"`
Role string `boil:"role" json:"role" toml:"role" yaml:"role"`
Email string `boil:"email" json:"email" toml:"email" yaml:"email"`
PasswdHash string `boil:"passwd_hash" json:"passwd_hash" toml:"passwd_hash" yaml:"passwd_hash"`
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 int, 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) AddSiteRoles ¶
func (o *Account) AddSiteRoles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*SiteRole) error
AddSiteRoles adds the given related objects to the existing relationships of the account, optionally inserting them as new records. Appends related to o.R.SiteRoles. Sets related.R.Account appropriately.
func (*Account) AddUserAccessLogs ¶
func (o *Account) AddUserAccessLogs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AccessLog) error
AddUserAccessLogs adds the given related objects to the existing relationships of the account, optionally inserting them as new records. Appends related to o.R.UserAccessLogs. Sets related.R.User appropriately.
func (*Account) Delete ¶
func (o *Account) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
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) GetSiteRoles ¶
func (o *Account) GetSiteRoles() SiteRoleSlice
func (*Account) GetUserAccessLogs ¶
func (o *Account) GetUserAccessLogs() AccessLogSlice
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) RemoveUserAccessLogs ¶
func (o *Account) RemoveUserAccessLogs(ctx context.Context, exec boil.ContextExecutor, related ...*AccessLog) error
RemoveUserAccessLogs relationships from objects passed in. Removes related items from R.UserAccessLogs (uses pointer comparison, removal does not keep order) Sets related.R.User.
func (*Account) SetUserAccessLogs ¶
func (o *Account) SetUserAccessLogs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AccessLog) error
SetUserAccessLogs removes all previously related items of the account replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's UserAccessLogs accordingly. Replaces o.R.UserAccessLogs with related. Sets related.R.User's UserAccessLogs accordingly.
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, opts ...UpsertOptionFunc) 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 (*Account) UserAccessLogs ¶
UserAccessLogs retrieves all the access_log's AccessLogs with an executor via user_id column.
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 almost always be used instead of []Account.
func (AccountSlice) DeleteAll ¶
func (o AccountSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (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 Attachtment ¶
type Attachtment struct {
ID int `boil:"id" json:"id" toml:"id" yaml:"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"`
SiteID int `boil:"site_id" json:"site_id" toml:"site_id" yaml:"site_id"`
RelatedID int `boil:"related_id" json:"related_id" toml:"related_id" yaml:"related_id"`
URL string `boil:"url" json:"url" toml:"url" yaml:"url"`
R *attachtmentR `boil:"-" json:"-" toml:"-" yaml:"-"`
L attachtmentL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Attachtment is an object representing the database table.
func FindAttachtment ¶
func FindAttachtment(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Attachtment, error)
FindAttachtment retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Attachtment) Delete ¶
func (o *Attachtment) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
Delete deletes a single Attachtment record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Attachtment) Exists ¶
func (o *Attachtment) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the Attachtment row exists.
func (*Attachtment) GetRelated ¶
func (o *Attachtment) GetRelated() *Post
func (*Attachtment) GetSite ¶
func (o *Attachtment) GetSite() *Site
func (*Attachtment) Insert ¶
func (o *Attachtment) 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 (*Attachtment) Related ¶
func (o *Attachtment) Related(mods ...qm.QueryMod) postQuery
Related pointed to by the foreign key.
func (*Attachtment) Reload ¶
func (o *Attachtment) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*Attachtment) SetRelated ¶
func (o *Attachtment) SetRelated(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Post) error
SetRelated of the attachtment to the related item. Sets o.R.Related to related. Adds o to related.R.RelatedAttachtments.
func (*Attachtment) SetSite ¶
func (o *Attachtment) SetSite(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Site) error
SetSite of the attachtment to the related item. Sets o.R.Site to related. Adds o to related.R.Attachtments.
func (*Attachtment) Site ¶
func (o *Attachtment) Site(mods ...qm.QueryMod) siteQuery
Site pointed to by the foreign key.
func (*Attachtment) Update ¶
func (o *Attachtment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Attachtment. 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 (*Attachtment) Upsert ¶
func (o *Attachtment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 AttachtmentHook ¶
type AttachtmentHook func(context.Context, boil.ContextExecutor, *Attachtment) error
AttachtmentHook is the signature for custom Attachtment hook methods
type AttachtmentSlice ¶
type AttachtmentSlice []*Attachtment
AttachtmentSlice is an alias for a slice of pointers to Attachtment. This should almost always be used instead of []Attachtment.
func (AttachtmentSlice) DeleteAll ¶
func (o AttachtmentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*AttachtmentSlice) ReloadAll ¶
func (o *AttachtmentSlice) 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 (AttachtmentSlice) UpdateAll ¶
func (o AttachtmentSlice) 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 int `boil:"id" json:"id" toml:"id" yaml:"id"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
PostID int `boil:"post_id" json:"post_id" toml:"post_id" yaml:"post_id"`
Email string `boil:"email" json:"email" toml:"email" yaml:"email"`
Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
Content string `boil:"content" json:"content" toml:"content" yaml:"content"`
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 int, 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) 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, opts ...UpsertOptionFunc) 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 almost always be used instead of []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 int `boil:"id" json:"id" toml:"id" yaml:"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"`
SiteID int `boil:"site_id" json:"site_id" toml:"site_id" yaml:"site_id"`
Content string `boil:"content" json:"content" toml:"content" yaml:"content"`
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 int, 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) AddRelatedAttachtments ¶
func (o *Post) AddRelatedAttachtments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Attachtment) error
AddRelatedAttachtments adds the given related objects to the existing relationships of the post, optionally inserting them as new records. Appends related to o.R.RelatedAttachtments. Sets related.R.Related appropriately.
func (*Post) Delete ¶
func (o *Post) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
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) GetComments ¶
func (o *Post) GetComments() CommentSlice
func (*Post) GetRelatedAttachtments ¶
func (o *Post) GetRelatedAttachtments() AttachtmentSlice
func (*Post) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Post) RelatedAttachtments ¶
RelatedAttachtments retrieves all the attachtment's Attachtments with an executor via related_id column.
func (*Post) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Post) SetSite ¶
func (o *Post) SetSite(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Site) error
SetSite of the post to the related item. Sets o.R.Site to related. Adds o to related.R.Posts.
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, opts ...UpsertOptionFunc) 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 almost always be used instead of []Post.
func (PostSlice) DeleteAll ¶
func (o PostSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
type Site ¶
type Site struct {
ID int `boil:"id" json:"id" toml:"id" yaml:"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"`
Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
R *siteR `boil:"-" json:"-" toml:"-" yaml:"-"`
L siteL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Site is an object representing the database table.
func FindSite ¶
func FindSite(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Site, error)
FindSite retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Site) AddAttachtments ¶
func (o *Site) AddAttachtments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Attachtment) error
AddAttachtments adds the given related objects to the existing relationships of the site, optionally inserting them as new records. Appends related to o.R.Attachtments. Sets related.R.Site appropriately.
func (*Site) AddPosts ¶
func (o *Site) AddPosts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Post) error
AddPosts adds the given related objects to the existing relationships of the site, optionally inserting them as new records. Appends related to o.R.Posts. Sets related.R.Site appropriately.
func (*Site) AddSiteRoles ¶
func (o *Site) AddSiteRoles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*SiteRole) error
AddSiteRoles adds the given related objects to the existing relationships of the site, optionally inserting them as new records. Appends related to o.R.SiteRoles. Sets related.R.Site appropriately.
func (*Site) Attachtments ¶
Attachtments retrieves all the attachtment's Attachtments with an executor.
func (*Site) Delete ¶
func (o *Site) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
Delete deletes a single Site record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Site) GetAttachtments ¶
func (o *Site) GetAttachtments() AttachtmentSlice
func (*Site) GetSiteRoles ¶
func (o *Site) GetSiteRoles() SiteRoleSlice
func (*Site) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Site) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Site) Update ¶
func (o *Site) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Site. 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 (*Site) Upsert ¶
func (o *Site) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 SiteRole ¶
type SiteRole struct {
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"`
AccountID int `boil:"account_id" json:"account_id" toml:"account_id" yaml:"account_id"`
SiteID int `boil:"site_id" json:"site_id" toml:"site_id" yaml:"site_id"`
Role string `boil:"role" json:"role" toml:"role" yaml:"role"`
R *siteRoleR `boil:"-" json:"-" toml:"-" yaml:"-"`
L siteRoleL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
SiteRole is an object representing the database table.
func FindSiteRole ¶
func FindSiteRole(ctx context.Context, exec boil.ContextExecutor, accountID int, siteID int, selectCols ...string) (*SiteRole, error)
FindSiteRole retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*SiteRole) Delete ¶
Delete deletes a single SiteRole record with an executor. Delete will match against the primary key column to find the record to delete.
func (*SiteRole) GetAccount ¶
func (*SiteRole) Insert ¶
func (o *SiteRole) 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 (*SiteRole) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*SiteRole) SetAccount ¶
func (o *SiteRole) SetAccount(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error
SetAccount of the siteRole to the related item. Sets o.R.Account to related. Adds o to related.R.SiteRoles.
func (*SiteRole) SetSite ¶
func (o *SiteRole) SetSite(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Site) error
SetSite of the siteRole to the related item. Sets o.R.Site to related. Adds o to related.R.SiteRoles.
func (*SiteRole) Update ¶
func (o *SiteRole) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the SiteRole. 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 (*SiteRole) Upsert ¶
func (o *SiteRole) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 SiteRoleHook ¶
SiteRoleHook is the signature for custom SiteRole hook methods
type SiteRoleSlice ¶
type SiteRoleSlice []*SiteRole
SiteRoleSlice is an alias for a slice of pointers to SiteRole. This should almost always be used instead of []SiteRole.
func (SiteRoleSlice) DeleteAll ¶
func (o SiteRoleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*SiteRoleSlice) ReloadAll ¶
func (o *SiteRoleSlice) 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 (SiteRoleSlice) UpdateAll ¶
func (o SiteRoleSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type SiteSlice ¶
type SiteSlice []*Site
SiteSlice is an alias for a slice of pointers to Site. This should almost always be used instead of []Site.
func (SiteSlice) DeleteAll ¶
func (o SiteSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
type UpsertOptionFunc ¶
type UpsertOptionFunc func(o *UpsertOptions)
func UpsertConflictTarget ¶
func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc
func UpsertUpdateSet ¶
func UpsertUpdateSet(updateSet string) UpsertOptionFunc
type UpsertOptions ¶
type UpsertOptions struct {
// contains filtered or unexported fields
}