Documentation ¶
Index ¶
- Variables
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func PronounExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Pronouns(mods ...qm.QueryMod) pronounQuery
- type M
- type Pronoun
- func (o *Pronoun) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Pronoun) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Pronoun) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Pronoun) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type PronounSlice
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 PronounColumns = struct { ID string GuildSnowflake string RoleSnowflake string Pronoun string CreatedAt string UpdatedAt string }{ ID: "id", GuildSnowflake: "guild_snowflake", RoleSnowflake: "role_snowflake", Pronoun: "pronoun", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var PronounRels = struct {
}{}
PronounRels is where relationship names are stored.
var PronounWhere = struct { ID whereHelperint64 GuildSnowflake whereHelperstring RoleSnowflake whereHelperstring Pronoun whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, GuildSnowflake: whereHelperstring{/* contains filtered or unexported fields */}, RoleSnowflake: whereHelperstring{/* contains filtered or unexported fields */}, Pronoun: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { Pronouns string }{ Pronouns: "pronouns", }
Functions ¶
func PronounExists ¶
PronounExists checks if the Pronoun row exists.
Types ¶
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Pronoun ¶
type Pronoun struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` GuildSnowflake string `boil:"guild_snowflake" json:"guild_snowflake" toml:"guild_snowflake" yaml:"guild_snowflake"` RoleSnowflake string `boil:"role_snowflake" json:"role_snowflake" toml:"role_snowflake" yaml:"role_snowflake"` Pronoun string `boil:"pronoun" json:"pronoun" toml:"pronoun" yaml:"pronoun"` 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"` R *pronounR `boil:"-" json:"-" toml:"-" yaml:"-"` L pronounL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Pronoun is an object representing the database table.
func FindPronoun ¶
func FindPronoun(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Pronoun, error)
FindPronoun retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Pronoun) Delete ¶
Delete deletes a single Pronoun record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Pronoun) Insert ¶
func (o *Pronoun) 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 (*Pronoun) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Pronoun) Update ¶
func (o *Pronoun) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Pronoun. 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 PronounSlice ¶
type PronounSlice []*Pronoun
PronounSlice is an alias for a slice of pointers to Pronoun. This should generally be used opposed to []Pronoun.
func (PronounSlice) DeleteAll ¶
func (o PronounSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*PronounSlice) ReloadAll ¶
func (o *PronounSlice) 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 (PronounSlice) UpdateAll ¶
func (o PronounSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.