models

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AliasColumns = struct {
	ID        string
	Name      string
	MemberID  string
	Signature string
}{
	ID:        "id",
	Name:      "name",
	MemberID:  "member_id",
	Signature: "signature",
}
View Source
var AliasRels = struct {
	Member string
}{
	Member: "Member",
}

AliasRels is where relationship names are stored.

View Source
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 */},
}
View Source
var ConfigColumns = struct {
	ID                     string
	PrivacyMode            string
	DefaultLanguage        string
	UseSubdomainForAliases string
}{
	ID:                     "id",
	PrivacyMode:            "privacyMode",
	DefaultLanguage:        "defaultLanguage",
	UseSubdomainForAliases: "use_subdomain_for_aliases",
}
View Source
var ConfigRels = struct {
}{}

ConfigRels is where relationship names are stored.

View Source
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 */},
}
View Source
var DeniedKeyColumns = struct {
	ID        string
	PubKey    string
	Comment   string
	CreatedAt string
}{
	ID:        "id",
	PubKey:    "pub_key",
	Comment:   "comment",
	CreatedAt: "created_at",
}
View Source
var DeniedKeyRels = struct {
}{}

DeniedKeyRels is where relationship names are stored.

View Source
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 */},
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

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

View Source
var FallbackPasswordColumns = struct {
	ID           string
	PasswordHash string
	MemberID     string
}{
	ID:           "id",
	PasswordHash: "password_hash",
	MemberID:     "member_id",
}
View Source
var FallbackPasswordRels = struct {
	Member string
}{
	Member: "Member",
}

FallbackPasswordRels is where relationship names are stored.

View Source
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 */},
}
View Source
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",
}
View Source
var FallbackResetTokenRels = struct {
	ForMemberMember string
	CreatedByMember string
}{
	ForMemberMember: "ForMemberMember",
	CreatedByMember: "CreatedByMember",
}

FallbackResetTokenRels is where relationship names are stored.

View Source
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 */},
}
View Source
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",
}
View Source
var InviteRels = struct {
	CreatedByMember string
}{
	CreatedByMember: "CreatedByMember",
}

InviteRels is where relationship names are stored.

View Source
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 */},
}
View Source
var MemberColumns = struct {
	ID     string
	Role   string
	PubKey string
}{
	ID:     "id",
	Role:   "role",
	PubKey: "pub_key",
}
View Source
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.

View Source
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 */},
}
View Source
var NoticeColumns = struct {
	ID       string
	Title    string
	Content  string
	Language string
}{
	ID:       "id",
	Title:    "title",
	Content:  "content",
	Language: "language",
}
View Source
var NoticeRels = struct {
	Pins string
}{
	Pins: "Pins",
}

NoticeRels is where relationship names are stored.

View Source
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 */},
}
View Source
var PinColumns = struct {
	ID   string
	Name string
}{
	ID:   "id",
	Name: "name",
}
View Source
var PinRels = struct {
	Notices string
}{
	Notices: "Notices",
}

PinRels is where relationship names are stored.

View Source
var PinWhere = struct {
	ID   whereHelperint64
	Name whereHelperstring
}{
	ID:   whereHelperint64{/* contains filtered or unexported fields */},
	Name: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var SIWSSBSessionColumns = struct {
	ID        string
	Token     string
	MemberID  string
	CreatedAt string
}{
	ID:        "id",
	Token:     "token",
	MemberID:  "member_id",
	CreatedAt: "created_at",
}
View Source
var SIWSSBSessionRels = struct {
	Member string
}{
	Member: "Member",
}

SIWSSBSessionRels is where relationship names are stored.

View Source
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 */},
}
View Source
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

func AddAliasHook(hookPoint boil.HookPoint, aliasHook AliasHook)

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

func AddPinHook(hookPoint boil.HookPoint, pinHook PinHook)

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

func AliasExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

AliasExists checks if the Alias row exists.

func Aliases

func Aliases(mods ...qm.QueryMod) aliasQuery

Aliases retrieves all the records using an executor.

func ConfigExists

func ConfigExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

ConfigExists checks if the Config row exists.

func Configs

func Configs(mods ...qm.QueryMod) configQuery

Configs retrieves all the records using an executor.

func DeniedKeyExists

func DeniedKeyExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

DeniedKeyExists checks if the DeniedKey row exists.

func DeniedKeys

func DeniedKeys(mods ...qm.QueryMod) deniedKeyQuery

DeniedKeys retrieves all the records using an executor.

func FallbackPasswordExists

func FallbackPasswordExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

FallbackPasswordExists checks if the FallbackPassword row exists.

func FallbackPasswords

func FallbackPasswords(mods ...qm.QueryMod) fallbackPasswordQuery

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

func FallbackResetTokens(mods ...qm.QueryMod) fallbackResetTokenQuery

FallbackResetTokens retrieves all the records using an executor.

func InviteExists

func InviteExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

InviteExists checks if the Invite row exists.

func Invites

func Invites(mods ...qm.QueryMod) inviteQuery

Invites retrieves all the records using an executor.

func MemberExists

func MemberExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

MemberExists checks if the Member row exists.

func Members

func Members(mods ...qm.QueryMod) memberQuery

Members retrieves all the records using an executor.

func NewQuery

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

NewQuery initializes a new Query using the passed in QueryMods

func NoticeExists

func NoticeExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

NoticeExists checks if the Notice row exists.

func Notices

func Notices(mods ...qm.QueryMod) noticeQuery

Notices retrieves all the records using an executor.

func PinExists

func PinExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

PinExists checks if the Pin row exists.

func Pins

func Pins(mods ...qm.QueryMod) pinQuery

Pins retrieves all the records using an executor.

func SIWSSBSessionExists

func SIWSSBSessionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)

SIWSSBSessionExists checks if the SIWSSBSession row exists.

func SIWSSBSessions

func SIWSSBSessions(mods ...qm.QueryMod) sIWSSBSessionQuery

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

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

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

func (o *Alias) 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 (*Alias) Member

func (o *Alias) Member(mods ...qm.QueryMod) memberQuery

Member pointed to by the foreign key.

func (*Alias) Reload

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

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 AliasHook

type AliasHook func(context.Context, boil.ContextExecutor, *Alias) error

AliasHook is the signature for custom Alias hook methods

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

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

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

func (o *Config) 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 (*Config) Reload

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

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

type ConfigHook func(context.Context, boil.ContextExecutor, *Config) error

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

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

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

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

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

type DeniedKeyHook func(context.Context, boil.ContextExecutor, *DeniedKey) error

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

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

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

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

func (*FallbackPasswordSlice) ReloadAll

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

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

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

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

func (*FallbackResetTokenSlice) ReloadAll

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

func (o *Invite) CreatedByMember(mods ...qm.QueryMod) memberQuery

CreatedByMember pointed to by the foreign key.

func (*Invite) Delete

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

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

func (o *Invite) 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 (*Invite) Reload

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

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

type InviteHook func(context.Context, boil.ContextExecutor, *Invite) error

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) Aliases

func (o *Member) Aliases(mods ...qm.QueryMod) aliasQuery

Aliases retrieves all the alias's Aliases with an executor.

func (*Member) CreatedByFallbackResetTokens

func (o *Member) CreatedByFallbackResetTokens(mods ...qm.QueryMod) fallbackResetTokenQuery

CreatedByFallbackResetTokens retrieves all the fallback_reset_token's FallbackResetTokens with an executor via created_by column.

func (*Member) CreatedByInvites

func (o *Member) CreatedByInvites(mods ...qm.QueryMod) inviteQuery

CreatedByInvites retrieves all the invite's Invites with an executor via created_by column.

func (*Member) Delete

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

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

func (o *Member) FallbackPassword(mods ...qm.QueryMod) fallbackPasswordQuery

FallbackPassword pointed to by the foreign key.

func (*Member) ForMemberFallbackResetTokens

func (o *Member) ForMemberFallbackResetTokens(mods ...qm.QueryMod) fallbackResetTokenQuery

ForMemberFallbackResetTokens retrieves all the fallback_reset_token's FallbackResetTokens with an executor via for_member column.

func (*Member) Insert

func (o *Member) 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 (*Member) Reload

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

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

func (*Member) SIWSSBSessions

func (o *Member) SIWSSBSessions(mods ...qm.QueryMod) sIWSSBSessionQuery

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

type MemberHook func(context.Context, boil.ContextExecutor, *Member) error

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

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

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

func (o *Notice) 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 (*Notice) Pins

func (o *Notice) Pins(mods ...qm.QueryMod) pinQuery

Pins retrieves all the pin's Pins with an executor.

func (*Notice) Reload

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

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

func (*Notice) RemovePins

func (o *Notice) RemovePins(ctx context.Context, exec boil.ContextExecutor, related ...*Pin) error

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

type NoticeHook func(context.Context, boil.ContextExecutor, *Notice) error

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

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

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

func (o *Pin) 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 (*Pin) Notices

func (o *Pin) Notices(mods ...qm.QueryMod) noticeQuery

Notices retrieves all the notice's Notices with an executor.

func (*Pin) Reload

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

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 PinHook

type PinHook func(context.Context, boil.ContextExecutor, *Pin) error

PinHook is the signature for custom Pin hook methods

type PinSlice

type PinSlice []*Pin

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

func (PinSlice) DeleteAll

func (o PinSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*PinSlice) ReloadAll

func (o *PinSlice) 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 (PinSlice) UpdateAll

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

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

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.

Jump to

Keyboard shortcuts

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