models

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 ReputationConfigColumns = struct {
	GuildID                string
	PointsName             string
	Enabled                string
	Cooldown               string
	MaxGiveAmount          string
	RequiredGiveRole       string
	RequiredReceiveRole    string
	BlacklistedGiveRole    string
	BlacklistedReceiveRole string
	AdminRole              string
}{
	GuildID:                "guild_id",
	PointsName:             "points_name",
	Enabled:                "enabled",
	Cooldown:               "cooldown",
	MaxGiveAmount:          "max_give_amount",
	RequiredGiveRole:       "required_give_role",
	RequiredReceiveRole:    "required_receive_role",
	BlacklistedGiveRole:    "blacklisted_give_role",
	BlacklistedReceiveRole: "blacklisted_receive_role",
	AdminRole:              "admin_role",
}
View Source
var ReputationLogColumns = struct {
	ID             string
	CreatedAt      string
	GuildID        string
	SenderID       string
	ReceiverID     string
	SetFixedAmount string
	Amount         string
}{
	ID:             "id",
	CreatedAt:      "created_at",
	GuildID:        "guild_id",
	SenderID:       "sender_id",
	ReceiverID:     "receiver_id",
	SetFixedAmount: "set_fixed_amount",
	Amount:         "amount",
}
View Source
var ReputationUserColumns = struct {
	UserID    string
	GuildID   string
	CreatedAt string
	Points    string
}{
	UserID:    "user_id",
	GuildID:   "guild_id",
	CreatedAt: "created_at",
	Points:    "points",
}
View Source
var TableNames = struct {
	ReputationConfigs string
	ReputationLog     string
	ReputationUsers   string
}{
	ReputationConfigs: "reputation_configs",
	ReputationLog:     "reputation_log",
	ReputationUsers:   "reputation_users",
}

Functions

func NewQuery

func NewQuery(exec boil.Executor, mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func NewQueryG

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

NewQueryG initializes a new Query using the passed in QueryMods

func ReputationConfigExists

func ReputationConfigExists(exec boil.Executor, guildID int64) (bool, error)

ReputationConfigExists checks if the ReputationConfig row exists.

func ReputationConfigExistsG

func ReputationConfigExistsG(guildID int64) (bool, error)

ReputationConfigExistsG checks if the ReputationConfig row exists.

func ReputationConfigExistsGP

func ReputationConfigExistsGP(guildID int64) bool

ReputationConfigExistsGP checks if the ReputationConfig row exists. Panics on error.

func ReputationConfigExistsP

func ReputationConfigExistsP(exec boil.Executor, guildID int64) bool

ReputationConfigExistsP checks if the ReputationConfig row exists. Panics on error.

func ReputationConfigs

func ReputationConfigs(exec boil.Executor, mods ...qm.QueryMod) reputationConfigQuery

ReputationConfigs retrieves all the records using an executor.

func ReputationConfigsG

func ReputationConfigsG(mods ...qm.QueryMod) reputationConfigQuery

ReputationConfigsG retrieves all records.

func ReputationLogExists

func ReputationLogExists(exec boil.Executor, id int64) (bool, error)

ReputationLogExists checks if the ReputationLog row exists.

func ReputationLogExistsG

func ReputationLogExistsG(id int64) (bool, error)

ReputationLogExistsG checks if the ReputationLog row exists.

func ReputationLogExistsGP

func ReputationLogExistsGP(id int64) bool

ReputationLogExistsGP checks if the ReputationLog row exists. Panics on error.

func ReputationLogExistsP

func ReputationLogExistsP(exec boil.Executor, id int64) bool

ReputationLogExistsP checks if the ReputationLog row exists. Panics on error.

func ReputationLogs

func ReputationLogs(exec boil.Executor, mods ...qm.QueryMod) reputationLogQuery

ReputationLogs retrieves all the records using an executor.

func ReputationLogsG

func ReputationLogsG(mods ...qm.QueryMod) reputationLogQuery

ReputationLogsG retrieves all records.

func ReputationUserExists

func ReputationUserExists(exec boil.Executor, guildID int64, userID int64) (bool, error)

ReputationUserExists checks if the ReputationUser row exists.

func ReputationUserExistsG

func ReputationUserExistsG(guildID int64, userID int64) (bool, error)

ReputationUserExistsG checks if the ReputationUser row exists.

func ReputationUserExistsGP

func ReputationUserExistsGP(guildID int64, userID int64) bool

ReputationUserExistsGP checks if the ReputationUser row exists. Panics on error.

func ReputationUserExistsP

func ReputationUserExistsP(exec boil.Executor, guildID int64, userID int64) bool

ReputationUserExistsP checks if the ReputationUser row exists. Panics on error.

func ReputationUsers

func ReputationUsers(exec boil.Executor, mods ...qm.QueryMod) reputationUserQuery

ReputationUsers retrieves all the records using an executor.

func ReputationUsersG

func ReputationUsersG(mods ...qm.QueryMod) reputationUserQuery

ReputationUsersG retrieves all records.

Types

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type ReputationConfig

type ReputationConfig struct {
	GuildID                int64       `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	PointsName             string      `boil:"points_name" json:"points_name" toml:"points_name" yaml:"points_name"`
	Enabled                bool        `boil:"enabled" json:"enabled" toml:"enabled" yaml:"enabled"`
	Cooldown               int         `boil:"cooldown" json:"cooldown" toml:"cooldown" yaml:"cooldown"`
	MaxGiveAmount          int64       `boil:"max_give_amount" json:"max_give_amount" toml:"max_give_amount" yaml:"max_give_amount"`
	RequiredGiveRole       null.String `boil:"required_give_role" json:"required_give_role,omitempty" toml:"required_give_role" yaml:"required_give_role,omitempty"`
	RequiredReceiveRole    null.String `` /* 135-byte string literal not displayed */
	BlacklistedGiveRole    null.String `` /* 135-byte string literal not displayed */
	BlacklistedReceiveRole null.String `` /* 147-byte string literal not displayed */
	AdminRole              null.String `boil:"admin_role" json:"admin_role,omitempty" toml:"admin_role" yaml:"admin_role,omitempty"`

	R *reputationConfigR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L reputationConfigL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ReputationConfig is an object representing the database table.

func FindReputationConfig

func FindReputationConfig(exec boil.Executor, guildID int64, selectCols ...string) (*ReputationConfig, error)

FindReputationConfig retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindReputationConfigG

func FindReputationConfigG(guildID int64, selectCols ...string) (*ReputationConfig, error)

FindReputationConfigG retrieves a single record by ID.

func FindReputationConfigGP

func FindReputationConfigGP(guildID int64, selectCols ...string) *ReputationConfig

FindReputationConfigGP retrieves a single record by ID, and panics on error.

func FindReputationConfigP

func FindReputationConfigP(exec boil.Executor, guildID int64, selectCols ...string) *ReputationConfig

FindReputationConfigP retrieves a single record by ID with an executor, and panics on error.

func (*ReputationConfig) Delete

func (o *ReputationConfig) Delete(exec boil.Executor) error

Delete deletes a single ReputationConfig record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ReputationConfig) DeleteG

func (o *ReputationConfig) DeleteG() error

DeleteG deletes a single ReputationConfig record. DeleteG will match against the primary key column to find the record to delete.

func (*ReputationConfig) DeleteGP

func (o *ReputationConfig) DeleteGP()

DeleteGP deletes a single ReputationConfig record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*ReputationConfig) DeleteP

func (o *ReputationConfig) DeleteP(exec boil.Executor)

DeleteP deletes a single ReputationConfig record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*ReputationConfig) Insert

func (o *ReputationConfig) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*ReputationConfig) InsertG

func (o *ReputationConfig) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ReputationConfig) InsertGP

func (o *ReputationConfig) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*ReputationConfig) InsertP

func (o *ReputationConfig) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*ReputationConfig) Reload

func (o *ReputationConfig) Reload(exec boil.Executor) error

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

func (*ReputationConfig) ReloadG

func (o *ReputationConfig) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*ReputationConfig) ReloadGP

func (o *ReputationConfig) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*ReputationConfig) ReloadP

func (o *ReputationConfig) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*ReputationConfig) Update

func (o *ReputationConfig) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the ReputationConfig. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ReputationConfig) UpdateG

func (o *ReputationConfig) UpdateG(whitelist ...string) error

UpdateG a single ReputationConfig record. See Update for whitelist behavior description.

func (*ReputationConfig) UpdateGP

func (o *ReputationConfig) UpdateGP(whitelist ...string)

UpdateGP a single ReputationConfig record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*ReputationConfig) UpdateP

func (o *ReputationConfig) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the ReputationConfig, and panics on error. See Update for whitelist behavior description.

func (*ReputationConfig) Upsert

func (o *ReputationConfig) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*ReputationConfig) UpsertG

func (o *ReputationConfig) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*ReputationConfig) UpsertGP

func (o *ReputationConfig) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*ReputationConfig) UpsertP

func (o *ReputationConfig) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type ReputationConfigSlice

type ReputationConfigSlice []*ReputationConfig

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

func (ReputationConfigSlice) DeleteAll

func (o ReputationConfigSlice) DeleteAll(exec boil.Executor) error

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

func (ReputationConfigSlice) DeleteAllG

func (o ReputationConfigSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (ReputationConfigSlice) DeleteAllGP

func (o ReputationConfigSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (ReputationConfigSlice) DeleteAllP

func (o ReputationConfigSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*ReputationConfigSlice) ReloadAll

func (o *ReputationConfigSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ReputationConfigSlice) ReloadAllG

func (o *ReputationConfigSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ReputationConfigSlice) ReloadAllGP

func (o *ReputationConfigSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*ReputationConfigSlice) ReloadAllP

func (o *ReputationConfigSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (ReputationConfigSlice) UpdateAll

func (o ReputationConfigSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (ReputationConfigSlice) UpdateAllG

func (o ReputationConfigSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (ReputationConfigSlice) UpdateAllGP

func (o ReputationConfigSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (ReputationConfigSlice) UpdateAllP

func (o ReputationConfigSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type ReputationLog

type ReputationLog struct {
	ID             int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt      time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	GuildID        int64     `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	SenderID       int64     `boil:"sender_id" json:"sender_id" toml:"sender_id" yaml:"sender_id"`
	ReceiverID     int64     `boil:"receiver_id" json:"receiver_id" toml:"receiver_id" yaml:"receiver_id"`
	SetFixedAmount bool      `boil:"set_fixed_amount" json:"set_fixed_amount" toml:"set_fixed_amount" yaml:"set_fixed_amount"`
	Amount         int64     `boil:"amount" json:"amount" toml:"amount" yaml:"amount"`

	R *reputationLogR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L reputationLogL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ReputationLog is an object representing the database table.

func FindReputationLog

func FindReputationLog(exec boil.Executor, id int64, selectCols ...string) (*ReputationLog, error)

FindReputationLog retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindReputationLogG

func FindReputationLogG(id int64, selectCols ...string) (*ReputationLog, error)

FindReputationLogG retrieves a single record by ID.

func FindReputationLogGP

func FindReputationLogGP(id int64, selectCols ...string) *ReputationLog

FindReputationLogGP retrieves a single record by ID, and panics on error.

func FindReputationLogP

func FindReputationLogP(exec boil.Executor, id int64, selectCols ...string) *ReputationLog

FindReputationLogP retrieves a single record by ID with an executor, and panics on error.

func (*ReputationLog) Delete

func (o *ReputationLog) Delete(exec boil.Executor) error

Delete deletes a single ReputationLog record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ReputationLog) DeleteG

func (o *ReputationLog) DeleteG() error

DeleteG deletes a single ReputationLog record. DeleteG will match against the primary key column to find the record to delete.

func (*ReputationLog) DeleteGP

func (o *ReputationLog) DeleteGP()

DeleteGP deletes a single ReputationLog record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*ReputationLog) DeleteP

func (o *ReputationLog) DeleteP(exec boil.Executor)

DeleteP deletes a single ReputationLog record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*ReputationLog) Insert

func (o *ReputationLog) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*ReputationLog) InsertG

func (o *ReputationLog) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ReputationLog) InsertGP

func (o *ReputationLog) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*ReputationLog) InsertP

func (o *ReputationLog) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*ReputationLog) Reload

func (o *ReputationLog) Reload(exec boil.Executor) error

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

func (*ReputationLog) ReloadG

func (o *ReputationLog) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*ReputationLog) ReloadGP

func (o *ReputationLog) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*ReputationLog) ReloadP

func (o *ReputationLog) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*ReputationLog) Update

func (o *ReputationLog) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the ReputationLog. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ReputationLog) UpdateG

func (o *ReputationLog) UpdateG(whitelist ...string) error

UpdateG a single ReputationLog record. See Update for whitelist behavior description.

func (*ReputationLog) UpdateGP

func (o *ReputationLog) UpdateGP(whitelist ...string)

UpdateGP a single ReputationLog record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*ReputationLog) UpdateP

func (o *ReputationLog) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the ReputationLog, and panics on error. See Update for whitelist behavior description.

func (*ReputationLog) Upsert

func (o *ReputationLog) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*ReputationLog) UpsertG

func (o *ReputationLog) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*ReputationLog) UpsertGP

func (o *ReputationLog) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*ReputationLog) UpsertP

func (o *ReputationLog) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type ReputationLogSlice

type ReputationLogSlice []*ReputationLog

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

func (ReputationLogSlice) DeleteAll

func (o ReputationLogSlice) DeleteAll(exec boil.Executor) error

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

func (ReputationLogSlice) DeleteAllG

func (o ReputationLogSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (ReputationLogSlice) DeleteAllGP

func (o ReputationLogSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (ReputationLogSlice) DeleteAllP

func (o ReputationLogSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*ReputationLogSlice) ReloadAll

func (o *ReputationLogSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ReputationLogSlice) ReloadAllG

func (o *ReputationLogSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ReputationLogSlice) ReloadAllGP

func (o *ReputationLogSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*ReputationLogSlice) ReloadAllP

func (o *ReputationLogSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (ReputationLogSlice) UpdateAll

func (o ReputationLogSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (ReputationLogSlice) UpdateAllG

func (o ReputationLogSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (ReputationLogSlice) UpdateAllGP

func (o ReputationLogSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (ReputationLogSlice) UpdateAllP

func (o ReputationLogSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type ReputationUser

type ReputationUser struct {
	UserID    int64     `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	GuildID   int64     `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	Points    int64     `boil:"points" json:"points" toml:"points" yaml:"points"`

	R *reputationUserR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L reputationUserL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ReputationUser is an object representing the database table.

func FindReputationUser

func FindReputationUser(exec boil.Executor, guildID int64, userID int64, selectCols ...string) (*ReputationUser, error)

FindReputationUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindReputationUserG

func FindReputationUserG(guildID int64, userID int64, selectCols ...string) (*ReputationUser, error)

FindReputationUserG retrieves a single record by ID.

func FindReputationUserGP

func FindReputationUserGP(guildID int64, userID int64, selectCols ...string) *ReputationUser

FindReputationUserGP retrieves a single record by ID, and panics on error.

func FindReputationUserP

func FindReputationUserP(exec boil.Executor, guildID int64, userID int64, selectCols ...string) *ReputationUser

FindReputationUserP retrieves a single record by ID with an executor, and panics on error.

func (*ReputationUser) Delete

func (o *ReputationUser) Delete(exec boil.Executor) error

Delete deletes a single ReputationUser record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ReputationUser) DeleteG

func (o *ReputationUser) DeleteG() error

DeleteG deletes a single ReputationUser record. DeleteG will match against the primary key column to find the record to delete.

func (*ReputationUser) DeleteGP

func (o *ReputationUser) DeleteGP()

DeleteGP deletes a single ReputationUser record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*ReputationUser) DeleteP

func (o *ReputationUser) DeleteP(exec boil.Executor)

DeleteP deletes a single ReputationUser record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*ReputationUser) Insert

func (o *ReputationUser) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*ReputationUser) InsertG

func (o *ReputationUser) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ReputationUser) InsertGP

func (o *ReputationUser) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*ReputationUser) InsertP

func (o *ReputationUser) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*ReputationUser) Reload

func (o *ReputationUser) Reload(exec boil.Executor) error

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

func (*ReputationUser) ReloadG

func (o *ReputationUser) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*ReputationUser) ReloadGP

func (o *ReputationUser) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*ReputationUser) ReloadP

func (o *ReputationUser) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*ReputationUser) Update

func (o *ReputationUser) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the ReputationUser. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ReputationUser) UpdateG

func (o *ReputationUser) UpdateG(whitelist ...string) error

UpdateG a single ReputationUser record. See Update for whitelist behavior description.

func (*ReputationUser) UpdateGP

func (o *ReputationUser) UpdateGP(whitelist ...string)

UpdateGP a single ReputationUser record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*ReputationUser) UpdateP

func (o *ReputationUser) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the ReputationUser, and panics on error. See Update for whitelist behavior description.

func (*ReputationUser) Upsert

func (o *ReputationUser) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*ReputationUser) UpsertG

func (o *ReputationUser) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*ReputationUser) UpsertGP

func (o *ReputationUser) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*ReputationUser) UpsertP

func (o *ReputationUser) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type ReputationUserSlice

type ReputationUserSlice []*ReputationUser

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

func (ReputationUserSlice) DeleteAll

func (o ReputationUserSlice) DeleteAll(exec boil.Executor) error

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

func (ReputationUserSlice) DeleteAllG

func (o ReputationUserSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (ReputationUserSlice) DeleteAllGP

func (o ReputationUserSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (ReputationUserSlice) DeleteAllP

func (o ReputationUserSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*ReputationUserSlice) ReloadAll

func (o *ReputationUserSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ReputationUserSlice) ReloadAllG

func (o *ReputationUserSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ReputationUserSlice) ReloadAllGP

func (o *ReputationUserSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*ReputationUserSlice) ReloadAllP

func (o *ReputationUserSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (ReputationUserSlice) UpdateAll

func (o ReputationUserSlice) UpdateAll(exec boil.Executor, cols M) error

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

func (ReputationUserSlice) UpdateAllG

func (o ReputationUserSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (ReputationUserSlice) UpdateAllGP

func (o ReputationUserSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (ReputationUserSlice) UpdateAllP

func (o ReputationUserSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

Jump to

Keyboard shortcuts

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