Documentation ¶
Index ¶
- Variables
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func ReminderExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func ReminderExistsG(ctx context.Context, iD int) (bool, error)
- func Reminders(mods ...qm.QueryMod) reminderQuery
- type M
- type Reminder
- func (o *Reminder) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o *Reminder) DeleteG(ctx context.Context, hardDelete bool) (int64, error)
- func (o *Reminder) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Reminder) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Reminder) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *Reminder) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Reminder) ReloadG(ctx context.Context) error
- func (o *Reminder) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Reminder) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *Reminder) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *Reminder) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ReminderSlice
- func (o ReminderSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
- func (o ReminderSlice) DeleteAllG(ctx context.Context, hardDelete bool) (int64, error)
- func (o *ReminderSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ReminderSlice) ReloadAllG(ctx context.Context) error
- func (o ReminderSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ReminderSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type UpsertOptionFunc
- type UpsertOptions
Constants ¶
This section is empty.
Variables ¶
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 ReminderColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string UserID string ChannelID string GuildID string Message string When string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", UserID: "user_id", ChannelID: "channel_id", GuildID: "guild_id", Message: "message", When: "when", }
var ReminderRels = struct {
}{}
ReminderRels is where relationship names are stored.
var ReminderTableColumns = struct { ID string CreatedAt string UpdatedAt string DeletedAt string UserID string ChannelID string GuildID string Message string When string }{ ID: "reminders.id", CreatedAt: "reminders.created_at", UpdatedAt: "reminders.updated_at", DeletedAt: "reminders.deleted_at", UserID: "reminders.user_id", ChannelID: "reminders.channel_id", GuildID: "reminders.guild_id", Message: "reminders.message", When: "reminders.when", }
var ReminderWhere = struct { ID whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time DeletedAt whereHelpernull_Time UserID whereHelperstring ChannelID whereHelperstring GuildID whereHelperint64 Message whereHelperstring When whereHelperint64 }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UserID: whereHelperstring{/* contains filtered or unexported fields */}, ChannelID: whereHelperstring{/* contains filtered or unexported fields */}, GuildID: whereHelperint64{/* contains filtered or unexported fields */}, Message: whereHelperstring{/* contains filtered or unexported fields */}, When: whereHelperint64{/* contains filtered or unexported fields */}, }
var TableNames = struct { Reminders string }{ Reminders: "reminders", }
var ViewNames = struct {
}{}
Functions ¶
func ReminderExists ¶
ReminderExists checks if the Reminder row exists.
func ReminderExistsG ¶
ReminderExistsG checks if the Reminder row exists.
Types ¶
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Reminder ¶
type Reminder struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` ChannelID string `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"` GuildID int64 `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"` Message string `boil:"message" json:"message" toml:"message" yaml:"message"` When int64 `boil:"when" json:"when" toml:"when" yaml:"when"` R *reminderR `boil:"-" json:"-" toml:"-" yaml:"-"` L reminderL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Reminder is an object representing the database table.
func FindReminder ¶
func FindReminder(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Reminder, error)
FindReminder retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindReminderG ¶
FindReminderG retrieves a single record by ID.
func (*Reminder) Delete ¶
func (o *Reminder) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
Delete deletes a single Reminder record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Reminder) DeleteG ¶
DeleteG deletes a single Reminder record. DeleteG will match against the primary key column to find the record to delete.
func (*Reminder) Insert ¶
func (o *Reminder) 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 (*Reminder) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Reminder) Update ¶
func (o *Reminder) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Reminder. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Reminder) UpdateG ¶
UpdateG a single Reminder record using the global executor. See Update for more documentation.
func (*Reminder) Upsert ¶
func (o *Reminder) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ReminderSlice ¶
type ReminderSlice []*Reminder
ReminderSlice is an alias for a slice of pointers to Reminder. This should almost always be used instead of []Reminder.
func (ReminderSlice) DeleteAll ¶
func (o ReminderSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ReminderSlice) DeleteAllG ¶
DeleteAllG deletes all rows in the slice.
func (*ReminderSlice) ReloadAll ¶
func (o *ReminderSlice) 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 (*ReminderSlice) ReloadAllG ¶
func (o *ReminderSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (ReminderSlice) UpdateAll ¶
func (o ReminderSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ReminderSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type UpsertOptionFunc ¶
type UpsertOptionFunc func(o *UpsertOptions)
func UpsertConflictTarget ¶
func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc
func UpsertUpdateSet ¶
func UpsertUpdateSet(updateSet string) UpsertOptionFunc
type UpsertOptions ¶
type UpsertOptions struct {
// contains filtered or unexported fields
}