models

package
v1.31.9 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AutomodListColumns = struct {
	ID      string
	GuildID string
	Name    string
	Kind    string
	Content string
}{
	ID:      "id",
	GuildID: "guild_id",
	Name:    "name",
	Kind:    "kind",
	Content: "content",
}
View Source
var AutomodListRels = struct {
}{}

AutomodListRels is where relationship names are stored.

View Source
var AutomodListWhere = struct {
	ID      whereHelperint64
	GuildID whereHelperint64
	Name    whereHelperstring
	Kind    whereHelperint
	Content whereHelpertypes_StringArray
}{
	ID:      whereHelperint64{/* contains filtered or unexported fields */},
	GuildID: whereHelperint64{/* contains filtered or unexported fields */},
	Name:    whereHelperstring{/* contains filtered or unexported fields */},
	Kind:    whereHelperint{/* contains filtered or unexported fields */},
	Content: whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
}
View Source
var AutomodRuleColumns = struct {
	ID             string
	GuildID        string
	RulesetID      string
	Name           string
	TriggerCounter string
}{
	ID:             "id",
	GuildID:        "guild_id",
	RulesetID:      "ruleset_id",
	Name:           "name",
	TriggerCounter: "trigger_counter",
}
View Source
var AutomodRuleDatumColumns = struct {
	ID       string
	GuildID  string
	RuleID   string
	Kind     string
	TypeID   string
	Settings string
}{
	ID:       "id",
	GuildID:  "guild_id",
	RuleID:   "rule_id",
	Kind:     "kind",
	TypeID:   "type_id",
	Settings: "settings",
}
View Source
var AutomodRuleDatumRels = struct {
	Rule                         string
	TriggerAutomodTriggeredRules string
}{
	Rule:                         "Rule",
	TriggerAutomodTriggeredRules: "TriggerAutomodTriggeredRules",
}

AutomodRuleDatumRels is where relationship names are stored.

View Source
var AutomodRuleDatumWhere = struct {
	ID       whereHelperint64
	GuildID  whereHelperint64
	RuleID   whereHelperint64
	Kind     whereHelperint
	TypeID   whereHelperint
	Settings whereHelpertypes_JSON
}{
	ID:       whereHelperint64{/* contains filtered or unexported fields */},
	GuildID:  whereHelperint64{/* contains filtered or unexported fields */},
	RuleID:   whereHelperint64{/* contains filtered or unexported fields */},
	Kind:     whereHelperint{/* contains filtered or unexported fields */},
	TypeID:   whereHelperint{/* contains filtered or unexported fields */},
	Settings: whereHelpertypes_JSON{/* contains filtered or unexported fields */},
}
View Source
var AutomodRuleRels = struct {
	Ruleset                   string
	RuleAutomodRuleData       string
	RuleAutomodTriggeredRules string
	RuleAutomodViolations     string
}{
	Ruleset:                   "Ruleset",
	RuleAutomodRuleData:       "RuleAutomodRuleData",
	RuleAutomodTriggeredRules: "RuleAutomodTriggeredRules",
	RuleAutomodViolations:     "RuleAutomodViolations",
}

AutomodRuleRels is where relationship names are stored.

View Source
var AutomodRuleWhere = struct {
	ID             whereHelperint64
	GuildID        whereHelperint64
	RulesetID      whereHelperint64
	Name           whereHelperstring
	TriggerCounter whereHelperint64
}{
	ID:             whereHelperint64{/* contains filtered or unexported fields */},
	GuildID:        whereHelperint64{/* contains filtered or unexported fields */},
	RulesetID:      whereHelperint64{/* contains filtered or unexported fields */},
	Name:           whereHelperstring{/* contains filtered or unexported fields */},
	TriggerCounter: whereHelperint64{/* contains filtered or unexported fields */},
}
View Source
var AutomodRulesetColumns = struct {
	ID      string
	GuildID string
	Name    string
	Enabled string
}{
	ID:      "id",
	GuildID: "guild_id",
	Name:    "name",
	Enabled: "enabled",
}
View Source
var AutomodRulesetConditionColumns = struct {
	ID        string
	GuildID   string
	RulesetID string
	Kind      string
	TypeID    string
	Settings  string
}{
	ID:        "id",
	GuildID:   "guild_id",
	RulesetID: "ruleset_id",
	Kind:      "kind",
	TypeID:    "type_id",
	Settings:  "settings",
}
View Source
var AutomodRulesetConditionRels = struct {
	Ruleset string
}{
	Ruleset: "Ruleset",
}

AutomodRulesetConditionRels is where relationship names are stored.

View Source
var AutomodRulesetConditionWhere = struct {
	ID        whereHelperint64
	GuildID   whereHelperint64
	RulesetID whereHelperint64
	Kind      whereHelperint
	TypeID    whereHelperint
	Settings  whereHelpertypes_JSON
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	GuildID:   whereHelperint64{/* contains filtered or unexported fields */},
	RulesetID: whereHelperint64{/* contains filtered or unexported fields */},
	Kind:      whereHelperint{/* contains filtered or unexported fields */},
	TypeID:    whereHelperint{/* contains filtered or unexported fields */},
	Settings:  whereHelpertypes_JSON{/* contains filtered or unexported fields */},
}
View Source
var AutomodRulesetRels = struct {
	RulesetAutomodRules             string
	RulesetAutomodRulesetConditions string
}{
	RulesetAutomodRules:             "RulesetAutomodRules",
	RulesetAutomodRulesetConditions: "RulesetAutomodRulesetConditions",
}

AutomodRulesetRels is where relationship names are stored.

View Source
var AutomodRulesetWhere = struct {
	ID      whereHelperint64
	GuildID whereHelperint64
	Name    whereHelperstring
	Enabled whereHelperbool
}{
	ID:      whereHelperint64{/* contains filtered or unexported fields */},
	GuildID: whereHelperint64{/* contains filtered or unexported fields */},
	Name:    whereHelperstring{/* contains filtered or unexported fields */},
	Enabled: whereHelperbool{/* contains filtered or unexported fields */},
}
View Source
var AutomodTriggeredRuleColumns = struct {
	ID            string
	CreatedAt     string
	ChannelID     string
	ChannelName   string
	GuildID       string
	TriggerID     string
	TriggerTypeid string
	RuleID        string
	RuleName      string
	RulesetName   string
	UserID        string
	UserName      string
	Extradata     string
}{
	ID:            "id",
	CreatedAt:     "created_at",
	ChannelID:     "channel_id",
	ChannelName:   "channel_name",
	GuildID:       "guild_id",
	TriggerID:     "trigger_id",
	TriggerTypeid: "trigger_typeid",
	RuleID:        "rule_id",
	RuleName:      "rule_name",
	RulesetName:   "ruleset_name",
	UserID:        "user_id",
	UserName:      "user_name",
	Extradata:     "extradata",
}
View Source
var AutomodTriggeredRuleRels = struct {
	Rule    string
	Trigger string
}{
	Rule:    "Rule",
	Trigger: "Trigger",
}

AutomodTriggeredRuleRels is where relationship names are stored.

View Source
var AutomodTriggeredRuleWhere = struct {
	ID            whereHelperint64
	CreatedAt     whereHelpertime_Time
	ChannelID     whereHelperint64
	ChannelName   whereHelperstring
	GuildID       whereHelperint64
	TriggerID     whereHelpernull_Int64
	TriggerTypeid whereHelperint
	RuleID        whereHelpernull_Int64
	RuleName      whereHelperstring
	RulesetName   whereHelperstring
	UserID        whereHelperint64
	UserName      whereHelperstring
	Extradata     whereHelpertypes_JSON
}{
	ID:            whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	ChannelID:     whereHelperint64{/* contains filtered or unexported fields */},
	ChannelName:   whereHelperstring{/* contains filtered or unexported fields */},
	GuildID:       whereHelperint64{/* contains filtered or unexported fields */},
	TriggerID:     whereHelpernull_Int64{/* contains filtered or unexported fields */},
	TriggerTypeid: whereHelperint{/* contains filtered or unexported fields */},
	RuleID:        whereHelpernull_Int64{/* contains filtered or unexported fields */},
	RuleName:      whereHelperstring{/* contains filtered or unexported fields */},
	RulesetName:   whereHelperstring{/* contains filtered or unexported fields */},
	UserID:        whereHelperint64{/* contains filtered or unexported fields */},
	UserName:      whereHelperstring{/* contains filtered or unexported fields */},
	Extradata:     whereHelpertypes_JSON{/* contains filtered or unexported fields */},
}
View Source
var AutomodViolationColumns = struct {
	ID        string
	GuildID   string
	UserID    string
	RuleID    string
	CreatedAt string
	Name      string
}{
	ID:        "id",
	GuildID:   "guild_id",
	UserID:    "user_id",
	RuleID:    "rule_id",
	CreatedAt: "created_at",
	Name:      "name",
}
View Source
var AutomodViolationRels = struct {
	Rule string
}{
	Rule: "Rule",
}

AutomodViolationRels is where relationship names are stored.

View Source
var AutomodViolationWhere = struct {
	ID        whereHelperint64
	GuildID   whereHelperint64
	UserID    whereHelperint64
	RuleID    whereHelpernull_Int64
	CreatedAt whereHelpertime_Time
	Name      whereHelperstring
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	GuildID:   whereHelperint64{/* contains filtered or unexported fields */},
	UserID:    whereHelperint64{/* contains filtered or unexported fields */},
	RuleID:    whereHelpernull_Int64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* 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 TableNames = struct {
	AutomodLists             string
	AutomodRuleData          string
	AutomodRules             string
	AutomodRulesetConditions string
	AutomodRulesets          string
	AutomodTriggeredRules    string
	AutomodViolations        string
}{
	AutomodLists:             "automod_lists",
	AutomodRuleData:          "automod_rule_data",
	AutomodRules:             "automod_rules",
	AutomodRulesetConditions: "automod_ruleset_conditions",
	AutomodRulesets:          "automod_rulesets",
	AutomodTriggeredRules:    "automod_triggered_rules",
	AutomodViolations:        "automod_violations",
}

Functions

func AutomodListExists

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

AutomodListExists checks if the AutomodList row exists.

func AutomodListExistsG

func AutomodListExistsG(ctx context.Context, iD int64) (bool, error)

AutomodListExistsG checks if the AutomodList row exists.

func AutomodLists

func AutomodLists(mods ...qm.QueryMod) automodListQuery

AutomodLists retrieves all the records using an executor.

func AutomodRuleData

func AutomodRuleData(mods ...qm.QueryMod) automodRuleDatumQuery

AutomodRuleData retrieves all the records using an executor.

func AutomodRuleDatumExists

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

AutomodRuleDatumExists checks if the AutomodRuleDatum row exists.

func AutomodRuleDatumExistsG

func AutomodRuleDatumExistsG(ctx context.Context, iD int64) (bool, error)

AutomodRuleDatumExistsG checks if the AutomodRuleDatum row exists.

func AutomodRuleExists

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

AutomodRuleExists checks if the AutomodRule row exists.

func AutomodRuleExistsG

func AutomodRuleExistsG(ctx context.Context, iD int64) (bool, error)

AutomodRuleExistsG checks if the AutomodRule row exists.

func AutomodRules

func AutomodRules(mods ...qm.QueryMod) automodRuleQuery

AutomodRules retrieves all the records using an executor.

func AutomodRulesetConditionExists

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

AutomodRulesetConditionExists checks if the AutomodRulesetCondition row exists.

func AutomodRulesetConditionExistsG

func AutomodRulesetConditionExistsG(ctx context.Context, iD int64) (bool, error)

AutomodRulesetConditionExistsG checks if the AutomodRulesetCondition row exists.

func AutomodRulesetConditions

func AutomodRulesetConditions(mods ...qm.QueryMod) automodRulesetConditionQuery

AutomodRulesetConditions retrieves all the records using an executor.

func AutomodRulesetExists

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

AutomodRulesetExists checks if the AutomodRuleset row exists.

func AutomodRulesetExistsG

func AutomodRulesetExistsG(ctx context.Context, iD int64) (bool, error)

AutomodRulesetExistsG checks if the AutomodRuleset row exists.

func AutomodRulesets

func AutomodRulesets(mods ...qm.QueryMod) automodRulesetQuery

AutomodRulesets retrieves all the records using an executor.

func AutomodTriggeredRuleExists

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

AutomodTriggeredRuleExists checks if the AutomodTriggeredRule row exists.

func AutomodTriggeredRuleExistsG

func AutomodTriggeredRuleExistsG(ctx context.Context, iD int64) (bool, error)

AutomodTriggeredRuleExistsG checks if the AutomodTriggeredRule row exists.

func AutomodTriggeredRules

func AutomodTriggeredRules(mods ...qm.QueryMod) automodTriggeredRuleQuery

AutomodTriggeredRules retrieves all the records using an executor.

func AutomodViolationExists

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

AutomodViolationExists checks if the AutomodViolation row exists.

func AutomodViolationExistsG

func AutomodViolationExistsG(ctx context.Context, iD int64) (bool, error)

AutomodViolationExistsG checks if the AutomodViolation row exists.

func AutomodViolations

func AutomodViolations(mods ...qm.QueryMod) automodViolationQuery

AutomodViolations 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

Types

type AutomodList

type AutomodList struct {
	ID      int64             `boil:"id" json:"id" toml:"id" yaml:"id"`
	GuildID int64             `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	Name    string            `boil:"name" json:"name" toml:"name" yaml:"name"`
	Kind    int               `boil:"kind" json:"kind" toml:"kind" yaml:"kind"`
	Content types.StringArray `boil:"content" json:"content" toml:"content" yaml:"content"`

	R *automodListR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L automodListL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AutomodList is an object representing the database table.

func FindAutomodList

func FindAutomodList(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*AutomodList, error)

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

func FindAutomodListG

func FindAutomodListG(ctx context.Context, iD int64, selectCols ...string) (*AutomodList, error)

FindAutomodListG retrieves a single record by ID.

func (*AutomodList) Delete

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

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

func (*AutomodList) DeleteG

func (o *AutomodList) DeleteG(ctx context.Context) (int64, error)

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

func (*AutomodList) Insert

func (o *AutomodList) 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 (*AutomodList) InsertG

func (o *AutomodList) InsertG(ctx context.Context, columns boil.Columns) error

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

func (*AutomodList) Reload

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

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

func (*AutomodList) ReloadG

func (o *AutomodList) ReloadG(ctx context.Context) error

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

func (*AutomodList) Update

func (o *AutomodList) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the AutomodList. 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 (*AutomodList) UpdateG

func (o *AutomodList) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single AutomodList record using the global executor. See Update for more documentation.

func (*AutomodList) Upsert

func (o *AutomodList) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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.

func (*AutomodList) UpsertG

func (o *AutomodList) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

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

type AutomodListSlice

type AutomodListSlice []*AutomodList

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

func (AutomodListSlice) DeleteAll

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

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

func (AutomodListSlice) DeleteAllG

func (o AutomodListSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*AutomodListSlice) ReloadAll

func (o *AutomodListSlice) 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 (*AutomodListSlice) ReloadAllG

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

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

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

func (AutomodListSlice) UpdateAllG

func (o AutomodListSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type AutomodRule

type AutomodRule struct {
	ID             int64  `boil:"id" json:"id" toml:"id" yaml:"id"`
	GuildID        int64  `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	RulesetID      int64  `boil:"ruleset_id" json:"ruleset_id" toml:"ruleset_id" yaml:"ruleset_id"`
	Name           string `boil:"name" json:"name" toml:"name" yaml:"name"`
	TriggerCounter int64  `boil:"trigger_counter" json:"trigger_counter" toml:"trigger_counter" yaml:"trigger_counter"`

	R *automodRuleR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L automodRuleL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AutomodRule is an object representing the database table.

func FindAutomodRule

func FindAutomodRule(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*AutomodRule, error)

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

func FindAutomodRuleG

func FindAutomodRuleG(ctx context.Context, iD int64, selectCols ...string) (*AutomodRule, error)

FindAutomodRuleG retrieves a single record by ID.

func (*AutomodRule) AddRuleAutomodRuleData

func (o *AutomodRule) AddRuleAutomodRuleData(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AutomodRuleDatum) error

AddRuleAutomodRuleData adds the given related objects to the existing relationships of the automod_rule, optionally inserting them as new records. Appends related to o.R.RuleAutomodRuleData. Sets related.R.Rule appropriately.

func (*AutomodRule) AddRuleAutomodRuleDataG

func (o *AutomodRule) AddRuleAutomodRuleDataG(ctx context.Context, insert bool, related ...*AutomodRuleDatum) error

AddRuleAutomodRuleDataG adds the given related objects to the existing relationships of the automod_rule, optionally inserting them as new records. Appends related to o.R.RuleAutomodRuleData. Sets related.R.Rule appropriately. Uses the global database handle.

func (*AutomodRule) AddRuleAutomodTriggeredRules

func (o *AutomodRule) AddRuleAutomodTriggeredRules(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AutomodTriggeredRule) error

AddRuleAutomodTriggeredRules adds the given related objects to the existing relationships of the automod_rule, optionally inserting them as new records. Appends related to o.R.RuleAutomodTriggeredRules. Sets related.R.Rule appropriately.

func (*AutomodRule) AddRuleAutomodTriggeredRulesG

func (o *AutomodRule) AddRuleAutomodTriggeredRulesG(ctx context.Context, insert bool, related ...*AutomodTriggeredRule) error

AddRuleAutomodTriggeredRulesG adds the given related objects to the existing relationships of the automod_rule, optionally inserting them as new records. Appends related to o.R.RuleAutomodTriggeredRules. Sets related.R.Rule appropriately. Uses the global database handle.

func (*AutomodRule) AddRuleAutomodViolations

func (o *AutomodRule) AddRuleAutomodViolations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AutomodViolation) error

AddRuleAutomodViolations adds the given related objects to the existing relationships of the automod_rule, optionally inserting them as new records. Appends related to o.R.RuleAutomodViolations. Sets related.R.Rule appropriately.

func (*AutomodRule) AddRuleAutomodViolationsG

func (o *AutomodRule) AddRuleAutomodViolationsG(ctx context.Context, insert bool, related ...*AutomodViolation) error

AddRuleAutomodViolationsG adds the given related objects to the existing relationships of the automod_rule, optionally inserting them as new records. Appends related to o.R.RuleAutomodViolations. Sets related.R.Rule appropriately. Uses the global database handle.

func (*AutomodRule) Delete

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

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

func (*AutomodRule) DeleteG

func (o *AutomodRule) DeleteG(ctx context.Context) (int64, error)

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

func (*AutomodRule) Insert

func (o *AutomodRule) 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 (*AutomodRule) InsertG

func (o *AutomodRule) InsertG(ctx context.Context, columns boil.Columns) error

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

func (*AutomodRule) Reload

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

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

func (*AutomodRule) ReloadG

func (o *AutomodRule) ReloadG(ctx context.Context) error

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

func (*AutomodRule) RemoveRuleAutomodTriggeredRules

func (o *AutomodRule) RemoveRuleAutomodTriggeredRules(ctx context.Context, exec boil.ContextExecutor, related ...*AutomodTriggeredRule) error

RemoveRuleAutomodTriggeredRules relationships from objects passed in. Removes related items from R.RuleAutomodTriggeredRules (uses pointer comparison, removal does not keep order) Sets related.R.Rule.

func (*AutomodRule) RemoveRuleAutomodTriggeredRulesG

func (o *AutomodRule) RemoveRuleAutomodTriggeredRulesG(ctx context.Context, related ...*AutomodTriggeredRule) error

RemoveRuleAutomodTriggeredRulesG relationships from objects passed in. Removes related items from R.RuleAutomodTriggeredRules (uses pointer comparison, removal does not keep order) Sets related.R.Rule. Uses the global database handle.

func (*AutomodRule) RemoveRuleAutomodViolations

func (o *AutomodRule) RemoveRuleAutomodViolations(ctx context.Context, exec boil.ContextExecutor, related ...*AutomodViolation) error

RemoveRuleAutomodViolations relationships from objects passed in. Removes related items from R.RuleAutomodViolations (uses pointer comparison, removal does not keep order) Sets related.R.Rule.

func (*AutomodRule) RemoveRuleAutomodViolationsG

func (o *AutomodRule) RemoveRuleAutomodViolationsG(ctx context.Context, related ...*AutomodViolation) error

RemoveRuleAutomodViolationsG relationships from objects passed in. Removes related items from R.RuleAutomodViolations (uses pointer comparison, removal does not keep order) Sets related.R.Rule. Uses the global database handle.

func (*AutomodRule) RuleAutomodRuleData

func (o *AutomodRule) RuleAutomodRuleData(mods ...qm.QueryMod) automodRuleDatumQuery

RuleAutomodRuleData retrieves all the automod_rule_datum's AutomodRuleData with an executor via rule_id column.

func (*AutomodRule) RuleAutomodTriggeredRules

func (o *AutomodRule) RuleAutomodTriggeredRules(mods ...qm.QueryMod) automodTriggeredRuleQuery

RuleAutomodTriggeredRules retrieves all the automod_triggered_rule's AutomodTriggeredRules with an executor via rule_id column.

func (*AutomodRule) RuleAutomodViolations

func (o *AutomodRule) RuleAutomodViolations(mods ...qm.QueryMod) automodViolationQuery

RuleAutomodViolations retrieves all the automod_violation's AutomodViolations with an executor via rule_id column.

func (*AutomodRule) Ruleset

func (o *AutomodRule) Ruleset(mods ...qm.QueryMod) automodRulesetQuery

Ruleset pointed to by the foreign key.

func (*AutomodRule) SetRuleAutomodTriggeredRules

func (o *AutomodRule) SetRuleAutomodTriggeredRules(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AutomodTriggeredRule) error

SetRuleAutomodTriggeredRules removes all previously related items of the automod_rule replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Rule's RuleAutomodTriggeredRules accordingly. Replaces o.R.RuleAutomodTriggeredRules with related. Sets related.R.Rule's RuleAutomodTriggeredRules accordingly.

func (*AutomodRule) SetRuleAutomodTriggeredRulesG

func (o *AutomodRule) SetRuleAutomodTriggeredRulesG(ctx context.Context, insert bool, related ...*AutomodTriggeredRule) error

SetRuleAutomodTriggeredRulesG removes all previously related items of the automod_rule replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Rule's RuleAutomodTriggeredRules accordingly. Replaces o.R.RuleAutomodTriggeredRules with related. Sets related.R.Rule's RuleAutomodTriggeredRules accordingly. Uses the global database handle.

func (*AutomodRule) SetRuleAutomodViolations

func (o *AutomodRule) SetRuleAutomodViolations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AutomodViolation) error

SetRuleAutomodViolations removes all previously related items of the automod_rule replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Rule's RuleAutomodViolations accordingly. Replaces o.R.RuleAutomodViolations with related. Sets related.R.Rule's RuleAutomodViolations accordingly.

func (*AutomodRule) SetRuleAutomodViolationsG

func (o *AutomodRule) SetRuleAutomodViolationsG(ctx context.Context, insert bool, related ...*AutomodViolation) error

SetRuleAutomodViolationsG removes all previously related items of the automod_rule replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Rule's RuleAutomodViolations accordingly. Replaces o.R.RuleAutomodViolations with related. Sets related.R.Rule's RuleAutomodViolations accordingly. Uses the global database handle.

func (*AutomodRule) SetRuleset

func (o *AutomodRule) SetRuleset(ctx context.Context, exec boil.ContextExecutor, insert bool, related *AutomodRuleset) error

SetRuleset of the automodRule to the related item. Sets o.R.Ruleset to related. Adds o to related.R.RulesetAutomodRules.

func (*AutomodRule) SetRulesetG

func (o *AutomodRule) SetRulesetG(ctx context.Context, insert bool, related *AutomodRuleset) error

SetRulesetG of the automodRule to the related item. Sets o.R.Ruleset to related. Adds o to related.R.RulesetAutomodRules. Uses the global database handle.

func (*AutomodRule) Update

func (o *AutomodRule) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the AutomodRule. 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 (*AutomodRule) UpdateG

func (o *AutomodRule) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single AutomodRule record using the global executor. See Update for more documentation.

func (*AutomodRule) Upsert

func (o *AutomodRule) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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.

func (*AutomodRule) UpsertG

func (o *AutomodRule) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

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

type AutomodRuleDatum

type AutomodRuleDatum struct {
	ID       int64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	GuildID  int64      `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	RuleID   int64      `boil:"rule_id" json:"rule_id" toml:"rule_id" yaml:"rule_id"`
	Kind     int        `boil:"kind" json:"kind" toml:"kind" yaml:"kind"`
	TypeID   int        `boil:"type_id" json:"type_id" toml:"type_id" yaml:"type_id"`
	Settings types.JSON `boil:"settings" json:"settings" toml:"settings" yaml:"settings"`

	R *automodRuleDatumR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L automodRuleDatumL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AutomodRuleDatum is an object representing the database table.

func FindAutomodRuleDatum

func FindAutomodRuleDatum(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*AutomodRuleDatum, error)

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

func FindAutomodRuleDatumG

func FindAutomodRuleDatumG(ctx context.Context, iD int64, selectCols ...string) (*AutomodRuleDatum, error)

FindAutomodRuleDatumG retrieves a single record by ID.

func (*AutomodRuleDatum) AddTriggerAutomodTriggeredRules

func (o *AutomodRuleDatum) AddTriggerAutomodTriggeredRules(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AutomodTriggeredRule) error

AddTriggerAutomodTriggeredRules adds the given related objects to the existing relationships of the automod_rule_datum, optionally inserting them as new records. Appends related to o.R.TriggerAutomodTriggeredRules. Sets related.R.Trigger appropriately.

func (*AutomodRuleDatum) AddTriggerAutomodTriggeredRulesG

func (o *AutomodRuleDatum) AddTriggerAutomodTriggeredRulesG(ctx context.Context, insert bool, related ...*AutomodTriggeredRule) error

AddTriggerAutomodTriggeredRulesG adds the given related objects to the existing relationships of the automod_rule_datum, optionally inserting them as new records. Appends related to o.R.TriggerAutomodTriggeredRules. Sets related.R.Trigger appropriately. Uses the global database handle.

func (*AutomodRuleDatum) Delete

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

func (*AutomodRuleDatum) DeleteG

func (o *AutomodRuleDatum) DeleteG(ctx context.Context) (int64, error)

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

func (*AutomodRuleDatum) Insert

func (o *AutomodRuleDatum) 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 (*AutomodRuleDatum) InsertG

func (o *AutomodRuleDatum) InsertG(ctx context.Context, columns boil.Columns) error

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

func (*AutomodRuleDatum) Reload

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

func (*AutomodRuleDatum) ReloadG

func (o *AutomodRuleDatum) ReloadG(ctx context.Context) error

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

func (*AutomodRuleDatum) RemoveTriggerAutomodTriggeredRules

func (o *AutomodRuleDatum) RemoveTriggerAutomodTriggeredRules(ctx context.Context, exec boil.ContextExecutor, related ...*AutomodTriggeredRule) error

RemoveTriggerAutomodTriggeredRules relationships from objects passed in. Removes related items from R.TriggerAutomodTriggeredRules (uses pointer comparison, removal does not keep order) Sets related.R.Trigger.

func (*AutomodRuleDatum) RemoveTriggerAutomodTriggeredRulesG

func (o *AutomodRuleDatum) RemoveTriggerAutomodTriggeredRulesG(ctx context.Context, related ...*AutomodTriggeredRule) error

RemoveTriggerAutomodTriggeredRulesG relationships from objects passed in. Removes related items from R.TriggerAutomodTriggeredRules (uses pointer comparison, removal does not keep order) Sets related.R.Trigger. Uses the global database handle.

func (*AutomodRuleDatum) Rule

func (o *AutomodRuleDatum) Rule(mods ...qm.QueryMod) automodRuleQuery

Rule pointed to by the foreign key.

func (*AutomodRuleDatum) SetRule

func (o *AutomodRuleDatum) SetRule(ctx context.Context, exec boil.ContextExecutor, insert bool, related *AutomodRule) error

SetRule of the automodRuleDatum to the related item. Sets o.R.Rule to related. Adds o to related.R.RuleAutomodRuleData.

func (*AutomodRuleDatum) SetRuleG

func (o *AutomodRuleDatum) SetRuleG(ctx context.Context, insert bool, related *AutomodRule) error

SetRuleG of the automodRuleDatum to the related item. Sets o.R.Rule to related. Adds o to related.R.RuleAutomodRuleData. Uses the global database handle.

func (*AutomodRuleDatum) SetTriggerAutomodTriggeredRules

func (o *AutomodRuleDatum) SetTriggerAutomodTriggeredRules(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AutomodTriggeredRule) error

SetTriggerAutomodTriggeredRules removes all previously related items of the automod_rule_datum replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Trigger's TriggerAutomodTriggeredRules accordingly. Replaces o.R.TriggerAutomodTriggeredRules with related. Sets related.R.Trigger's TriggerAutomodTriggeredRules accordingly.

func (*AutomodRuleDatum) SetTriggerAutomodTriggeredRulesG

func (o *AutomodRuleDatum) SetTriggerAutomodTriggeredRulesG(ctx context.Context, insert bool, related ...*AutomodTriggeredRule) error

SetTriggerAutomodTriggeredRulesG removes all previously related items of the automod_rule_datum replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Trigger's TriggerAutomodTriggeredRules accordingly. Replaces o.R.TriggerAutomodTriggeredRules with related. Sets related.R.Trigger's TriggerAutomodTriggeredRules accordingly. Uses the global database handle.

func (*AutomodRuleDatum) TriggerAutomodTriggeredRules

func (o *AutomodRuleDatum) TriggerAutomodTriggeredRules(mods ...qm.QueryMod) automodTriggeredRuleQuery

TriggerAutomodTriggeredRules retrieves all the automod_triggered_rule's AutomodTriggeredRules with an executor via trigger_id column.

func (*AutomodRuleDatum) Update

func (o *AutomodRuleDatum) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the AutomodRuleDatum. 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 (*AutomodRuleDatum) UpdateG

func (o *AutomodRuleDatum) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single AutomodRuleDatum record using the global executor. See Update for more documentation.

func (*AutomodRuleDatum) Upsert

func (o *AutomodRuleDatum) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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.

func (*AutomodRuleDatum) UpsertG

func (o *AutomodRuleDatum) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

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

type AutomodRuleDatumSlice

type AutomodRuleDatumSlice []*AutomodRuleDatum

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

func (AutomodRuleDatumSlice) DeleteAll

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

func (AutomodRuleDatumSlice) DeleteAllG

func (o AutomodRuleDatumSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*AutomodRuleDatumSlice) ReloadAll

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

func (*AutomodRuleDatumSlice) ReloadAllG

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

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

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

func (AutomodRuleDatumSlice) UpdateAllG

func (o AutomodRuleDatumSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type AutomodRuleSlice

type AutomodRuleSlice []*AutomodRule

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

func (AutomodRuleSlice) DeleteAll

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

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

func (AutomodRuleSlice) DeleteAllG

func (o AutomodRuleSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*AutomodRuleSlice) ReloadAll

func (o *AutomodRuleSlice) 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 (*AutomodRuleSlice) ReloadAllG

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

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

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

func (AutomodRuleSlice) UpdateAllG

func (o AutomodRuleSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type AutomodRuleset

type AutomodRuleset struct {
	ID      int64  `boil:"id" json:"id" toml:"id" yaml:"id"`
	GuildID int64  `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	Name    string `boil:"name" json:"name" toml:"name" yaml:"name"`
	Enabled bool   `boil:"enabled" json:"enabled" toml:"enabled" yaml:"enabled"`

	R *automodRulesetR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L automodRulesetL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AutomodRuleset is an object representing the database table.

func FindAutomodRuleset

func FindAutomodRuleset(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*AutomodRuleset, error)

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

func FindAutomodRulesetG

func FindAutomodRulesetG(ctx context.Context, iD int64, selectCols ...string) (*AutomodRuleset, error)

FindAutomodRulesetG retrieves a single record by ID.

func (*AutomodRuleset) AddRulesetAutomodRules

func (o *AutomodRuleset) AddRulesetAutomodRules(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AutomodRule) error

AddRulesetAutomodRules adds the given related objects to the existing relationships of the automod_ruleset, optionally inserting them as new records. Appends related to o.R.RulesetAutomodRules. Sets related.R.Ruleset appropriately.

func (*AutomodRuleset) AddRulesetAutomodRulesG

func (o *AutomodRuleset) AddRulesetAutomodRulesG(ctx context.Context, insert bool, related ...*AutomodRule) error

AddRulesetAutomodRulesG adds the given related objects to the existing relationships of the automod_ruleset, optionally inserting them as new records. Appends related to o.R.RulesetAutomodRules. Sets related.R.Ruleset appropriately. Uses the global database handle.

func (*AutomodRuleset) AddRulesetAutomodRulesetConditions

func (o *AutomodRuleset) AddRulesetAutomodRulesetConditions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AutomodRulesetCondition) error

AddRulesetAutomodRulesetConditions adds the given related objects to the existing relationships of the automod_ruleset, optionally inserting them as new records. Appends related to o.R.RulesetAutomodRulesetConditions. Sets related.R.Ruleset appropriately.

func (*AutomodRuleset) AddRulesetAutomodRulesetConditionsG

func (o *AutomodRuleset) AddRulesetAutomodRulesetConditionsG(ctx context.Context, insert bool, related ...*AutomodRulesetCondition) error

AddRulesetAutomodRulesetConditionsG adds the given related objects to the existing relationships of the automod_ruleset, optionally inserting them as new records. Appends related to o.R.RulesetAutomodRulesetConditions. Sets related.R.Ruleset appropriately. Uses the global database handle.

func (*AutomodRuleset) Delete

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

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

func (*AutomodRuleset) DeleteG

func (o *AutomodRuleset) DeleteG(ctx context.Context) (int64, error)

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

func (*AutomodRuleset) Insert

func (o *AutomodRuleset) 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 (*AutomodRuleset) InsertG

func (o *AutomodRuleset) InsertG(ctx context.Context, columns boil.Columns) error

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

func (*AutomodRuleset) Reload

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

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

func (*AutomodRuleset) ReloadG

func (o *AutomodRuleset) ReloadG(ctx context.Context) error

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

func (*AutomodRuleset) RulesetAutomodRules

func (o *AutomodRuleset) RulesetAutomodRules(mods ...qm.QueryMod) automodRuleQuery

RulesetAutomodRules retrieves all the automod_rule's AutomodRules with an executor via ruleset_id column.

func (*AutomodRuleset) RulesetAutomodRulesetConditions

func (o *AutomodRuleset) RulesetAutomodRulesetConditions(mods ...qm.QueryMod) automodRulesetConditionQuery

RulesetAutomodRulesetConditions retrieves all the automod_ruleset_condition's AutomodRulesetConditions with an executor via ruleset_id column.

func (*AutomodRuleset) Update

func (o *AutomodRuleset) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the AutomodRuleset. 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 (*AutomodRuleset) UpdateG

func (o *AutomodRuleset) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single AutomodRuleset record using the global executor. See Update for more documentation.

func (*AutomodRuleset) Upsert

func (o *AutomodRuleset) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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.

func (*AutomodRuleset) UpsertG

func (o *AutomodRuleset) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

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

type AutomodRulesetCondition

type AutomodRulesetCondition struct {
	ID        int64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	GuildID   int64      `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	RulesetID int64      `boil:"ruleset_id" json:"ruleset_id" toml:"ruleset_id" yaml:"ruleset_id"`
	Kind      int        `boil:"kind" json:"kind" toml:"kind" yaml:"kind"`
	TypeID    int        `boil:"type_id" json:"type_id" toml:"type_id" yaml:"type_id"`
	Settings  types.JSON `boil:"settings" json:"settings" toml:"settings" yaml:"settings"`

	R *automodRulesetConditionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L automodRulesetConditionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AutomodRulesetCondition is an object representing the database table.

func FindAutomodRulesetCondition

func FindAutomodRulesetCondition(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*AutomodRulesetCondition, error)

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

func FindAutomodRulesetConditionG

func FindAutomodRulesetConditionG(ctx context.Context, iD int64, selectCols ...string) (*AutomodRulesetCondition, error)

FindAutomodRulesetConditionG retrieves a single record by ID.

func (*AutomodRulesetCondition) Delete

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

func (*AutomodRulesetCondition) DeleteG

func (o *AutomodRulesetCondition) DeleteG(ctx context.Context) (int64, error)

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

func (*AutomodRulesetCondition) Insert

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*AutomodRulesetCondition) InsertG

func (o *AutomodRulesetCondition) InsertG(ctx context.Context, columns boil.Columns) error

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

func (*AutomodRulesetCondition) Reload

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

func (*AutomodRulesetCondition) ReloadG

func (o *AutomodRulesetCondition) ReloadG(ctx context.Context) error

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

func (*AutomodRulesetCondition) Ruleset

func (o *AutomodRulesetCondition) Ruleset(mods ...qm.QueryMod) automodRulesetQuery

Ruleset pointed to by the foreign key.

func (*AutomodRulesetCondition) SetRuleset

func (o *AutomodRulesetCondition) SetRuleset(ctx context.Context, exec boil.ContextExecutor, insert bool, related *AutomodRuleset) error

SetRuleset of the automodRulesetCondition to the related item. Sets o.R.Ruleset to related. Adds o to related.R.RulesetAutomodRulesetConditions.

func (*AutomodRulesetCondition) SetRulesetG

func (o *AutomodRulesetCondition) SetRulesetG(ctx context.Context, insert bool, related *AutomodRuleset) error

SetRulesetG of the automodRulesetCondition to the related item. Sets o.R.Ruleset to related. Adds o to related.R.RulesetAutomodRulesetConditions. Uses the global database handle.

func (*AutomodRulesetCondition) Update

Update uses an executor to update the AutomodRulesetCondition. 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 (*AutomodRulesetCondition) UpdateG

func (o *AutomodRulesetCondition) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single AutomodRulesetCondition record using the global executor. See Update for more documentation.

func (*AutomodRulesetCondition) Upsert

func (o *AutomodRulesetCondition) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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.

func (*AutomodRulesetCondition) UpsertG

func (o *AutomodRulesetCondition) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

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

type AutomodRulesetConditionSlice

type AutomodRulesetConditionSlice []*AutomodRulesetCondition

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

func (AutomodRulesetConditionSlice) DeleteAll

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

func (AutomodRulesetConditionSlice) DeleteAllG

DeleteAllG deletes all rows in the slice.

func (*AutomodRulesetConditionSlice) ReloadAll

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

func (*AutomodRulesetConditionSlice) ReloadAllG

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

func (AutomodRulesetConditionSlice) UpdateAll

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

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

func (AutomodRulesetConditionSlice) UpdateAllG

func (o AutomodRulesetConditionSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type AutomodRulesetSlice

type AutomodRulesetSlice []*AutomodRuleset

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

func (AutomodRulesetSlice) DeleteAll

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

func (AutomodRulesetSlice) DeleteAllG

func (o AutomodRulesetSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*AutomodRulesetSlice) ReloadAll

func (o *AutomodRulesetSlice) 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 (*AutomodRulesetSlice) ReloadAllG

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

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

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

func (AutomodRulesetSlice) UpdateAllG

func (o AutomodRulesetSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type AutomodTriggeredRule

type AutomodTriggeredRule 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"`
	ChannelID     int64      `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
	ChannelName   string     `boil:"channel_name" json:"channel_name" toml:"channel_name" yaml:"channel_name"`
	GuildID       int64      `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	TriggerID     null.Int64 `boil:"trigger_id" json:"trigger_id,omitempty" toml:"trigger_id" yaml:"trigger_id,omitempty"`
	TriggerTypeid int        `boil:"trigger_typeid" json:"trigger_typeid" toml:"trigger_typeid" yaml:"trigger_typeid"`
	RuleID        null.Int64 `boil:"rule_id" json:"rule_id,omitempty" toml:"rule_id" yaml:"rule_id,omitempty"`
	RuleName      string     `boil:"rule_name" json:"rule_name" toml:"rule_name" yaml:"rule_name"`
	RulesetName   string     `boil:"ruleset_name" json:"ruleset_name" toml:"ruleset_name" yaml:"ruleset_name"`
	UserID        int64      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	UserName      string     `boil:"user_name" json:"user_name" toml:"user_name" yaml:"user_name"`
	Extradata     types.JSON `boil:"extradata" json:"extradata" toml:"extradata" yaml:"extradata"`

	R *automodTriggeredRuleR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L automodTriggeredRuleL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AutomodTriggeredRule is an object representing the database table.

func FindAutomodTriggeredRule

func FindAutomodTriggeredRule(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*AutomodTriggeredRule, error)

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

func FindAutomodTriggeredRuleG

func FindAutomodTriggeredRuleG(ctx context.Context, iD int64, selectCols ...string) (*AutomodTriggeredRule, error)

FindAutomodTriggeredRuleG retrieves a single record by ID.

func (*AutomodTriggeredRule) Delete

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

func (*AutomodTriggeredRule) DeleteG

func (o *AutomodTriggeredRule) DeleteG(ctx context.Context) (int64, error)

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

func (*AutomodTriggeredRule) Insert

func (o *AutomodTriggeredRule) 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 (*AutomodTriggeredRule) InsertG

func (o *AutomodTriggeredRule) InsertG(ctx context.Context, columns boil.Columns) error

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

func (*AutomodTriggeredRule) Reload

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

func (*AutomodTriggeredRule) ReloadG

func (o *AutomodTriggeredRule) ReloadG(ctx context.Context) error

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

func (*AutomodTriggeredRule) RemoveRule

func (o *AutomodTriggeredRule) RemoveRule(ctx context.Context, exec boil.ContextExecutor, related *AutomodRule) error

RemoveRule relationship. Sets o.R.Rule to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*AutomodTriggeredRule) RemoveRuleG

func (o *AutomodTriggeredRule) RemoveRuleG(ctx context.Context, related *AutomodRule) error

RemoveRuleG relationship. Sets o.R.Rule to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*AutomodTriggeredRule) RemoveTrigger

func (o *AutomodTriggeredRule) RemoveTrigger(ctx context.Context, exec boil.ContextExecutor, related *AutomodRuleDatum) error

RemoveTrigger relationship. Sets o.R.Trigger to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*AutomodTriggeredRule) RemoveTriggerG

func (o *AutomodTriggeredRule) RemoveTriggerG(ctx context.Context, related *AutomodRuleDatum) error

RemoveTriggerG relationship. Sets o.R.Trigger to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*AutomodTriggeredRule) Rule

func (o *AutomodTriggeredRule) Rule(mods ...qm.QueryMod) automodRuleQuery

Rule pointed to by the foreign key.

func (*AutomodTriggeredRule) SetRule

func (o *AutomodTriggeredRule) SetRule(ctx context.Context, exec boil.ContextExecutor, insert bool, related *AutomodRule) error

SetRule of the automodTriggeredRule to the related item. Sets o.R.Rule to related. Adds o to related.R.RuleAutomodTriggeredRules.

func (*AutomodTriggeredRule) SetRuleG

func (o *AutomodTriggeredRule) SetRuleG(ctx context.Context, insert bool, related *AutomodRule) error

SetRuleG of the automodTriggeredRule to the related item. Sets o.R.Rule to related. Adds o to related.R.RuleAutomodTriggeredRules. Uses the global database handle.

func (*AutomodTriggeredRule) SetTrigger

func (o *AutomodTriggeredRule) SetTrigger(ctx context.Context, exec boil.ContextExecutor, insert bool, related *AutomodRuleDatum) error

SetTrigger of the automodTriggeredRule to the related item. Sets o.R.Trigger to related. Adds o to related.R.TriggerAutomodTriggeredRules.

func (*AutomodTriggeredRule) SetTriggerG

func (o *AutomodTriggeredRule) SetTriggerG(ctx context.Context, insert bool, related *AutomodRuleDatum) error

SetTriggerG of the automodTriggeredRule to the related item. Sets o.R.Trigger to related. Adds o to related.R.TriggerAutomodTriggeredRules. Uses the global database handle.

func (*AutomodTriggeredRule) Trigger

func (o *AutomodTriggeredRule) Trigger(mods ...qm.QueryMod) automodRuleDatumQuery

Trigger pointed to by the foreign key.

func (*AutomodTriggeredRule) Update

func (o *AutomodTriggeredRule) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the AutomodTriggeredRule. 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 (*AutomodTriggeredRule) UpdateG

func (o *AutomodTriggeredRule) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single AutomodTriggeredRule record using the global executor. See Update for more documentation.

func (*AutomodTriggeredRule) Upsert

func (o *AutomodTriggeredRule) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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.

func (*AutomodTriggeredRule) UpsertG

func (o *AutomodTriggeredRule) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

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

type AutomodTriggeredRuleSlice

type AutomodTriggeredRuleSlice []*AutomodTriggeredRule

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

func (AutomodTriggeredRuleSlice) DeleteAll

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

func (AutomodTriggeredRuleSlice) DeleteAllG

func (o AutomodTriggeredRuleSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*AutomodTriggeredRuleSlice) ReloadAll

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

func (*AutomodTriggeredRuleSlice) ReloadAllG

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

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

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

func (AutomodTriggeredRuleSlice) UpdateAllG

func (o AutomodTriggeredRuleSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type AutomodViolation

type AutomodViolation struct {
	ID        int64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	GuildID   int64      `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	UserID    int64      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	RuleID    null.Int64 `boil:"rule_id" json:"rule_id,omitempty" toml:"rule_id" yaml:"rule_id,omitempty"`
	CreatedAt time.Time  `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	Name      string     `boil:"name" json:"name" toml:"name" yaml:"name"`

	R *automodViolationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L automodViolationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AutomodViolation is an object representing the database table.

func FindAutomodViolation

func FindAutomodViolation(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*AutomodViolation, error)

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

func FindAutomodViolationG

func FindAutomodViolationG(ctx context.Context, iD int64, selectCols ...string) (*AutomodViolation, error)

FindAutomodViolationG retrieves a single record by ID.

func (*AutomodViolation) Delete

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

func (*AutomodViolation) DeleteG

func (o *AutomodViolation) DeleteG(ctx context.Context) (int64, error)

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

func (*AutomodViolation) Insert

func (o *AutomodViolation) 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 (*AutomodViolation) InsertG

func (o *AutomodViolation) InsertG(ctx context.Context, columns boil.Columns) error

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

func (*AutomodViolation) Reload

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

func (*AutomodViolation) ReloadG

func (o *AutomodViolation) ReloadG(ctx context.Context) error

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

func (*AutomodViolation) RemoveRule

func (o *AutomodViolation) RemoveRule(ctx context.Context, exec boil.ContextExecutor, related *AutomodRule) error

RemoveRule relationship. Sets o.R.Rule to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*AutomodViolation) RemoveRuleG

func (o *AutomodViolation) RemoveRuleG(ctx context.Context, related *AutomodRule) error

RemoveRuleG relationship. Sets o.R.Rule to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*AutomodViolation) Rule

func (o *AutomodViolation) Rule(mods ...qm.QueryMod) automodRuleQuery

Rule pointed to by the foreign key.

func (*AutomodViolation) SetRule

func (o *AutomodViolation) SetRule(ctx context.Context, exec boil.ContextExecutor, insert bool, related *AutomodRule) error

SetRule of the automodViolation to the related item. Sets o.R.Rule to related. Adds o to related.R.RuleAutomodViolations.

func (*AutomodViolation) SetRuleG

func (o *AutomodViolation) SetRuleG(ctx context.Context, insert bool, related *AutomodRule) error

SetRuleG of the automodViolation to the related item. Sets o.R.Rule to related. Adds o to related.R.RuleAutomodViolations. Uses the global database handle.

func (*AutomodViolation) Update

func (o *AutomodViolation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the AutomodViolation. 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 (*AutomodViolation) UpdateG

func (o *AutomodViolation) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single AutomodViolation record using the global executor. See Update for more documentation.

func (*AutomodViolation) Upsert

func (o *AutomodViolation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) 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.

func (*AutomodViolation) UpsertG

func (o *AutomodViolation) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

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

type AutomodViolationSlice

type AutomodViolationSlice []*AutomodViolation

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

func (AutomodViolationSlice) DeleteAll

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

func (AutomodViolationSlice) DeleteAllG

func (o AutomodViolationSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*AutomodViolationSlice) ReloadAll

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

func (*AutomodViolationSlice) ReloadAllG

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

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

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

func (AutomodViolationSlice) UpdateAllG

func (o AutomodViolationSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type M

type M map[string]interface{}

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

Jump to

Keyboard shortcuts

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