Documentation ¶
Index ¶
- Variables
- func AutomodListExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func AutomodListExistsG(ctx context.Context, iD int64) (bool, error)
- func AutomodLists(mods ...qm.QueryMod) automodListQuery
- func AutomodRuleData(mods ...qm.QueryMod) automodRuleDatumQuery
- func AutomodRuleDatumExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func AutomodRuleDatumExistsG(ctx context.Context, iD int64) (bool, error)
- func AutomodRuleExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func AutomodRuleExistsG(ctx context.Context, iD int64) (bool, error)
- func AutomodRules(mods ...qm.QueryMod) automodRuleQuery
- func AutomodRulesetConditionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func AutomodRulesetConditionExistsG(ctx context.Context, iD int64) (bool, error)
- func AutomodRulesetConditions(mods ...qm.QueryMod) automodRulesetConditionQuery
- func AutomodRulesetExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func AutomodRulesetExistsG(ctx context.Context, iD int64) (bool, error)
- func AutomodRulesets(mods ...qm.QueryMod) automodRulesetQuery
- func AutomodTriggeredRuleExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func AutomodTriggeredRuleExistsG(ctx context.Context, iD int64) (bool, error)
- func AutomodTriggeredRules(mods ...qm.QueryMod) automodTriggeredRuleQuery
- func AutomodViolationExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func AutomodViolationExistsG(ctx context.Context, iD int64) (bool, error)
- func AutomodViolations(mods ...qm.QueryMod) automodViolationQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- type AutomodList
- func (o *AutomodList) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *AutomodList) DeleteG(ctx context.Context) (int64, error)
- func (o *AutomodList) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *AutomodList) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *AutomodList) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AutomodList) ReloadG(ctx context.Context) error
- func (o *AutomodList) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *AutomodList) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *AutomodList) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *AutomodList) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type AutomodListSlice
- func (o AutomodListSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o AutomodListSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *AutomodListSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AutomodListSlice) ReloadAllG(ctx context.Context) error
- func (o AutomodListSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o AutomodListSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type AutomodRule
- func (o *AutomodRule) AddRuleAutomodRuleData(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodRule) AddRuleAutomodRuleDataG(ctx context.Context, insert bool, related ...*AutomodRuleDatum) error
- func (o *AutomodRule) AddRuleAutomodTriggeredRules(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodRule) AddRuleAutomodTriggeredRulesG(ctx context.Context, insert bool, related ...*AutomodTriggeredRule) error
- func (o *AutomodRule) AddRuleAutomodViolations(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodRule) AddRuleAutomodViolationsG(ctx context.Context, insert bool, related ...*AutomodViolation) error
- func (o *AutomodRule) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *AutomodRule) DeleteG(ctx context.Context) (int64, error)
- func (o *AutomodRule) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *AutomodRule) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *AutomodRule) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AutomodRule) ReloadG(ctx context.Context) error
- func (o *AutomodRule) RemoveRuleAutomodTriggeredRules(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *AutomodRule) RemoveRuleAutomodTriggeredRulesG(ctx context.Context, related ...*AutomodTriggeredRule) error
- func (o *AutomodRule) RemoveRuleAutomodViolations(ctx context.Context, exec boil.ContextExecutor, related ...*AutomodViolation) error
- func (o *AutomodRule) RemoveRuleAutomodViolationsG(ctx context.Context, related ...*AutomodViolation) error
- func (o *AutomodRule) RuleAutomodRuleData(mods ...qm.QueryMod) automodRuleDatumQuery
- func (o *AutomodRule) RuleAutomodTriggeredRules(mods ...qm.QueryMod) automodTriggeredRuleQuery
- func (o *AutomodRule) RuleAutomodViolations(mods ...qm.QueryMod) automodViolationQuery
- func (o *AutomodRule) Ruleset(mods ...qm.QueryMod) automodRulesetQuery
- func (o *AutomodRule) SetRuleAutomodTriggeredRules(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodRule) SetRuleAutomodTriggeredRulesG(ctx context.Context, insert bool, related ...*AutomodTriggeredRule) error
- func (o *AutomodRule) SetRuleAutomodViolations(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodRule) SetRuleAutomodViolationsG(ctx context.Context, insert bool, related ...*AutomodViolation) error
- func (o *AutomodRule) SetRuleset(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodRule) SetRulesetG(ctx context.Context, insert bool, related *AutomodRuleset) error
- func (o *AutomodRule) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *AutomodRule) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *AutomodRule) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *AutomodRule) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type AutomodRuleDatum
- func (o *AutomodRuleDatum) AddTriggerAutomodTriggeredRules(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodRuleDatum) AddTriggerAutomodTriggeredRulesG(ctx context.Context, insert bool, related ...*AutomodTriggeredRule) error
- func (o *AutomodRuleDatum) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *AutomodRuleDatum) DeleteG(ctx context.Context) (int64, error)
- func (o *AutomodRuleDatum) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *AutomodRuleDatum) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *AutomodRuleDatum) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AutomodRuleDatum) ReloadG(ctx context.Context) error
- func (o *AutomodRuleDatum) RemoveTriggerAutomodTriggeredRules(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *AutomodRuleDatum) RemoveTriggerAutomodTriggeredRulesG(ctx context.Context, related ...*AutomodTriggeredRule) error
- func (o *AutomodRuleDatum) Rule(mods ...qm.QueryMod) automodRuleQuery
- func (o *AutomodRuleDatum) SetRule(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodRuleDatum) SetRuleG(ctx context.Context, insert bool, related *AutomodRule) error
- func (o *AutomodRuleDatum) SetTriggerAutomodTriggeredRules(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodRuleDatum) SetTriggerAutomodTriggeredRulesG(ctx context.Context, insert bool, related ...*AutomodTriggeredRule) error
- func (o *AutomodRuleDatum) TriggerAutomodTriggeredRules(mods ...qm.QueryMod) automodTriggeredRuleQuery
- func (o *AutomodRuleDatum) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *AutomodRuleDatum) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *AutomodRuleDatum) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *AutomodRuleDatum) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type AutomodRuleDatumSlice
- func (o AutomodRuleDatumSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o AutomodRuleDatumSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *AutomodRuleDatumSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AutomodRuleDatumSlice) ReloadAllG(ctx context.Context) error
- func (o AutomodRuleDatumSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o AutomodRuleDatumSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type AutomodRuleSlice
- func (o AutomodRuleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o AutomodRuleSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *AutomodRuleSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AutomodRuleSlice) ReloadAllG(ctx context.Context) error
- func (o AutomodRuleSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o AutomodRuleSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type AutomodRuleset
- func (o *AutomodRuleset) AddRulesetAutomodRules(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodRuleset) AddRulesetAutomodRulesG(ctx context.Context, insert bool, related ...*AutomodRule) error
- func (o *AutomodRuleset) AddRulesetAutomodRulesetConditions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodRuleset) AddRulesetAutomodRulesetConditionsG(ctx context.Context, insert bool, related ...*AutomodRulesetCondition) error
- func (o *AutomodRuleset) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *AutomodRuleset) DeleteG(ctx context.Context) (int64, error)
- func (o *AutomodRuleset) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *AutomodRuleset) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *AutomodRuleset) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AutomodRuleset) ReloadG(ctx context.Context) error
- func (o *AutomodRuleset) RulesetAutomodRules(mods ...qm.QueryMod) automodRuleQuery
- func (o *AutomodRuleset) RulesetAutomodRulesetConditions(mods ...qm.QueryMod) automodRulesetConditionQuery
- func (o *AutomodRuleset) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *AutomodRuleset) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *AutomodRuleset) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *AutomodRuleset) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type AutomodRulesetCondition
- func (o *AutomodRulesetCondition) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *AutomodRulesetCondition) DeleteG(ctx context.Context) (int64, error)
- func (o *AutomodRulesetCondition) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *AutomodRulesetCondition) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *AutomodRulesetCondition) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AutomodRulesetCondition) ReloadG(ctx context.Context) error
- func (o *AutomodRulesetCondition) Ruleset(mods ...qm.QueryMod) automodRulesetQuery
- func (o *AutomodRulesetCondition) SetRuleset(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodRulesetCondition) SetRulesetG(ctx context.Context, insert bool, related *AutomodRuleset) error
- func (o *AutomodRulesetCondition) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *AutomodRulesetCondition) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *AutomodRulesetCondition) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *AutomodRulesetCondition) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type AutomodRulesetConditionSlice
- func (o AutomodRulesetConditionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o AutomodRulesetConditionSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *AutomodRulesetConditionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AutomodRulesetConditionSlice) ReloadAllG(ctx context.Context) error
- func (o AutomodRulesetConditionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o AutomodRulesetConditionSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type AutomodRulesetSlice
- func (o AutomodRulesetSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o AutomodRulesetSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *AutomodRulesetSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AutomodRulesetSlice) ReloadAllG(ctx context.Context) error
- func (o AutomodRulesetSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o AutomodRulesetSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type AutomodTriggeredRule
- func (o *AutomodTriggeredRule) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *AutomodTriggeredRule) DeleteG(ctx context.Context) (int64, error)
- func (o *AutomodTriggeredRule) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *AutomodTriggeredRule) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *AutomodTriggeredRule) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AutomodTriggeredRule) ReloadG(ctx context.Context) error
- func (o *AutomodTriggeredRule) RemoveRule(ctx context.Context, exec boil.ContextExecutor, related *AutomodRule) error
- func (o *AutomodTriggeredRule) RemoveRuleG(ctx context.Context, related *AutomodRule) error
- func (o *AutomodTriggeredRule) RemoveTrigger(ctx context.Context, exec boil.ContextExecutor, related *AutomodRuleDatum) error
- func (o *AutomodTriggeredRule) RemoveTriggerG(ctx context.Context, related *AutomodRuleDatum) error
- func (o *AutomodTriggeredRule) Rule(mods ...qm.QueryMod) automodRuleQuery
- func (o *AutomodTriggeredRule) SetRule(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodTriggeredRule) SetRuleG(ctx context.Context, insert bool, related *AutomodRule) error
- func (o *AutomodTriggeredRule) SetTrigger(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodTriggeredRule) SetTriggerG(ctx context.Context, insert bool, related *AutomodRuleDatum) error
- func (o *AutomodTriggeredRule) Trigger(mods ...qm.QueryMod) automodRuleDatumQuery
- func (o *AutomodTriggeredRule) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *AutomodTriggeredRule) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *AutomodTriggeredRule) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *AutomodTriggeredRule) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type AutomodTriggeredRuleSlice
- func (o AutomodTriggeredRuleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o AutomodTriggeredRuleSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *AutomodTriggeredRuleSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AutomodTriggeredRuleSlice) ReloadAllG(ctx context.Context) error
- func (o AutomodTriggeredRuleSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o AutomodTriggeredRuleSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type AutomodViolation
- func (o *AutomodViolation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *AutomodViolation) DeleteG(ctx context.Context) (int64, error)
- func (o *AutomodViolation) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *AutomodViolation) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *AutomodViolation) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AutomodViolation) ReloadG(ctx context.Context) error
- func (o *AutomodViolation) RemoveRule(ctx context.Context, exec boil.ContextExecutor, related *AutomodRule) error
- func (o *AutomodViolation) RemoveRuleG(ctx context.Context, related *AutomodRule) error
- func (o *AutomodViolation) Rule(mods ...qm.QueryMod) automodRuleQuery
- func (o *AutomodViolation) SetRule(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *AutomodViolation) SetRuleG(ctx context.Context, insert bool, related *AutomodRule) error
- func (o *AutomodViolation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *AutomodViolation) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *AutomodViolation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *AutomodViolation) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type AutomodViolationSlice
- func (o AutomodViolationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o AutomodViolationSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *AutomodViolationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *AutomodViolationSlice) ReloadAllG(ctx context.Context) error
- func (o AutomodViolationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o AutomodViolationSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type M
Constants ¶
This section is empty.
Variables ¶
var AutomodListColumns = struct { ID string GuildID string Name string Kind string Content string }{ ID: "id", GuildID: "guild_id", Name: "name", Kind: "kind", Content: "content", }
var AutomodListRels = struct {
}{}
AutomodListRels is where relationship names are stored.
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 */}, }
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", }
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", }
var AutomodRuleDatumRels = struct { Rule string TriggerAutomodTriggeredRules string }{ Rule: "Rule", TriggerAutomodTriggeredRules: "TriggerAutomodTriggeredRules", }
AutomodRuleDatumRels is where relationship names are stored.
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 */}, }
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.
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 */}, }
var AutomodRulesetColumns = struct { ID string GuildID string Name string Enabled string }{ ID: "id", GuildID: "guild_id", Name: "name", Enabled: "enabled", }
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", }
var AutomodRulesetConditionRels = struct { Ruleset string }{ Ruleset: "Ruleset", }
AutomodRulesetConditionRels is where relationship names are stored.
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 */}, }
var AutomodRulesetRels = struct { RulesetAutomodRules string RulesetAutomodRulesetConditions string }{ RulesetAutomodRules: "RulesetAutomodRules", RulesetAutomodRulesetConditions: "RulesetAutomodRulesetConditions", }
AutomodRulesetRels is where relationship names are stored.
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 */}, }
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", }
var AutomodTriggeredRuleRels = struct { Trigger string Rule string }{ Trigger: "Trigger", Rule: "Rule", }
AutomodTriggeredRuleRels is where relationship names are stored.
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 */}, }
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", }
var AutomodViolationRels = struct { Rule string }{ Rule: "Rule", }
AutomodViolationRels is where relationship names are stored.
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 */}, }
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var 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 ¶
AutomodListExists checks if the AutomodList row exists.
func AutomodListExistsG ¶
AutomodListExistsG checks if the AutomodList row exists.
func AutomodLists ¶
AutomodLists retrieves all the records using an executor.
func AutomodRuleData ¶
AutomodRuleData retrieves all the records using an executor.
func AutomodRuleDatumExists ¶
AutomodRuleDatumExists checks if the AutomodRuleDatum row exists.
func AutomodRuleDatumExistsG ¶
AutomodRuleDatumExistsG checks if the AutomodRuleDatum row exists.
func AutomodRuleExists ¶
AutomodRuleExists checks if the AutomodRule row exists.
func AutomodRuleExistsG ¶
AutomodRuleExistsG checks if the AutomodRule row exists.
func AutomodRules ¶
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 ¶
AutomodRulesetConditionExistsG checks if the AutomodRulesetCondition row exists.
func AutomodRulesetConditions ¶
AutomodRulesetConditions retrieves all the records using an executor.
func AutomodRulesetExists ¶
AutomodRulesetExists checks if the AutomodRuleset row exists.
func AutomodRulesetExistsG ¶
AutomodRulesetExistsG checks if the AutomodRuleset row exists.
func AutomodRulesets ¶
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 ¶
AutomodTriggeredRuleExistsG checks if the AutomodTriggeredRule row exists.
func AutomodTriggeredRules ¶
AutomodTriggeredRules retrieves all the records using an executor.
func AutomodViolationExists ¶
AutomodViolationExists checks if the AutomodViolation row exists.
func AutomodViolationExistsG ¶
AutomodViolationExistsG checks if the AutomodViolation row exists.
func AutomodViolations ¶
AutomodViolations retrieves all the records using an executor.
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 ¶
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 ¶
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 ¶
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.
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 ¶
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 ¶
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 ¶
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 ¶
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.
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 ¶
func (o *AutomodRuleDatum) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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 ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*AutomodRuleDatum) Reload ¶
func (o *AutomodRuleDatum) Reload(ctx context.Context, exec boil.ContextExecutor) error
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 ¶
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.
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 ¶
func (o AutomodRuleDatumSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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 ¶
func (o *AutomodRuleDatumSlice) 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 (*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 ¶
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 ¶
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 ¶
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 ¶
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.
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 ¶
func (o *AutomodRulesetCondition) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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 ¶
func (o *AutomodRulesetCondition) 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 (*AutomodRulesetCondition) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*AutomodRulesetCondition) Reload ¶
func (o *AutomodRulesetCondition) Reload(ctx context.Context, exec boil.ContextExecutor) error
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 ¶
func (o *AutomodRulesetCondition) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
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 ¶
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.
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 ¶
func (o AutomodRulesetConditionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (AutomodRulesetConditionSlice) DeleteAllG ¶
func (o AutomodRulesetConditionSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*AutomodRulesetConditionSlice) ReloadAll ¶
func (o *AutomodRulesetConditionSlice) 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 (*AutomodRulesetConditionSlice) ReloadAllG ¶
func (o *AutomodRulesetConditionSlice) 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 (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 ¶
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 ¶
func (o AutomodRulesetSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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 ¶
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 ¶
func (o *AutomodTriggeredRule) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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 ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*AutomodTriggeredRule) Reload ¶
func (o *AutomodTriggeredRule) Reload(ctx context.Context, exec boil.ContextExecutor) error
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 ¶
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.
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 ¶
func (o AutomodTriggeredRuleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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 ¶
func (o *AutomodTriggeredRuleSlice) 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 (*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 ¶
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 ¶
func (o *AutomodViolation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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 ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*AutomodViolation) Reload ¶
func (o *AutomodViolation) Reload(ctx context.Context, exec boil.ContextExecutor) error
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 ¶
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.
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 ¶
func (o AutomodViolationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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 ¶
func (o *AutomodViolationSlice) 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 (*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 ¶
UpdateAllG updates all rows with the specified column values.