Documentation ¶
Index ¶
- Variables
- func AddAliasHook(hookPoint boil.HookPoint, aliasHook AliasHook)
- func AddConfigHook(hookPoint boil.HookPoint, configHook ConfigHook)
- func AddDeniedKeyHook(hookPoint boil.HookPoint, deniedKeyHook DeniedKeyHook)
- func AddFallbackPasswordHook(hookPoint boil.HookPoint, fallbackPasswordHook FallbackPasswordHook)
- func AddFallbackResetTokenHook(hookPoint boil.HookPoint, fallbackResetTokenHook FallbackResetTokenHook)
- func AddInviteHook(hookPoint boil.HookPoint, inviteHook InviteHook)
- func AddMemberHook(hookPoint boil.HookPoint, memberHook MemberHook)
- func AddNoticeHook(hookPoint boil.HookPoint, noticeHook NoticeHook)
- func AddPinHook(hookPoint boil.HookPoint, pinHook PinHook)
- func AddSIWSSBSessionHook(hookPoint boil.HookPoint, sIWSSBSessionHook SIWSSBSessionHook)
- func AliasExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Aliases(mods ...qm.QueryMod) aliasQuery
- func ConfigExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Configs(mods ...qm.QueryMod) configQuery
- func DeniedKeyExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func DeniedKeys(mods ...qm.QueryMod) deniedKeyQuery
- func FallbackPasswordExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func FallbackPasswords(mods ...qm.QueryMod) fallbackPasswordQuery
- func FallbackResetTokenExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func FallbackResetTokens(mods ...qm.QueryMod) fallbackResetTokenQuery
- func InviteExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Invites(mods ...qm.QueryMod) inviteQuery
- func MemberExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Members(mods ...qm.QueryMod) memberQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func NoticeExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Notices(mods ...qm.QueryMod) noticeQuery
- func PinExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Pins(mods ...qm.QueryMod) pinQuery
- func SIWSSBSessionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func SIWSSBSessions(mods ...qm.QueryMod) sIWSSBSessionQuery
- type Alias
- func (o *Alias) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Alias) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Alias) Member(mods ...qm.QueryMod) memberQuery
- func (o *Alias) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Alias) SetMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error
- func (o *Alias) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type AliasHook
- type AliasSlice
- type Config
- func (o *Config) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Config) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Config) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Config) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type ConfigHook
- type ConfigSlice
- type DeniedKey
- func (o *DeniedKey) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *DeniedKey) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *DeniedKey) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *DeniedKey) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type DeniedKeyHook
- type DeniedKeySlice
- type FallbackPassword
- func (o *FallbackPassword) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *FallbackPassword) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *FallbackPassword) Member(mods ...qm.QueryMod) memberQuery
- func (o *FallbackPassword) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *FallbackPassword) SetMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error
- func (o *FallbackPassword) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type FallbackPasswordHook
- type FallbackPasswordSlice
- func (o FallbackPasswordSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *FallbackPasswordSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o FallbackPasswordSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type FallbackResetToken
- func (o *FallbackResetToken) CreatedByMember(mods ...qm.QueryMod) memberQuery
- func (o *FallbackResetToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *FallbackResetToken) ForMemberMember(mods ...qm.QueryMod) memberQuery
- func (o *FallbackResetToken) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *FallbackResetToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *FallbackResetToken) SetCreatedByMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error
- func (o *FallbackResetToken) SetForMemberMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error
- func (o *FallbackResetToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type FallbackResetTokenHook
- type FallbackResetTokenSlice
- func (o FallbackResetTokenSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *FallbackResetTokenSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o FallbackResetTokenSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Invite
- func (o *Invite) CreatedByMember(mods ...qm.QueryMod) memberQuery
- func (o *Invite) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Invite) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Invite) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Invite) SetCreatedByMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error
- func (o *Invite) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type InviteHook
- type InviteSlice
- type M
- type Member
- func (o *Member) AddAliases(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Alias) error
- func (o *Member) AddCreatedByFallbackResetTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Member) AddCreatedByInvites(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Member) AddForMemberFallbackResetTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Member) AddSIWSSBSessions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Member) Aliases(mods ...qm.QueryMod) aliasQuery
- func (o *Member) CreatedByFallbackResetTokens(mods ...qm.QueryMod) fallbackResetTokenQuery
- func (o *Member) CreatedByInvites(mods ...qm.QueryMod) inviteQuery
- func (o *Member) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Member) FallbackPassword(mods ...qm.QueryMod) fallbackPasswordQuery
- func (o *Member) ForMemberFallbackResetTokens(mods ...qm.QueryMod) fallbackResetTokenQuery
- func (o *Member) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Member) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Member) SIWSSBSessions(mods ...qm.QueryMod) sIWSSBSessionQuery
- func (o *Member) SetFallbackPassword(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Member) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type MemberHook
- type MemberSlice
- type Notice
- func (o *Notice) AddPins(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Pin) error
- func (o *Notice) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Notice) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Notice) Pins(mods ...qm.QueryMod) pinQuery
- func (o *Notice) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Notice) RemovePins(ctx context.Context, exec boil.ContextExecutor, related ...*Pin) error
- func (o *Notice) SetPins(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Pin) error
- func (o *Notice) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type NoticeHook
- type NoticeSlice
- type Pin
- func (o *Pin) AddNotices(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Pin) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Pin) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Pin) Notices(mods ...qm.QueryMod) noticeQuery
- func (o *Pin) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Pin) RemoveNotices(ctx context.Context, exec boil.ContextExecutor, related ...*Notice) error
- func (o *Pin) SetNotices(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Pin) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type PinHook
- type PinSlice
- type SIWSSBSession
- func (o *SIWSSBSession) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SIWSSBSession) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *SIWSSBSession) Member(mods ...qm.QueryMod) memberQuery
- func (o *SIWSSBSession) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *SIWSSBSession) SetMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error
- func (o *SIWSSBSession) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type SIWSSBSessionHook
- type SIWSSBSessionSlice
- func (o SIWSSBSessionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SIWSSBSessionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o SIWSSBSessionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
var AliasColumns = struct { ID string Name string MemberID string Signature string }{ ID: "id", Name: "name", MemberID: "member_id", Signature: "signature", }
var AliasRels = struct { Member string }{ Member: "Member", }
AliasRels is where relationship names are stored.
var AliasWhere = struct { ID whereHelperint64 Name whereHelperstring MemberID whereHelperint64 Signature whereHelper__byte }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, MemberID: whereHelperint64{/* contains filtered or unexported fields */}, Signature: whereHelper__byte{/* contains filtered or unexported fields */}, }
var ConfigColumns = struct { ID string PrivacyMode string DefaultLanguage string UseSubdomainForAliases string }{ ID: "id", PrivacyMode: "privacyMode", DefaultLanguage: "defaultLanguage", UseSubdomainForAliases: "use_subdomain_for_aliases", }
var ConfigRels = struct {
}{}
ConfigRels is where relationship names are stored.
var ConfigWhere = struct { ID whereHelperint64 PrivacyMode whereHelperroomdb_PrivacyMode DefaultLanguage whereHelperstring UseSubdomainForAliases whereHelperbool }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, PrivacyMode: whereHelperroomdb_PrivacyMode{/* contains filtered or unexported fields */}, DefaultLanguage: whereHelperstring{/* contains filtered or unexported fields */}, UseSubdomainForAliases: whereHelperbool{/* contains filtered or unexported fields */}, }
var DeniedKeyColumns = struct { ID string PubKey string Comment string CreatedAt string }{ ID: "id", PubKey: "pub_key", Comment: "comment", CreatedAt: "created_at", }
var DeniedKeyRels = struct {
}{}
DeniedKeyRels is where relationship names are stored.
var DeniedKeyWhere = struct { ID whereHelperint64 PubKey whereHelperroomdb_DBFeedRef Comment whereHelperstring CreatedAt whereHelpertime_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, PubKey: whereHelperroomdb_DBFeedRef{/* contains filtered or unexported fields */}, Comment: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_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 FallbackPasswordColumns = struct { ID string PasswordHash string MemberID string }{ ID: "id", PasswordHash: "password_hash", MemberID: "member_id", }
var FallbackPasswordRels = struct { Member string }{ Member: "Member", }
FallbackPasswordRels is where relationship names are stored.
var FallbackPasswordWhere = struct { ID whereHelperint64 PasswordHash whereHelper__byte MemberID whereHelperint64 }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, PasswordHash: whereHelper__byte{/* contains filtered or unexported fields */}, MemberID: whereHelperint64{/* contains filtered or unexported fields */}, }
var FallbackResetTokenColumns = struct { ID string HashedToken string CreatedBy string CreatedAt string ForMember string Active string }{ ID: "id", HashedToken: "hashed_token", CreatedBy: "created_by", CreatedAt: "created_at", ForMember: "for_member", Active: "active", }
var FallbackResetTokenRels = struct { ForMemberMember string CreatedByMember string }{ ForMemberMember: "ForMemberMember", CreatedByMember: "CreatedByMember", }
FallbackResetTokenRels is where relationship names are stored.
var FallbackResetTokenWhere = struct { ID whereHelperint64 HashedToken whereHelperstring CreatedBy whereHelperint64 CreatedAt whereHelpertime_Time ForMember whereHelperint64 Active whereHelperbool }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, HashedToken: whereHelperstring{/* contains filtered or unexported fields */}, CreatedBy: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, ForMember: whereHelperint64{/* contains filtered or unexported fields */}, Active: whereHelperbool{/* contains filtered or unexported fields */}, }
var InviteColumns = struct { ID string HashedToken string CreatedBy string CreatedAt string Active string }{ ID: "id", HashedToken: "hashed_token", CreatedBy: "created_by", CreatedAt: "created_at", Active: "active", }
var InviteRels = struct { CreatedByMember string }{ CreatedByMember: "CreatedByMember", }
InviteRels is where relationship names are stored.
var InviteWhere = struct { ID whereHelperint64 HashedToken whereHelperstring CreatedBy whereHelperint64 CreatedAt whereHelpertime_Time Active whereHelperbool }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, HashedToken: whereHelperstring{/* contains filtered or unexported fields */}, CreatedBy: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, Active: whereHelperbool{/* contains filtered or unexported fields */}, }
var MemberColumns = struct { ID string Role string PubKey string }{ ID: "id", Role: "role", PubKey: "pub_key", }
var MemberRels = struct { FallbackPassword string SIWSSBSessions string Aliases string ForMemberFallbackResetTokens string CreatedByFallbackResetTokens string CreatedByInvites string }{ FallbackPassword: "FallbackPassword", SIWSSBSessions: "SIWSSBSessions", Aliases: "Aliases", ForMemberFallbackResetTokens: "ForMemberFallbackResetTokens", CreatedByFallbackResetTokens: "CreatedByFallbackResetTokens", CreatedByInvites: "CreatedByInvites", }
MemberRels is where relationship names are stored.
var MemberWhere = struct { ID whereHelperint64 Role whereHelperint64 PubKey whereHelperroomdb_DBFeedRef }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Role: whereHelperint64{/* contains filtered or unexported fields */}, PubKey: whereHelperroomdb_DBFeedRef{/* contains filtered or unexported fields */}, }
var NoticeColumns = struct { ID string Title string Content string Language string }{ ID: "id", Title: "title", Content: "content", Language: "language", }
var NoticeRels = struct { Pins string }{ Pins: "Pins", }
NoticeRels is where relationship names are stored.
var NoticeWhere = struct { ID whereHelperint64 Title whereHelperstring Content whereHelperstring Language whereHelperstring }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Title: whereHelperstring{/* contains filtered or unexported fields */}, Content: whereHelperstring{/* contains filtered or unexported fields */}, Language: whereHelperstring{/* contains filtered or unexported fields */}, }
var PinColumns = struct { ID string Name string }{ ID: "id", Name: "name", }
var PinRels = struct { Notices string }{ Notices: "Notices", }
PinRels is where relationship names are stored.
var PinWhere = struct { ID whereHelperint64 Name whereHelperstring }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, }
var SIWSSBSessionColumns = struct { ID string Token string MemberID string CreatedAt string }{ ID: "id", Token: "token", MemberID: "member_id", CreatedAt: "created_at", }
var SIWSSBSessionRels = struct { Member string }{ Member: "Member", }
SIWSSBSessionRels is where relationship names are stored.
var SIWSSBSessionWhere = struct { ID whereHelperint64 Token whereHelperstring MemberID whereHelperint64 CreatedAt whereHelpertime_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Token: whereHelperstring{/* contains filtered or unexported fields */}, MemberID: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { SIWSSBSessions string Aliases string Config string DeniedKeys string FallbackPasswords string FallbackResetTokens string Invites string Members string Notices string PinNotices string Pins string }{ SIWSSBSessions: "SIWSSB_sessions", Aliases: "aliases", Config: "config", DeniedKeys: "denied_keys", FallbackPasswords: "fallback_passwords", FallbackResetTokens: "fallback_reset_tokens", Invites: "invites", Members: "members", Notices: "notices", PinNotices: "pin_notices", Pins: "pins", }
Functions ¶
func AddAliasHook ¶
AddAliasHook registers your hook function for all future operations.
func AddConfigHook ¶
func AddConfigHook(hookPoint boil.HookPoint, configHook ConfigHook)
AddConfigHook registers your hook function for all future operations.
func AddDeniedKeyHook ¶
func AddDeniedKeyHook(hookPoint boil.HookPoint, deniedKeyHook DeniedKeyHook)
AddDeniedKeyHook registers your hook function for all future operations.
func AddFallbackPasswordHook ¶
func AddFallbackPasswordHook(hookPoint boil.HookPoint, fallbackPasswordHook FallbackPasswordHook)
AddFallbackPasswordHook registers your hook function for all future operations.
func AddFallbackResetTokenHook ¶
func AddFallbackResetTokenHook(hookPoint boil.HookPoint, fallbackResetTokenHook FallbackResetTokenHook)
AddFallbackResetTokenHook registers your hook function for all future operations.
func AddInviteHook ¶
func AddInviteHook(hookPoint boil.HookPoint, inviteHook InviteHook)
AddInviteHook registers your hook function for all future operations.
func AddMemberHook ¶
func AddMemberHook(hookPoint boil.HookPoint, memberHook MemberHook)
AddMemberHook registers your hook function for all future operations.
func AddNoticeHook ¶
func AddNoticeHook(hookPoint boil.HookPoint, noticeHook NoticeHook)
AddNoticeHook registers your hook function for all future operations.
func AddPinHook ¶
AddPinHook registers your hook function for all future operations.
func AddSIWSSBSessionHook ¶
func AddSIWSSBSessionHook(hookPoint boil.HookPoint, sIWSSBSessionHook SIWSSBSessionHook)
AddSIWSSBSessionHook registers your hook function for all future operations.
func AliasExists ¶
AliasExists checks if the Alias row exists.
func ConfigExists ¶
ConfigExists checks if the Config row exists.
func DeniedKeyExists ¶
DeniedKeyExists checks if the DeniedKey row exists.
func DeniedKeys ¶
DeniedKeys retrieves all the records using an executor.
func FallbackPasswordExists ¶
FallbackPasswordExists checks if the FallbackPassword row exists.
func FallbackPasswords ¶
FallbackPasswords retrieves all the records using an executor.
func FallbackResetTokenExists ¶
func FallbackResetTokenExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
FallbackResetTokenExists checks if the FallbackResetToken row exists.
func FallbackResetTokens ¶
FallbackResetTokens retrieves all the records using an executor.
func InviteExists ¶
InviteExists checks if the Invite row exists.
func MemberExists ¶
MemberExists checks if the Member row exists.
func NoticeExists ¶
NoticeExists checks if the Notice row exists.
func SIWSSBSessionExists ¶
SIWSSBSessionExists checks if the SIWSSBSession row exists.
func SIWSSBSessions ¶
SIWSSBSessions retrieves all the records using an executor.
Types ¶
type Alias ¶
type Alias struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` MemberID int64 `boil:"member_id" json:"member_id" toml:"member_id" yaml:"member_id"` Signature []byte `boil:"signature" json:"signature" toml:"signature" yaml:"signature"` R *aliasR `boil:"-" json:"-" toml:"-" yaml:"-"` L aliasL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Alias is an object representing the database table.
func FindAlias ¶
func FindAlias(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Alias, error)
FindAlias retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Alias) Delete ¶
Delete deletes a single Alias record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Alias) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Alias) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Alias) SetMember ¶
func (o *Alias) SetMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error
SetMember of the alias to the related item. Sets o.R.Member to related. Adds o to related.R.Aliases.
func (*Alias) Update ¶
func (o *Alias) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Alias. 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.
type AliasSlice ¶
type AliasSlice []*Alias
AliasSlice is an alias for a slice of pointers to Alias. This should generally be used opposed to []Alias.
func (AliasSlice) DeleteAll ¶
func (o AliasSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*AliasSlice) ReloadAll ¶
func (o *AliasSlice) 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 (AliasSlice) UpdateAll ¶
func (o AliasSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Config ¶
type Config struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` PrivacyMode roomdb.PrivacyMode `boil:"privacyMode" json:"privacyMode" toml:"privacyMode" yaml:"privacyMode"` DefaultLanguage string `boil:"defaultLanguage" json:"defaultLanguage" toml:"defaultLanguage" yaml:"defaultLanguage"` UseSubdomainForAliases bool `` /* 131-byte string literal not displayed */ R *configR `boil:"-" json:"-" toml:"-" yaml:"-"` L configL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Config is an object representing the database table.
func FindConfig ¶
func FindConfig(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Config, error)
FindConfig retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Config) Delete ¶
Delete deletes a single Config record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Config) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Config) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Config) Update ¶
func (o *Config) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Config. 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.
type ConfigHook ¶
ConfigHook is the signature for custom Config hook methods
type ConfigSlice ¶
type ConfigSlice []*Config
ConfigSlice is an alias for a slice of pointers to Config. This should generally be used opposed to []Config.
func (ConfigSlice) DeleteAll ¶
func (o ConfigSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ConfigSlice) ReloadAll ¶
func (o *ConfigSlice) 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 (ConfigSlice) UpdateAll ¶
func (o ConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type DeniedKey ¶
type DeniedKey struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` PubKey roomdb.DBFeedRef `boil:"pub_key" json:"pub_key" toml:"pub_key" yaml:"pub_key"` Comment string `boil:"comment" json:"comment" toml:"comment" yaml:"comment"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` R *deniedKeyR `boil:"-" json:"-" toml:"-" yaml:"-"` L deniedKeyL `boil:"-" json:"-" toml:"-" yaml:"-"` }
DeniedKey is an object representing the database table.
func FindDeniedKey ¶
func FindDeniedKey(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*DeniedKey, error)
FindDeniedKey retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*DeniedKey) Delete ¶
Delete deletes a single DeniedKey record with an executor. Delete will match against the primary key column to find the record to delete.
func (*DeniedKey) Insert ¶
func (o *DeniedKey) 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 (*DeniedKey) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*DeniedKey) Update ¶
func (o *DeniedKey) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the DeniedKey. 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.
type DeniedKeyHook ¶
DeniedKeyHook is the signature for custom DeniedKey hook methods
type DeniedKeySlice ¶
type DeniedKeySlice []*DeniedKey
DeniedKeySlice is an alias for a slice of pointers to DeniedKey. This should generally be used opposed to []DeniedKey.
func (DeniedKeySlice) DeleteAll ¶
func (o DeniedKeySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*DeniedKeySlice) ReloadAll ¶
func (o *DeniedKeySlice) 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 (DeniedKeySlice) UpdateAll ¶
func (o DeniedKeySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type FallbackPassword ¶
type FallbackPassword struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` PasswordHash []byte `boil:"password_hash" json:"password_hash" toml:"password_hash" yaml:"password_hash"` MemberID int64 `boil:"member_id" json:"member_id" toml:"member_id" yaml:"member_id"` R *fallbackPasswordR `boil:"-" json:"-" toml:"-" yaml:"-"` L fallbackPasswordL `boil:"-" json:"-" toml:"-" yaml:"-"` }
FallbackPassword is an object representing the database table.
func FindFallbackPassword ¶
func FindFallbackPassword(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*FallbackPassword, error)
FindFallbackPassword retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*FallbackPassword) Delete ¶
func (o *FallbackPassword) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single FallbackPassword record with an executor. Delete will match against the primary key column to find the record to delete.
func (*FallbackPassword) Insert ¶
func (o *FallbackPassword) 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 (*FallbackPassword) Member ¶
func (o *FallbackPassword) Member(mods ...qm.QueryMod) memberQuery
Member pointed to by the foreign key.
func (*FallbackPassword) Reload ¶
func (o *FallbackPassword) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*FallbackPassword) SetMember ¶
func (o *FallbackPassword) SetMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error
SetMember of the fallbackPassword to the related item. Sets o.R.Member to related. Adds o to related.R.FallbackPassword.
func (*FallbackPassword) Update ¶
func (o *FallbackPassword) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the FallbackPassword. 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.
type FallbackPasswordHook ¶
type FallbackPasswordHook func(context.Context, boil.ContextExecutor, *FallbackPassword) error
FallbackPasswordHook is the signature for custom FallbackPassword hook methods
type FallbackPasswordSlice ¶
type FallbackPasswordSlice []*FallbackPassword
FallbackPasswordSlice is an alias for a slice of pointers to FallbackPassword. This should generally be used opposed to []FallbackPassword.
func (FallbackPasswordSlice) DeleteAll ¶
func (o FallbackPasswordSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*FallbackPasswordSlice) ReloadAll ¶
func (o *FallbackPasswordSlice) 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 (FallbackPasswordSlice) UpdateAll ¶
func (o FallbackPasswordSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type FallbackResetToken ¶
type FallbackResetToken struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` HashedToken string `boil:"hashed_token" json:"hashed_token" toml:"hashed_token" yaml:"hashed_token"` CreatedBy int64 `boil:"created_by" json:"created_by" toml:"created_by" yaml:"created_by"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` ForMember int64 `boil:"for_member" json:"for_member" toml:"for_member" yaml:"for_member"` Active bool `boil:"active" json:"active" toml:"active" yaml:"active"` R *fallbackResetTokenR `boil:"-" json:"-" toml:"-" yaml:"-"` L fallbackResetTokenL `boil:"-" json:"-" toml:"-" yaml:"-"` }
FallbackResetToken is an object representing the database table.
func FindFallbackResetToken ¶
func FindFallbackResetToken(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*FallbackResetToken, error)
FindFallbackResetToken retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*FallbackResetToken) CreatedByMember ¶
func (o *FallbackResetToken) CreatedByMember(mods ...qm.QueryMod) memberQuery
CreatedByMember pointed to by the foreign key.
func (*FallbackResetToken) Delete ¶
func (o *FallbackResetToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single FallbackResetToken record with an executor. Delete will match against the primary key column to find the record to delete.
func (*FallbackResetToken) ForMemberMember ¶
func (o *FallbackResetToken) ForMemberMember(mods ...qm.QueryMod) memberQuery
ForMemberMember pointed to by the foreign key.
func (*FallbackResetToken) Insert ¶
func (o *FallbackResetToken) 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 (*FallbackResetToken) Reload ¶
func (o *FallbackResetToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*FallbackResetToken) SetCreatedByMember ¶
func (o *FallbackResetToken) SetCreatedByMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error
SetCreatedByMember of the fallbackResetToken to the related item. Sets o.R.CreatedByMember to related. Adds o to related.R.CreatedByFallbackResetTokens.
func (*FallbackResetToken) SetForMemberMember ¶
func (o *FallbackResetToken) SetForMemberMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error
SetForMemberMember of the fallbackResetToken to the related item. Sets o.R.ForMemberMember to related. Adds o to related.R.ForMemberFallbackResetTokens.
func (*FallbackResetToken) Update ¶
func (o *FallbackResetToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the FallbackResetToken. 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.
type FallbackResetTokenHook ¶
type FallbackResetTokenHook func(context.Context, boil.ContextExecutor, *FallbackResetToken) error
FallbackResetTokenHook is the signature for custom FallbackResetToken hook methods
type FallbackResetTokenSlice ¶
type FallbackResetTokenSlice []*FallbackResetToken
FallbackResetTokenSlice is an alias for a slice of pointers to FallbackResetToken. This should generally be used opposed to []FallbackResetToken.
func (FallbackResetTokenSlice) DeleteAll ¶
func (o FallbackResetTokenSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*FallbackResetTokenSlice) ReloadAll ¶
func (o *FallbackResetTokenSlice) 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 (FallbackResetTokenSlice) UpdateAll ¶
func (o FallbackResetTokenSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Invite ¶
type Invite struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` HashedToken string `boil:"hashed_token" json:"hashed_token" toml:"hashed_token" yaml:"hashed_token"` CreatedBy int64 `boil:"created_by" json:"created_by" toml:"created_by" yaml:"created_by"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` Active bool `boil:"active" json:"active" toml:"active" yaml:"active"` R *inviteR `boil:"-" json:"-" toml:"-" yaml:"-"` L inviteL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Invite is an object representing the database table.
func FindInvite ¶
func FindInvite(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Invite, error)
FindInvite retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Invite) CreatedByMember ¶
CreatedByMember pointed to by the foreign key.
func (*Invite) Delete ¶
Delete deletes a single Invite record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Invite) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Invite) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Invite) SetCreatedByMember ¶
func (o *Invite) SetCreatedByMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error
SetCreatedByMember of the invite to the related item. Sets o.R.CreatedByMember to related. Adds o to related.R.CreatedByInvites.
func (*Invite) Update ¶
func (o *Invite) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Invite. 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.
type InviteHook ¶
InviteHook is the signature for custom Invite hook methods
type InviteSlice ¶
type InviteSlice []*Invite
InviteSlice is an alias for a slice of pointers to Invite. This should generally be used opposed to []Invite.
func (InviteSlice) DeleteAll ¶
func (o InviteSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*InviteSlice) ReloadAll ¶
func (o *InviteSlice) 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 (InviteSlice) UpdateAll ¶
func (o InviteSlice) 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 Member ¶
type Member struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Role int64 `boil:"role" json:"role" toml:"role" yaml:"role"` PubKey roomdb.DBFeedRef `boil:"pub_key" json:"pub_key" toml:"pub_key" yaml:"pub_key"` R *memberR `boil:"-" json:"-" toml:"-" yaml:"-"` L memberL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Member is an object representing the database table.
func FindMember ¶
func FindMember(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Member, error)
FindMember retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Member) AddAliases ¶
func (o *Member) AddAliases(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Alias) error
AddAliases adds the given related objects to the existing relationships of the member, optionally inserting them as new records. Appends related to o.R.Aliases. Sets related.R.Member appropriately.
func (*Member) AddCreatedByFallbackResetTokens ¶
func (o *Member) AddCreatedByFallbackResetTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*FallbackResetToken) error
AddCreatedByFallbackResetTokens adds the given related objects to the existing relationships of the member, optionally inserting them as new records. Appends related to o.R.CreatedByFallbackResetTokens. Sets related.R.CreatedByMember appropriately.
func (*Member) AddCreatedByInvites ¶
func (o *Member) AddCreatedByInvites(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Invite) error
AddCreatedByInvites adds the given related objects to the existing relationships of the member, optionally inserting them as new records. Appends related to o.R.CreatedByInvites. Sets related.R.CreatedByMember appropriately.
func (*Member) AddForMemberFallbackResetTokens ¶
func (o *Member) AddForMemberFallbackResetTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*FallbackResetToken) error
AddForMemberFallbackResetTokens adds the given related objects to the existing relationships of the member, optionally inserting them as new records. Appends related to o.R.ForMemberFallbackResetTokens. Sets related.R.ForMemberMember appropriately.
func (*Member) AddSIWSSBSessions ¶
func (o *Member) AddSIWSSBSessions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*SIWSSBSession) error
AddSIWSSBSessions adds the given related objects to the existing relationships of the member, optionally inserting them as new records. Appends related to o.R.SIWSSBSessions. Sets related.R.Member appropriately.
func (*Member) CreatedByFallbackResetTokens ¶
CreatedByFallbackResetTokens retrieves all the fallback_reset_token's FallbackResetTokens with an executor via created_by column.
func (*Member) CreatedByInvites ¶
CreatedByInvites retrieves all the invite's Invites with an executor via created_by column.
func (*Member) Delete ¶
Delete deletes a single Member record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Member) FallbackPassword ¶
FallbackPassword pointed to by the foreign key.
func (*Member) ForMemberFallbackResetTokens ¶
ForMemberFallbackResetTokens retrieves all the fallback_reset_token's FallbackResetTokens with an executor via for_member column.
func (*Member) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Member) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Member) SIWSSBSessions ¶
SIWSSBSessions retrieves all the SIWSSB_session's SIWSSBSessions with an executor.
func (*Member) SetFallbackPassword ¶
func (o *Member) SetFallbackPassword(ctx context.Context, exec boil.ContextExecutor, insert bool, related *FallbackPassword) error
SetFallbackPassword of the member to the related item. Sets o.R.FallbackPassword to related. Adds o to related.R.Member.
func (*Member) Update ¶
func (o *Member) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Member. 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.
type MemberHook ¶
MemberHook is the signature for custom Member hook methods
type MemberSlice ¶
type MemberSlice []*Member
MemberSlice is an alias for a slice of pointers to Member. This should generally be used opposed to []Member.
func (MemberSlice) DeleteAll ¶
func (o MemberSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*MemberSlice) ReloadAll ¶
func (o *MemberSlice) 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 (MemberSlice) UpdateAll ¶
func (o MemberSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Notice ¶
type Notice struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Title string `boil:"title" json:"title" toml:"title" yaml:"title"` Content string `boil:"content" json:"content" toml:"content" yaml:"content"` Language string `boil:"language" json:"language" toml:"language" yaml:"language"` R *noticeR `boil:"-" json:"-" toml:"-" yaml:"-"` L noticeL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Notice is an object representing the database table.
func FindNotice ¶
func FindNotice(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Notice, error)
FindNotice retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Notice) AddPins ¶
func (o *Notice) AddPins(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Pin) error
AddPins adds the given related objects to the existing relationships of the notice, optionally inserting them as new records. Appends related to o.R.Pins. Sets related.R.Notices appropriately.
func (*Notice) Delete ¶
Delete deletes a single Notice record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Notice) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Notice) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Notice) RemovePins ¶
RemovePins relationships from objects passed in. Removes related items from R.Pins (uses pointer comparison, removal does not keep order) Sets related.R.Notices.
func (*Notice) SetPins ¶
func (o *Notice) SetPins(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Pin) error
SetPins removes all previously related items of the notice replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Notices's Pins accordingly. Replaces o.R.Pins with related. Sets related.R.Notices's Pins accordingly.
func (*Notice) Update ¶
func (o *Notice) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Notice. 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.
type NoticeHook ¶
NoticeHook is the signature for custom Notice hook methods
type NoticeSlice ¶
type NoticeSlice []*Notice
NoticeSlice is an alias for a slice of pointers to Notice. This should generally be used opposed to []Notice.
func (NoticeSlice) DeleteAll ¶
func (o NoticeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*NoticeSlice) ReloadAll ¶
func (o *NoticeSlice) 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 (NoticeSlice) UpdateAll ¶
func (o NoticeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Pin ¶
type Pin struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` R *pinR `boil:"-" json:"-" toml:"-" yaml:"-"` L pinL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Pin is an object representing the database table.
func FindPin ¶
func FindPin(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Pin, error)
FindPin retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Pin) AddNotices ¶
func (o *Pin) AddNotices(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Notice) error
AddNotices adds the given related objects to the existing relationships of the pin, optionally inserting them as new records. Appends related to o.R.Notices. Sets related.R.Pins appropriately.
func (*Pin) Delete ¶
Delete deletes a single Pin record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Pin) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Pin) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Pin) RemoveNotices ¶
func (o *Pin) RemoveNotices(ctx context.Context, exec boil.ContextExecutor, related ...*Notice) error
RemoveNotices relationships from objects passed in. Removes related items from R.Notices (uses pointer comparison, removal does not keep order) Sets related.R.Pins.
func (*Pin) SetNotices ¶
func (o *Pin) SetNotices(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Notice) error
SetNotices removes all previously related items of the pin replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Pins's Notices accordingly. Replaces o.R.Notices with related. Sets related.R.Pins's Notices accordingly.
func (*Pin) Update ¶
func (o *Pin) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Pin. 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.
type PinSlice ¶
type PinSlice []*Pin
PinSlice is an alias for a slice of pointers to Pin. This should generally be used opposed to []Pin.
type SIWSSBSession ¶
type SIWSSBSession struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Token string `boil:"token" json:"token" toml:"token" yaml:"token"` MemberID int64 `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"` R *sIWSSBSessionR `boil:"-" json:"-" toml:"-" yaml:"-"` L sIWSSBSessionL `boil:"-" json:"-" toml:"-" yaml:"-"` }
SIWSSBSession is an object representing the database table.
func FindSIWSSBSession ¶
func FindSIWSSBSession(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*SIWSSBSession, error)
FindSIWSSBSession retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*SIWSSBSession) Delete ¶
func (o *SIWSSBSession) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single SIWSSBSession record with an executor. Delete will match against the primary key column to find the record to delete.
func (*SIWSSBSession) Insert ¶
func (o *SIWSSBSession) 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 (*SIWSSBSession) Member ¶
func (o *SIWSSBSession) Member(mods ...qm.QueryMod) memberQuery
Member pointed to by the foreign key.
func (*SIWSSBSession) Reload ¶
func (o *SIWSSBSession) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*SIWSSBSession) SetMember ¶
func (o *SIWSSBSession) SetMember(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Member) error
SetMember of the sIWSSBSession to the related item. Sets o.R.Member to related. Adds o to related.R.SIWSSBSessions.
func (*SIWSSBSession) Update ¶
func (o *SIWSSBSession) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the SIWSSBSession. 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.
type SIWSSBSessionHook ¶
type SIWSSBSessionHook func(context.Context, boil.ContextExecutor, *SIWSSBSession) error
SIWSSBSessionHook is the signature for custom SIWSSBSession hook methods
type SIWSSBSessionSlice ¶
type SIWSSBSessionSlice []*SIWSSBSession
SIWSSBSessionSlice is an alias for a slice of pointers to SIWSSBSession. This should generally be used opposed to []SIWSSBSession.
func (SIWSSBSessionSlice) DeleteAll ¶
func (o SIWSSBSessionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*SIWSSBSessionSlice) ReloadAll ¶
func (o *SIWSSBSessionSlice) 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 (SIWSSBSessionSlice) UpdateAll ¶
func (o SIWSSBSessionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.