Versions in this module Expand all Collapse all v1 v1.31.14 Jan 12, 2022 v1.31.13 Jan 7, 2022 v1.31.12 Dec 22, 2021 v1.31.11 Dec 14, 2021 v1.31.10 Dec 7, 2021 v1.31.9 Oct 13, 2021 v1.29.1 Jul 28, 2021 v1.29.0 Jul 21, 2021 v1.28.0 Jun 28, 2021 v1.27.0 Jun 14, 2021 v1.26.3 May 12, 2021 v1.26.2 May 5, 2021 v1.26.0 May 5, 2021 Changes in this version + var ErrSyncFail = errors.New("models: failed to synchronize data after insert") + var PremiumCodeColumns = struct{ ... } + var PremiumCodeRels = struct{ ... } + var PremiumCodeWhere = struct{ ... } + var PremiumSlotColumns = struct{ ... } + var PremiumSlotRels = struct{ ... } + var PremiumSlotWhere = struct{ ... } + var TableNames = struct{ ... } + func NewQuery(mods ...qm.QueryMod) *queries.Query + func PremiumCodeExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error) + func PremiumCodeExistsG(ctx context.Context, iD int64) (bool, error) + func PremiumCodes(mods ...qm.QueryMod) premiumCodeQuery + func PremiumSlotExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error) + func PremiumSlotExistsG(ctx context.Context, iD int64) (bool, error) + func PremiumSlots(mods ...qm.QueryMod) premiumSlotQuery + type M map[string]interface + type PremiumCode struct + Code string + CreatedAt time.Time + Duration int64 + GuildID null.Int64 + ID int64 + L premiumCodeL + Message string + Permanent bool + R *premiumCodeR + SlotID null.Int64 + UsedAt null.Time + UserID null.Int64 + func FindPremiumCode(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*PremiumCode, error) + func FindPremiumCodeG(ctx context.Context, iD int64, selectCols ...string) (*PremiumCode, error) + func (o *PremiumCode) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *PremiumCode) DeleteG(ctx context.Context) (int64, error) + func (o *PremiumCode) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *PremiumCode) InsertG(ctx context.Context, columns boil.Columns) error + func (o *PremiumCode) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *PremiumCode) ReloadG(ctx context.Context) error + func (o *PremiumCode) RemoveSlot(ctx context.Context, exec boil.ContextExecutor, related *PremiumSlot) error + func (o *PremiumCode) RemoveSlotG(ctx context.Context, related *PremiumSlot) error + func (o *PremiumCode) SetSlot(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *PremiumCode) SetSlotG(ctx context.Context, insert bool, related *PremiumSlot) error + func (o *PremiumCode) Slot(mods ...qm.QueryMod) premiumSlotQuery + func (o *PremiumCode) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *PremiumCode) UpdateG(ctx context.Context, columns boil.Columns) (int64, error) + func (o *PremiumCode) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + func (o *PremiumCode) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error + type PremiumCodeSlice []*PremiumCode + func (o *PremiumCodeSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o *PremiumCodeSlice) ReloadAllG(ctx context.Context) error + func (o PremiumCodeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o PremiumCodeSlice) DeleteAllG(ctx context.Context) (int64, error) + func (o PremiumCodeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + func (o PremiumCodeSlice) UpdateAllG(ctx context.Context, cols M) (int64, error) + type PremiumSlot struct + AttachedAt null.Time + CreatedAt time.Time + DurationRemaining int64 + FullDuration int64 + GuildID null.Int64 + ID int64 + L premiumSlotL + Message string + Permanent bool + R *premiumSlotR + Source string + SourceID int64 + Tier int + Title string + UserID int64 + func FindPremiumSlot(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*PremiumSlot, error) + func FindPremiumSlotG(ctx context.Context, iD int64, selectCols ...string) (*PremiumSlot, error) + func (o *PremiumSlot) AddSlotPremiumCodes(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *PremiumSlot) AddSlotPremiumCodesG(ctx context.Context, insert bool, related ...*PremiumCode) error + func (o *PremiumSlot) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o *PremiumSlot) DeleteG(ctx context.Context) (int64, error) + func (o *PremiumSlot) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error + func (o *PremiumSlot) InsertG(ctx context.Context, columns boil.Columns) error + func (o *PremiumSlot) Reload(ctx context.Context, exec boil.ContextExecutor) error + func (o *PremiumSlot) ReloadG(ctx context.Context) error + func (o *PremiumSlot) RemoveSlotPremiumCodes(ctx context.Context, exec boil.ContextExecutor, related ...*PremiumCode) error + func (o *PremiumSlot) RemoveSlotPremiumCodesG(ctx context.Context, related ...*PremiumCode) error + func (o *PremiumSlot) SetSlotPremiumCodes(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error + func (o *PremiumSlot) SetSlotPremiumCodesG(ctx context.Context, insert bool, related ...*PremiumCode) error + func (o *PremiumSlot) SlotPremiumCodes(mods ...qm.QueryMod) premiumCodeQuery + func (o *PremiumSlot) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error) + func (o *PremiumSlot) UpdateG(ctx context.Context, columns boil.Columns) (int64, error) + func (o *PremiumSlot) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error + func (o *PremiumSlot) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error + type PremiumSlotSlice []*PremiumSlot + func (o *PremiumSlotSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error + func (o *PremiumSlotSlice) ReloadAllG(ctx context.Context) error + func (o PremiumSlotSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) + func (o PremiumSlotSlice) DeleteAllG(ctx context.Context) (int64, error) + func (o PremiumSlotSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error) + func (o PremiumSlotSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)