Documentation ¶
Index ¶
- Variables
- func AddForgottenPasswordKeyHook(hookPoint boil.HookPoint, forgottenPasswordKeyHook ForgottenPasswordKeyHook)
- func AddJudgeHook(hookPoint boil.HookPoint, judgeHook JudgeHook)
- func AddPartialHook(hookPoint boil.HookPoint, partialHook PartialHook)
- func AddProblemCategoryHook(hookPoint boil.HookPoint, problemCategoryHook ProblemCategoryHook)
- func AddProblemRelHook(hookPoint boil.HookPoint, problemRelHook ProblemRelHook)
- func AddProblemTagHook(hookPoint boil.HookPoint, problemTagHook ProblemTagHook)
- func AddSubmissionHook(hookPoint boil.HookPoint, submissionHook SubmissionHook)
- func AddTagHook(hookPoint boil.HookPoint, tagHook TagHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func ForgottenPasswordKeyExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func ForgottenPasswordKeyExistsG(ctx context.Context, iD int) (bool, error)
- func ForgottenPasswordKeys(mods ...qm.QueryMod) forgottenPasswordKeyQuery
- func JudgeExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func JudgeExistsG(ctx context.Context, iD int) (bool, error)
- func Judges(mods ...qm.QueryMod) judgeQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func PartialExists(ctx context.Context, exec boil.ContextExecutor, name string) (bool, error)
- func PartialExistsG(ctx context.Context, name string) (bool, error)
- func Partials(mods ...qm.QueryMod) partialQuery
- func ProblemCategories(mods ...qm.QueryMod) problemCategoryQuery
- func ProblemCategoryExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func ProblemCategoryExistsG(ctx context.Context, iD int) (bool, error)
- func ProblemRelExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func ProblemRelExistsG(ctx context.Context, iD int) (bool, error)
- func ProblemRels(mods ...qm.QueryMod) problemRelQuery
- func ProblemTagExists(ctx context.Context, exec boil.ContextExecutor, problemID int, tagID int) (bool, error)
- func ProblemTagExistsG(ctx context.Context, problemID int, tagID int) (bool, error)
- func ProblemTags(mods ...qm.QueryMod) problemTagQuery
- func SubmissionExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func SubmissionExistsG(ctx context.Context, iD int) (bool, error)
- func Submissions(mods ...qm.QueryMod) submissionQuery
- func TagExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func TagExistsG(ctx context.Context, iD int) (bool, error)
- func Tags(mods ...qm.QueryMod) tagQuery
- func UserExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func UserExistsG(ctx context.Context, iD int) (bool, error)
- func Users(mods ...qm.QueryMod) userQuery
- type ForgottenPasswordKey
- func (o *ForgottenPasswordKey) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ForgottenPasswordKey) DeleteG(ctx context.Context) (int64, error)
- func (o *ForgottenPasswordKey) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ForgottenPasswordKey) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ForgottenPasswordKey) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ForgottenPasswordKey) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ForgottenPasswordKey) ReloadG(ctx context.Context) error
- func (o *ForgottenPasswordKey) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *ForgottenPasswordKey) SetUserG(ctx context.Context, insert bool, related *User) error
- func (o *ForgottenPasswordKey) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ForgottenPasswordKey) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ForgottenPasswordKey) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ForgottenPasswordKey) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- func (o *ForgottenPasswordKey) User(mods ...qm.QueryMod) userQuery
- type ForgottenPasswordKeyHook
- type ForgottenPasswordKeySlice
- func (o ForgottenPasswordKeySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ForgottenPasswordKeySlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ForgottenPasswordKeySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ForgottenPasswordKeySlice) ReloadAllG(ctx context.Context) error
- func (o ForgottenPasswordKeySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ForgottenPasswordKeySlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type Judge
- func (o *Judge) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Judge) DeleteG(ctx context.Context) (int64, error)
- func (o *Judge) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Judge) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Judge) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *Judge) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Judge) ReloadG(ctx context.Context) error
- func (o *Judge) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Judge) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *Judge) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *Judge) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type JudgeHook
- type JudgeSlice
- func (o JudgeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o JudgeSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *JudgeSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *JudgeSlice) ReloadAllG(ctx context.Context) error
- func (o JudgeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o JudgeSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type M
- type Partial
- func (o *Partial) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Partial) DeleteG(ctx context.Context) (int64, error)
- func (o *Partial) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Partial) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Partial) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *Partial) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Partial) ReloadG(ctx context.Context) error
- func (o *Partial) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Partial) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *Partial) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *Partial) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type PartialHook
- type PartialSlice
- func (o PartialSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o PartialSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *PartialSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PartialSlice) ReloadAllG(ctx context.Context) error
- func (o PartialSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o PartialSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ProblemCategory
- func (o *ProblemCategory) AddCategoryProblemRels(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProblemCategory) AddCategoryProblemRelsG(ctx context.Context, insert bool, related ...*ProblemRel) error
- func (o *ProblemCategory) AddParentProblemCategories(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProblemCategory) AddParentProblemCategoriesG(ctx context.Context, insert bool, related ...*ProblemCategory) error
- func (o *ProblemCategory) CategoryProblemRels(mods ...qm.QueryMod) problemRelQuery
- func (o *ProblemCategory) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ProblemCategory) DeleteG(ctx context.Context) (int64, error)
- func (o *ProblemCategory) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ProblemCategory) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ProblemCategory) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ProblemCategory) Parent(mods ...qm.QueryMod) problemCategoryQuery
- func (o *ProblemCategory) ParentProblemCategories(mods ...qm.QueryMod) problemCategoryQuery
- func (o *ProblemCategory) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ProblemCategory) ReloadG(ctx context.Context) error
- func (o *ProblemCategory) RemoveCategoryProblemRels(ctx context.Context, exec boil.ContextExecutor, related ...*ProblemRel) error
- func (o *ProblemCategory) RemoveCategoryProblemRelsG(ctx context.Context, related ...*ProblemRel) error
- func (o *ProblemCategory) RemoveParent(ctx context.Context, exec boil.ContextExecutor, related *ProblemCategory) error
- func (o *ProblemCategory) RemoveParentG(ctx context.Context, related *ProblemCategory) error
- func (o *ProblemCategory) RemoveParentProblemCategories(ctx context.Context, exec boil.ContextExecutor, related ...*ProblemCategory) error
- func (o *ProblemCategory) RemoveParentProblemCategoriesG(ctx context.Context, related ...*ProblemCategory) error
- func (o *ProblemCategory) SetCategoryProblemRels(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProblemCategory) SetCategoryProblemRelsG(ctx context.Context, insert bool, related ...*ProblemRel) error
- func (o *ProblemCategory) SetParent(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProblemCategory) SetParentG(ctx context.Context, insert bool, related *ProblemCategory) error
- func (o *ProblemCategory) SetParentProblemCategories(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProblemCategory) SetParentProblemCategoriesG(ctx context.Context, insert bool, related ...*ProblemCategory) error
- func (o *ProblemCategory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ProblemCategory) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ProblemCategory) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ProblemCategory) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ProblemCategoryHook
- type ProblemCategorySlice
- func (o ProblemCategorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ProblemCategorySlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ProblemCategorySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ProblemCategorySlice) ReloadAllG(ctx context.Context) error
- func (o ProblemCategorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ProblemCategorySlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ProblemRel
- func (o *ProblemRel) AddProblemProblemTags(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProblemRel) AddProblemProblemTagsG(ctx context.Context, insert bool, related ...*ProblemTag) error
- func (o *ProblemRel) AddProblemSubmissions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProblemRel) AddProblemSubmissionsG(ctx context.Context, insert bool, related ...*Submission) error
- func (o *ProblemRel) Category(mods ...qm.QueryMod) problemCategoryQuery
- func (o *ProblemRel) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ProblemRel) DeleteG(ctx context.Context) (int64, error)
- func (o *ProblemRel) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ProblemRel) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ProblemRel) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ProblemRel) ProblemProblemTags(mods ...qm.QueryMod) problemTagQuery
- func (o *ProblemRel) ProblemSubmissions(mods ...qm.QueryMod) submissionQuery
- func (o *ProblemRel) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ProblemRel) ReloadG(ctx context.Context) error
- func (o *ProblemRel) RemoveCategory(ctx context.Context, exec boil.ContextExecutor, related *ProblemCategory) error
- func (o *ProblemRel) RemoveCategoryG(ctx context.Context, related *ProblemCategory) error
- func (o *ProblemRel) SetCategory(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProblemRel) SetCategoryG(ctx context.Context, insert bool, related *ProblemCategory) error
- func (o *ProblemRel) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ProblemRel) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ProblemRel) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ProblemRel) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type ProblemRelHook
- type ProblemRelSlice
- func (o ProblemRelSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ProblemRelSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ProblemRelSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ProblemRelSlice) ReloadAllG(ctx context.Context) error
- func (o ProblemRelSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ProblemRelSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type ProblemTag
- func (o *ProblemTag) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ProblemTag) DeleteG(ctx context.Context) (int64, error)
- func (o *ProblemTag) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *ProblemTag) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ProblemTag) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *ProblemTag) Problem(mods ...qm.QueryMod) problemRelQuery
- func (o *ProblemTag) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ProblemTag) ReloadG(ctx context.Context) error
- func (o *ProblemTag) SetProblem(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *ProblemTag) SetProblemG(ctx context.Context, insert bool, related *ProblemRel) error
- func (o *ProblemTag) SetTag(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Tag) error
- func (o *ProblemTag) SetTagG(ctx context.Context, insert bool, related *Tag) error
- func (o *ProblemTag) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *ProblemTag) SetUserG(ctx context.Context, insert bool, related *User) error
- func (o *ProblemTag) Tag(mods ...qm.QueryMod) tagQuery
- func (o *ProblemTag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ProblemTag) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *ProblemTag) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *ProblemTag) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- func (o *ProblemTag) User(mods ...qm.QueryMod) userQuery
- type ProblemTagHook
- type ProblemTagSlice
- func (o ProblemTagSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o ProblemTagSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *ProblemTagSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ProblemTagSlice) ReloadAllG(ctx context.Context) error
- func (o ProblemTagSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o ProblemTagSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type Submission
- func (o *Submission) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Submission) DeleteG(ctx context.Context) (int64, error)
- func (o *Submission) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Submission) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Submission) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *Submission) Problem(mods ...qm.QueryMod) problemRelQuery
- func (o *Submission) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Submission) ReloadG(ctx context.Context) error
- func (o *Submission) SetProblem(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Submission) SetProblemG(ctx context.Context, insert bool, related *ProblemRel) error
- func (o *Submission) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *Submission) SetUserG(ctx context.Context, insert bool, related *User) error
- func (o *Submission) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Submission) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *Submission) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *Submission) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- func (o *Submission) User(mods ...qm.QueryMod) userQuery
- type SubmissionHook
- type SubmissionSlice
- func (o SubmissionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o SubmissionSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *SubmissionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *SubmissionSlice) ReloadAllG(ctx context.Context) error
- func (o SubmissionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o SubmissionSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type Tag
- func (o *Tag) AddProblemTags(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Tag) AddProblemTagsG(ctx context.Context, insert bool, related ...*ProblemTag) error
- func (o *Tag) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Tag) DeleteG(ctx context.Context) (int64, error)
- func (o *Tag) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Tag) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Tag) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *Tag) ProblemTags(mods ...qm.QueryMod) problemTagQuery
- func (o *Tag) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Tag) ReloadG(ctx context.Context) error
- func (o *Tag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Tag) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *Tag) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *Tag) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type TagHook
- type TagSlice
- func (o TagSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o TagSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *TagSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *TagSlice) ReloadAllG(ctx context.Context) error
- func (o TagSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o TagSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type User
- func (o *User) AddProblemTags(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddProblemTagsG(ctx context.Context, insert bool, related ...*ProblemTag) error
- func (o *User) AddSubmissions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddSubmissionsG(ctx context.Context, insert bool, related ...*Submission) error
- func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *User) DeleteG(ctx context.Context) (int64, error)
- func (o *User) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *User) ForgottenPasswordKey(mods ...qm.QueryMod) forgottenPasswordKeyQuery
- func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *User) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *User) ProblemTags(mods ...qm.QueryMod) problemTagQuery
- func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *User) ReloadG(ctx context.Context) error
- func (o *User) SetForgottenPasswordKey(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) SetForgottenPasswordKeyG(ctx context.Context, insert bool, related *ForgottenPasswordKey) error
- func (o *User) Submissions(mods ...qm.QueryMod) submissionQuery
- func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *User) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *User) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type UserHook
- type UserSlice
- func (o UserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o UserSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *UserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserSlice) ReloadAllG(ctx context.Context) error
- func (o UserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o UserSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var ForgottenPasswordKeyColumns = struct { ID string UserID string Key string Valid string }{ ID: "id", UserID: "user_id", Key: "key", Valid: "valid", }
var ForgottenPasswordKeyRels = struct { User string }{ User: "User", }
ForgottenPasswordKeyRels is where relationship names are stored.
var ForgottenPasswordKeyTableColumns = struct { ID string UserID string Key string Valid string }{ ID: "forgotten_password_keys.id", UserID: "forgotten_password_keys.user_id", Key: "forgotten_password_keys.key", Valid: "forgotten_password_keys.valid", }
var ForgottenPasswordKeyWhere = struct { ID whereHelperint UserID whereHelperint Key whereHelperstring Valid whereHelpertime_Time }{ ID: whereHelperint{/* contains filtered or unexported fields */}, UserID: whereHelperint{/* contains filtered or unexported fields */}, Key: whereHelperstring{/* contains filtered or unexported fields */}, Valid: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var JudgeColumns = struct { ID string State string Host string Port string Ping string Online string }{ ID: "id", State: "state", Host: "host", Port: "port", Ping: "ping", Online: "online", }
var JudgeRels = struct {
}{}
JudgeRels is where relationship names are stored.
var JudgeTableColumns = struct { ID string State string Host string Port string Ping string Online string }{ ID: "judges.id", State: "judges.state", Host: "judges.host", Port: "judges.port", Ping: "judges.ping", Online: "judges.online", }
var JudgeWhere = struct { ID whereHelperint State whereHelperstring Host whereHelperstring Port whereHelperstring Ping whereHelperint Online whereHelperbool }{ ID: whereHelperint{/* contains filtered or unexported fields */}, State: whereHelperstring{/* contains filtered or unexported fields */}, Host: whereHelperstring{/* contains filtered or unexported fields */}, Port: whereHelperstring{/* contains filtered or unexported fields */}, Ping: whereHelperint{/* contains filtered or unexported fields */}, Online: whereHelperbool{/* contains filtered or unexported fields */}, }
var PartialColumns = struct { Name string HTML string }{ Name: "name", HTML: "html", }
var PartialRels = struct {
}{}
PartialRels is where relationship names are stored.
var PartialTableColumns = struct { Name string HTML string }{ Name: "partials.name", HTML: "partials.html", }
var PartialWhere = struct { Name whereHelperstring HTML whereHelperstring }{ Name: whereHelperstring{/* contains filtered or unexported fields */}, HTML: whereHelperstring{/* contains filtered or unexported fields */}, }
var ProblemCategoryColumns = struct { ID string Name string ParentID string }{ ID: "id", Name: "name", ParentID: "parent_id", }
var ProblemCategoryRels = struct { Parent string ParentProblemCategories string CategoryProblemRels string }{ Parent: "Parent", ParentProblemCategories: "ParentProblemCategories", CategoryProblemRels: "CategoryProblemRels", }
ProblemCategoryRels is where relationship names are stored.
var ProblemCategoryTableColumns = struct { ID string Name string ParentID string }{ ID: "problem_categories.id", Name: "problem_categories.name", ParentID: "problem_categories.parent_id", }
var ProblemCategoryWhere = struct { ID whereHelperint Name whereHelperstring ParentID whereHelpernull_Int }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, ParentID: whereHelpernull_Int{/* contains filtered or unexported fields */}, }
var ProblemRelColumns = struct { Problemset string Problem string ID string CategoryID string SolverCount string }{ Problemset: "problemset", Problem: "problem", ID: "id", CategoryID: "category_id", SolverCount: "solver_count", }
var ProblemRelRels = struct { Category string ProblemProblemTags string ProblemSubmissions string }{ Category: "Category", ProblemProblemTags: "ProblemProblemTags", ProblemSubmissions: "ProblemSubmissions", }
ProblemRelRels is where relationship names are stored.
var ProblemRelTableColumns = struct { Problemset string Problem string ID string CategoryID string SolverCount string }{ Problemset: "problem_rels.problemset", Problem: "problem_rels.problem", ID: "problem_rels.id", CategoryID: "problem_rels.category_id", SolverCount: "problem_rels.solver_count", }
var ProblemRelWhere = struct { Problemset whereHelperstring Problem whereHelperstring ID whereHelperint CategoryID whereHelpernull_Int SolverCount whereHelperint }{ Problemset: whereHelperstring{/* contains filtered or unexported fields */}, Problem: whereHelperstring{/* contains filtered or unexported fields */}, ID: whereHelperint{/* contains filtered or unexported fields */}, CategoryID: whereHelpernull_Int{/* contains filtered or unexported fields */}, SolverCount: whereHelperint{/* contains filtered or unexported fields */}, }
var ProblemTagColumns = struct { ProblemID string TagID string UserID string Added string }{ ProblemID: "problem_id", TagID: "tag_id", UserID: "user_id", Added: "added", }
var ProblemTagRels = struct { Problem string Tag string User string }{ Problem: "Problem", Tag: "Tag", User: "User", }
ProblemTagRels is where relationship names are stored.
var ProblemTagTableColumns = struct { ProblemID string TagID string UserID string Added string }{ ProblemID: "problem_tags.problem_id", TagID: "problem_tags.tag_id", UserID: "problem_tags.user_id", Added: "problem_tags.added", }
var ProblemTagWhere = struct { ProblemID whereHelperint TagID whereHelperint UserID whereHelperint Added whereHelpertime_Time }{ ProblemID: whereHelperint{/* contains filtered or unexported fields */}, TagID: whereHelperint{/* contains filtered or unexported fields */}, UserID: whereHelperint{/* contains filtered or unexported fields */}, Added: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var SubmissionColumns = struct { ID string Status string Ontest string UserID string Language string Private string Verdict string Source string Started string Submitted string Judged string Score string ProblemID string }{ ID: "id", Status: "status", Ontest: "ontest", UserID: "user_id", Language: "language", Private: "private", Verdict: "verdict", Source: "source", Started: "started", Submitted: "submitted", Judged: "judged", Score: "score", ProblemID: "problem_id", }
var SubmissionRels = struct { Problem string User string }{ Problem: "Problem", User: "User", }
SubmissionRels is where relationship names are stored.
var SubmissionTableColumns = struct { ID string Status string Ontest string UserID string Language string Private string Verdict string Source string Started string Submitted string Judged string Score string ProblemID string }{ ID: "submissions.id", Status: "submissions.status", Ontest: "submissions.ontest", UserID: "submissions.user_id", Language: "submissions.language", Private: "submissions.private", Verdict: "submissions.verdict", Source: "submissions.source", Started: "submissions.started", Submitted: "submissions.submitted", Judged: "submissions.judged", Score: "submissions.score", ProblemID: "submissions.problem_id", }
var SubmissionWhere = struct { ID whereHelperint Status whereHelperstring Ontest whereHelpernull_String UserID whereHelperint Language whereHelperstring Private whereHelperbool Verdict whereHelperint Source whereHelper__byte Started whereHelperbool Submitted whereHelpertime_Time Judged whereHelpernull_Time Score whereHelpernull_Float32 ProblemID whereHelperint }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Status: whereHelperstring{/* contains filtered or unexported fields */}, Ontest: whereHelpernull_String{/* contains filtered or unexported fields */}, UserID: whereHelperint{/* contains filtered or unexported fields */}, Language: whereHelperstring{/* contains filtered or unexported fields */}, Private: whereHelperbool{/* contains filtered or unexported fields */}, Verdict: whereHelperint{/* contains filtered or unexported fields */}, Source: whereHelper__byte{/* contains filtered or unexported fields */}, Started: whereHelperbool{/* contains filtered or unexported fields */}, Submitted: whereHelpertime_Time{/* contains filtered or unexported fields */}, Judged: whereHelpernull_Time{/* contains filtered or unexported fields */}, Score: whereHelpernull_Float32{/* contains filtered or unexported fields */}, ProblemID: whereHelperint{/* contains filtered or unexported fields */}, }
var TableNames = struct { ForgottenPasswordKeys string Judges string Partials string ProblemCategories string ProblemRels string ProblemTags string Submissions string Tags string Users string }{ ForgottenPasswordKeys: "forgotten_password_keys", Judges: "judges", Partials: "partials", ProblemCategories: "problem_categories", ProblemRels: "problem_rels", ProblemTags: "problem_tags", Submissions: "submissions", Tags: "tags", Users: "users", }
var TagColumns = struct { ID string Name string }{ ID: "id", Name: "name", }
var TagRels = struct { ProblemTags string }{ ProblemTags: "ProblemTags", }
TagRels is where relationship names are stored.
var TagTableColumns = struct { ID string Name string }{ ID: "tags.id", Name: "tags.name", }
var TagWhere = struct { ID whereHelperint Name whereHelperstring }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, }
var UserColumns = struct { ID string Name string Password string Email string ActivationKey string Role string Points string ShowUnsolvedTags string Registered string }{ ID: "id", Name: "name", Password: "password", Email: "email", ActivationKey: "activation_key", Role: "role", Points: "points", ShowUnsolvedTags: "show_unsolved_tags", Registered: "registered", }
var UserRels = struct { ForgottenPasswordKey string ProblemTags string Submissions string }{ ForgottenPasswordKey: "ForgottenPasswordKey", ProblemTags: "ProblemTags", Submissions: "Submissions", }
UserRels is where relationship names are stored.
var UserTableColumns = struct { ID string Name string Password string Email string ActivationKey string Role string Points string ShowUnsolvedTags string Registered string }{ ID: "users.id", Name: "users.name", Password: "users.password", Email: "users.email", ActivationKey: "users.activation_key", Role: "users.role", Points: "users.points", ShowUnsolvedTags: "users.show_unsolved_tags", Registered: "users.registered", }
var UserWhere = struct { ID whereHelperint Name whereHelperstring Password whereHelperstring Email whereHelperstring ActivationKey whereHelpernull_String Role whereHelperstring Points whereHelpernull_Float32 ShowUnsolvedTags whereHelperbool Registered whereHelpernull_Time }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Password: whereHelperstring{/* contains filtered or unexported fields */}, Email: whereHelperstring{/* contains filtered or unexported fields */}, ActivationKey: whereHelpernull_String{/* contains filtered or unexported fields */}, Role: whereHelperstring{/* contains filtered or unexported fields */}, Points: whereHelpernull_Float32{/* contains filtered or unexported fields */}, ShowUnsolvedTags: whereHelperbool{/* contains filtered or unexported fields */}, Registered: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var ViewNames = struct {
}{}
Functions ¶
func AddForgottenPasswordKeyHook ¶
func AddForgottenPasswordKeyHook(hookPoint boil.HookPoint, forgottenPasswordKeyHook ForgottenPasswordKeyHook)
AddForgottenPasswordKeyHook registers your hook function for all future operations.
func AddJudgeHook ¶
AddJudgeHook registers your hook function for all future operations.
func AddPartialHook ¶
func AddPartialHook(hookPoint boil.HookPoint, partialHook PartialHook)
AddPartialHook registers your hook function for all future operations.
func AddProblemCategoryHook ¶
func AddProblemCategoryHook(hookPoint boil.HookPoint, problemCategoryHook ProblemCategoryHook)
AddProblemCategoryHook registers your hook function for all future operations.
func AddProblemRelHook ¶
func AddProblemRelHook(hookPoint boil.HookPoint, problemRelHook ProblemRelHook)
AddProblemRelHook registers your hook function for all future operations.
func AddProblemTagHook ¶
func AddProblemTagHook(hookPoint boil.HookPoint, problemTagHook ProblemTagHook)
AddProblemTagHook registers your hook function for all future operations.
func AddSubmissionHook ¶
func AddSubmissionHook(hookPoint boil.HookPoint, submissionHook SubmissionHook)
AddSubmissionHook registers your hook function for all future operations.
func AddTagHook ¶
AddTagHook registers your hook function for all future operations.
func AddUserHook ¶
AddUserHook registers your hook function for all future operations.
func ForgottenPasswordKeyExists ¶
func ForgottenPasswordKeyExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
ForgottenPasswordKeyExists checks if the ForgottenPasswordKey row exists.
func ForgottenPasswordKeyExistsG ¶
ForgottenPasswordKeyExistsG checks if the ForgottenPasswordKey row exists.
func ForgottenPasswordKeys ¶
ForgottenPasswordKeys retrieves all the records using an executor.
func JudgeExists ¶
JudgeExists checks if the Judge row exists.
func JudgeExistsG ¶
JudgeExistsG checks if the Judge row exists.
func PartialExists ¶
PartialExists checks if the Partial row exists.
func PartialExistsG ¶
PartialExistsG checks if the Partial row exists.
func ProblemCategories ¶
ProblemCategories retrieves all the records using an executor.
func ProblemCategoryExists ¶
ProblemCategoryExists checks if the ProblemCategory row exists.
func ProblemCategoryExistsG ¶
ProblemCategoryExistsG checks if the ProblemCategory row exists.
func ProblemRelExists ¶
ProblemRelExists checks if the ProblemRel row exists.
func ProblemRelExistsG ¶
ProblemRelExistsG checks if the ProblemRel row exists.
func ProblemRels ¶
ProblemRels retrieves all the records using an executor.
func ProblemTagExists ¶
func ProblemTagExists(ctx context.Context, exec boil.ContextExecutor, problemID int, tagID int) (bool, error)
ProblemTagExists checks if the ProblemTag row exists.
func ProblemTagExistsG ¶
ProblemTagExistsG checks if the ProblemTag row exists.
func ProblemTags ¶
ProblemTags retrieves all the records using an executor.
func SubmissionExists ¶
SubmissionExists checks if the Submission row exists.
func SubmissionExistsG ¶
SubmissionExistsG checks if the Submission row exists.
func Submissions ¶
Submissions retrieves all the records using an executor.
func TagExistsG ¶
TagExistsG checks if the Tag row exists.
func UserExists ¶
UserExists checks if the User row exists.
func UserExistsG ¶
UserExistsG checks if the User row exists.
Types ¶
type ForgottenPasswordKey ¶
type ForgottenPasswordKey struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` UserID int `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Key string `boil:"key" json:"key" toml:"key" yaml:"key"` Valid time.Time `boil:"valid" json:"valid" toml:"valid" yaml:"valid"` R *forgottenPasswordKeyR `boil:"-" json:"-" toml:"-" yaml:"-"` L forgottenPasswordKeyL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ForgottenPasswordKey is an object representing the database table.
func FindForgottenPasswordKey ¶
func FindForgottenPasswordKey(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*ForgottenPasswordKey, error)
FindForgottenPasswordKey retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindForgottenPasswordKeyG ¶
func FindForgottenPasswordKeyG(ctx context.Context, iD int, selectCols ...string) (*ForgottenPasswordKey, error)
FindForgottenPasswordKeyG retrieves a single record by ID.
func (*ForgottenPasswordKey) Delete ¶
func (o *ForgottenPasswordKey) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ForgottenPasswordKey record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ForgottenPasswordKey) DeleteG ¶
func (o *ForgottenPasswordKey) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ForgottenPasswordKey record. DeleteG will match against the primary key column to find the record to delete.
func (*ForgottenPasswordKey) Exists ¶
func (o *ForgottenPasswordKey) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ForgottenPasswordKey row exists.
func (*ForgottenPasswordKey) Insert ¶
func (o *ForgottenPasswordKey) 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 (*ForgottenPasswordKey) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ForgottenPasswordKey) Reload ¶
func (o *ForgottenPasswordKey) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ForgottenPasswordKey) ReloadG ¶
func (o *ForgottenPasswordKey) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ForgottenPasswordKey) SetUser ¶
func (o *ForgottenPasswordKey) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the forgottenPasswordKey to the related item. Sets o.R.User to related. Adds o to related.R.ForgottenPasswordKey.
func (*ForgottenPasswordKey) SetUserG ¶
SetUserG of the forgottenPasswordKey to the related item. Sets o.R.User to related. Adds o to related.R.ForgottenPasswordKey. Uses the global database handle.
func (*ForgottenPasswordKey) Update ¶
func (o *ForgottenPasswordKey) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ForgottenPasswordKey. 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 (*ForgottenPasswordKey) UpdateG ¶
UpdateG a single ForgottenPasswordKey record using the global executor. See Update for more documentation.
func (*ForgottenPasswordKey) Upsert ¶
func (o *ForgottenPasswordKey) 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 (*ForgottenPasswordKey) UpsertG ¶
func (o *ForgottenPasswordKey) 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.
func (*ForgottenPasswordKey) User ¶
func (o *ForgottenPasswordKey) User(mods ...qm.QueryMod) userQuery
User pointed to by the foreign key.
type ForgottenPasswordKeyHook ¶
type ForgottenPasswordKeyHook func(context.Context, boil.ContextExecutor, *ForgottenPasswordKey) error
ForgottenPasswordKeyHook is the signature for custom ForgottenPasswordKey hook methods
type ForgottenPasswordKeySlice ¶
type ForgottenPasswordKeySlice []*ForgottenPasswordKey
ForgottenPasswordKeySlice is an alias for a slice of pointers to ForgottenPasswordKey. This should almost always be used instead of []ForgottenPasswordKey.
func (ForgottenPasswordKeySlice) DeleteAll ¶
func (o ForgottenPasswordKeySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ForgottenPasswordKeySlice) DeleteAllG ¶
func (o ForgottenPasswordKeySlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ForgottenPasswordKeySlice) ReloadAll ¶
func (o *ForgottenPasswordKeySlice) 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 (*ForgottenPasswordKeySlice) ReloadAllG ¶
func (o *ForgottenPasswordKeySlice) 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 (ForgottenPasswordKeySlice) UpdateAll ¶
func (o ForgottenPasswordKeySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ForgottenPasswordKeySlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type Judge ¶
type Judge struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` State string `boil:"state" json:"state" toml:"state" yaml:"state"` Host string `boil:"host" json:"host" toml:"host" yaml:"host"` Port string `boil:"port" json:"port" toml:"port" yaml:"port"` Ping int `boil:"ping" json:"ping" toml:"ping" yaml:"ping"` Online bool `boil:"online" json:"online" toml:"online" yaml:"online"` R *judgeR `boil:"-" json:"-" toml:"-" yaml:"-"` L judgeL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Judge is an object representing the database table.
func FindJudge ¶
func FindJudge(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Judge, error)
FindJudge retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindJudgeG ¶
FindJudgeG retrieves a single record by ID.
func (*Judge) Delete ¶
Delete deletes a single Judge record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Judge) DeleteG ¶
DeleteG deletes a single Judge record. DeleteG will match against the primary key column to find the record to delete.
func (*Judge) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Judge) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Judge) Update ¶
func (o *Judge) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Judge. 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 (*Judge) UpdateG ¶
UpdateG a single Judge record using the global executor. See Update for more documentation.
func (*Judge) Upsert ¶
func (o *Judge) 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 JudgeSlice ¶
type JudgeSlice []*Judge
JudgeSlice is an alias for a slice of pointers to Judge. This should almost always be used instead of []Judge.
func (JudgeSlice) DeleteAll ¶
func (o JudgeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (JudgeSlice) DeleteAllG ¶
func (o JudgeSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*JudgeSlice) ReloadAll ¶
func (o *JudgeSlice) 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 (*JudgeSlice) ReloadAllG ¶
func (o *JudgeSlice) 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 (JudgeSlice) UpdateAll ¶
func (o JudgeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (JudgeSlice) UpdateAllG ¶
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.
type Partial ¶
type Partial struct { Name string `boil:"name" json:"name" toml:"name" yaml:"name"` HTML string `boil:"html" json:"html" toml:"html" yaml:"html"` R *partialR `boil:"-" json:"-" toml:"-" yaml:"-"` L partialL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Partial is an object representing the database table.
func FindPartial ¶
func FindPartial(ctx context.Context, exec boil.ContextExecutor, name string, selectCols ...string) (*Partial, error)
FindPartial retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindPartialG ¶
FindPartialG retrieves a single record by ID.
func (*Partial) Delete ¶
Delete deletes a single Partial record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Partial) DeleteG ¶
DeleteG deletes a single Partial record. DeleteG will match against the primary key column to find the record to delete.
func (*Partial) Insert ¶
func (o *Partial) 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 (*Partial) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Partial) Update ¶
func (o *Partial) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Partial. 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 (*Partial) UpdateG ¶
UpdateG a single Partial record using the global executor. See Update for more documentation.
func (*Partial) Upsert ¶
func (o *Partial) 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 PartialHook ¶
PartialHook is the signature for custom Partial hook methods
type PartialSlice ¶
type PartialSlice []*Partial
PartialSlice is an alias for a slice of pointers to Partial. This should almost always be used instead of []Partial.
func (PartialSlice) DeleteAll ¶
func (o PartialSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (PartialSlice) DeleteAllG ¶
func (o PartialSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*PartialSlice) ReloadAll ¶
func (o *PartialSlice) 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 (*PartialSlice) ReloadAllG ¶
func (o *PartialSlice) 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 (PartialSlice) UpdateAll ¶
func (o PartialSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (PartialSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ProblemCategory ¶
type ProblemCategory struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` ParentID null.Int `boil:"parent_id" json:"parent_id,omitempty" toml:"parent_id" yaml:"parent_id,omitempty"` R *problemCategoryR `boil:"-" json:"-" toml:"-" yaml:"-"` L problemCategoryL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ProblemCategory is an object representing the database table.
func FindProblemCategory ¶
func FindProblemCategory(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*ProblemCategory, error)
FindProblemCategory retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindProblemCategoryG ¶
func FindProblemCategoryG(ctx context.Context, iD int, selectCols ...string) (*ProblemCategory, error)
FindProblemCategoryG retrieves a single record by ID.
func (*ProblemCategory) AddCategoryProblemRels ¶
func (o *ProblemCategory) AddCategoryProblemRels(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProblemRel) error
AddCategoryProblemRels adds the given related objects to the existing relationships of the problem_category, optionally inserting them as new records. Appends related to o.R.CategoryProblemRels. Sets related.R.Category appropriately.
func (*ProblemCategory) AddCategoryProblemRelsG ¶
func (o *ProblemCategory) AddCategoryProblemRelsG(ctx context.Context, insert bool, related ...*ProblemRel) error
AddCategoryProblemRelsG adds the given related objects to the existing relationships of the problem_category, optionally inserting them as new records. Appends related to o.R.CategoryProblemRels. Sets related.R.Category appropriately. Uses the global database handle.
func (*ProblemCategory) AddParentProblemCategories ¶
func (o *ProblemCategory) AddParentProblemCategories(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProblemCategory) error
AddParentProblemCategories adds the given related objects to the existing relationships of the problem_category, optionally inserting them as new records. Appends related to o.R.ParentProblemCategories. Sets related.R.Parent appropriately.
func (*ProblemCategory) AddParentProblemCategoriesG ¶
func (o *ProblemCategory) AddParentProblemCategoriesG(ctx context.Context, insert bool, related ...*ProblemCategory) error
AddParentProblemCategoriesG adds the given related objects to the existing relationships of the problem_category, optionally inserting them as new records. Appends related to o.R.ParentProblemCategories. Sets related.R.Parent appropriately. Uses the global database handle.
func (*ProblemCategory) CategoryProblemRels ¶
func (o *ProblemCategory) CategoryProblemRels(mods ...qm.QueryMod) problemRelQuery
CategoryProblemRels retrieves all the problem_rel's ProblemRels with an executor via category_id column.
func (*ProblemCategory) Delete ¶
func (o *ProblemCategory) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ProblemCategory record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ProblemCategory) DeleteG ¶
func (o *ProblemCategory) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ProblemCategory record. DeleteG will match against the primary key column to find the record to delete.
func (*ProblemCategory) Exists ¶
func (o *ProblemCategory) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ProblemCategory row exists.
func (*ProblemCategory) Insert ¶
func (o *ProblemCategory) 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 (*ProblemCategory) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ProblemCategory) Parent ¶
func (o *ProblemCategory) Parent(mods ...qm.QueryMod) problemCategoryQuery
Parent pointed to by the foreign key.
func (*ProblemCategory) ParentProblemCategories ¶
func (o *ProblemCategory) ParentProblemCategories(mods ...qm.QueryMod) problemCategoryQuery
ParentProblemCategories retrieves all the problem_category's ProblemCategories with an executor via parent_id column.
func (*ProblemCategory) Reload ¶
func (o *ProblemCategory) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ProblemCategory) ReloadG ¶
func (o *ProblemCategory) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ProblemCategory) RemoveCategoryProblemRels ¶
func (o *ProblemCategory) RemoveCategoryProblemRels(ctx context.Context, exec boil.ContextExecutor, related ...*ProblemRel) error
RemoveCategoryProblemRels relationships from objects passed in. Removes related items from R.CategoryProblemRels (uses pointer comparison, removal does not keep order) Sets related.R.Category.
func (*ProblemCategory) RemoveCategoryProblemRelsG ¶
func (o *ProblemCategory) RemoveCategoryProblemRelsG(ctx context.Context, related ...*ProblemRel) error
RemoveCategoryProblemRelsG relationships from objects passed in. Removes related items from R.CategoryProblemRels (uses pointer comparison, removal does not keep order) Sets related.R.Category. Uses the global database handle.
func (*ProblemCategory) RemoveParent ¶
func (o *ProblemCategory) RemoveParent(ctx context.Context, exec boil.ContextExecutor, related *ProblemCategory) error
RemoveParent relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct.
func (*ProblemCategory) RemoveParentG ¶
func (o *ProblemCategory) RemoveParentG(ctx context.Context, related *ProblemCategory) error
RemoveParentG relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct. Uses the global database handle.
func (*ProblemCategory) RemoveParentProblemCategories ¶
func (o *ProblemCategory) RemoveParentProblemCategories(ctx context.Context, exec boil.ContextExecutor, related ...*ProblemCategory) error
RemoveParentProblemCategories relationships from objects passed in. Removes related items from R.ParentProblemCategories (uses pointer comparison, removal does not keep order) Sets related.R.Parent.
func (*ProblemCategory) RemoveParentProblemCategoriesG ¶
func (o *ProblemCategory) RemoveParentProblemCategoriesG(ctx context.Context, related ...*ProblemCategory) error
RemoveParentProblemCategoriesG relationships from objects passed in. Removes related items from R.ParentProblemCategories (uses pointer comparison, removal does not keep order) Sets related.R.Parent. Uses the global database handle.
func (*ProblemCategory) SetCategoryProblemRels ¶
func (o *ProblemCategory) SetCategoryProblemRels(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProblemRel) error
SetCategoryProblemRels removes all previously related items of the problem_category replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Category's CategoryProblemRels accordingly. Replaces o.R.CategoryProblemRels with related. Sets related.R.Category's CategoryProblemRels accordingly.
func (*ProblemCategory) SetCategoryProblemRelsG ¶
func (o *ProblemCategory) SetCategoryProblemRelsG(ctx context.Context, insert bool, related ...*ProblemRel) error
SetCategoryProblemRelsG removes all previously related items of the problem_category replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Category's CategoryProblemRels accordingly. Replaces o.R.CategoryProblemRels with related. Sets related.R.Category's CategoryProblemRels accordingly. Uses the global database handle.
func (*ProblemCategory) SetParent ¶
func (o *ProblemCategory) SetParent(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ProblemCategory) error
SetParent of the problemCategory to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentProblemCategories.
func (*ProblemCategory) SetParentG ¶
func (o *ProblemCategory) SetParentG(ctx context.Context, insert bool, related *ProblemCategory) error
SetParentG of the problemCategory to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentProblemCategories. Uses the global database handle.
func (*ProblemCategory) SetParentProblemCategories ¶
func (o *ProblemCategory) SetParentProblemCategories(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProblemCategory) error
SetParentProblemCategories removes all previously related items of the problem_category replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentProblemCategories accordingly. Replaces o.R.ParentProblemCategories with related. Sets related.R.Parent's ParentProblemCategories accordingly.
func (*ProblemCategory) SetParentProblemCategoriesG ¶
func (o *ProblemCategory) SetParentProblemCategoriesG(ctx context.Context, insert bool, related ...*ProblemCategory) error
SetParentProblemCategoriesG removes all previously related items of the problem_category replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentProblemCategories accordingly. Replaces o.R.ParentProblemCategories with related. Sets related.R.Parent's ParentProblemCategories accordingly. Uses the global database handle.
func (*ProblemCategory) Update ¶
func (o *ProblemCategory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ProblemCategory. 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 (*ProblemCategory) UpdateG ¶
UpdateG a single ProblemCategory record using the global executor. See Update for more documentation.
func (*ProblemCategory) Upsert ¶
func (o *ProblemCategory) 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 ProblemCategoryHook ¶
type ProblemCategoryHook func(context.Context, boil.ContextExecutor, *ProblemCategory) error
ProblemCategoryHook is the signature for custom ProblemCategory hook methods
type ProblemCategorySlice ¶
type ProblemCategorySlice []*ProblemCategory
ProblemCategorySlice is an alias for a slice of pointers to ProblemCategory. This should almost always be used instead of []ProblemCategory.
func (ProblemCategorySlice) DeleteAll ¶
func (o ProblemCategorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ProblemCategorySlice) DeleteAllG ¶
func (o ProblemCategorySlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ProblemCategorySlice) ReloadAll ¶
func (o *ProblemCategorySlice) 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 (*ProblemCategorySlice) ReloadAllG ¶
func (o *ProblemCategorySlice) 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 (ProblemCategorySlice) UpdateAll ¶
func (o ProblemCategorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ProblemCategorySlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ProblemRel ¶
type ProblemRel struct { Problemset string `boil:"problemset" json:"problemset" toml:"problemset" yaml:"problemset"` Problem string `boil:"problem" json:"problem" toml:"problem" yaml:"problem"` ID int `boil:"id" json:"id" toml:"id" yaml:"id"` CategoryID null.Int `boil:"category_id" json:"category_id,omitempty" toml:"category_id" yaml:"category_id,omitempty"` SolverCount int `boil:"solver_count" json:"solver_count" toml:"solver_count" yaml:"solver_count"` R *problemRelR `boil:"-" json:"-" toml:"-" yaml:"-"` L problemRelL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ProblemRel is an object representing the database table.
func FindProblemRel ¶
func FindProblemRel(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*ProblemRel, error)
FindProblemRel retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindProblemRelG ¶
FindProblemRelG retrieves a single record by ID.
func (*ProblemRel) AddProblemProblemTags ¶
func (o *ProblemRel) AddProblemProblemTags(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProblemTag) error
AddProblemProblemTags adds the given related objects to the existing relationships of the problem_rel, optionally inserting them as new records. Appends related to o.R.ProblemProblemTags. Sets related.R.Problem appropriately.
func (*ProblemRel) AddProblemProblemTagsG ¶
func (o *ProblemRel) AddProblemProblemTagsG(ctx context.Context, insert bool, related ...*ProblemTag) error
AddProblemProblemTagsG adds the given related objects to the existing relationships of the problem_rel, optionally inserting them as new records. Appends related to o.R.ProblemProblemTags. Sets related.R.Problem appropriately. Uses the global database handle.
func (*ProblemRel) AddProblemSubmissions ¶
func (o *ProblemRel) AddProblemSubmissions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Submission) error
AddProblemSubmissions adds the given related objects to the existing relationships of the problem_rel, optionally inserting them as new records. Appends related to o.R.ProblemSubmissions. Sets related.R.Problem appropriately.
func (*ProblemRel) AddProblemSubmissionsG ¶
func (o *ProblemRel) AddProblemSubmissionsG(ctx context.Context, insert bool, related ...*Submission) error
AddProblemSubmissionsG adds the given related objects to the existing relationships of the problem_rel, optionally inserting them as new records. Appends related to o.R.ProblemSubmissions. Sets related.R.Problem appropriately. Uses the global database handle.
func (*ProblemRel) Category ¶
func (o *ProblemRel) Category(mods ...qm.QueryMod) problemCategoryQuery
Category pointed to by the foreign key.
func (*ProblemRel) Delete ¶
func (o *ProblemRel) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ProblemRel record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ProblemRel) DeleteG ¶
func (o *ProblemRel) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ProblemRel record. DeleteG will match against the primary key column to find the record to delete.
func (*ProblemRel) Exists ¶
func (o *ProblemRel) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ProblemRel row exists.
func (*ProblemRel) Insert ¶
func (o *ProblemRel) 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 (*ProblemRel) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ProblemRel) ProblemProblemTags ¶
func (o *ProblemRel) ProblemProblemTags(mods ...qm.QueryMod) problemTagQuery
ProblemProblemTags retrieves all the problem_tag's ProblemTags with an executor via problem_id column.
func (*ProblemRel) ProblemSubmissions ¶
func (o *ProblemRel) ProblemSubmissions(mods ...qm.QueryMod) submissionQuery
ProblemSubmissions retrieves all the submission's Submissions with an executor via problem_id column.
func (*ProblemRel) Reload ¶
func (o *ProblemRel) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ProblemRel) ReloadG ¶
func (o *ProblemRel) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ProblemRel) RemoveCategory ¶
func (o *ProblemRel) RemoveCategory(ctx context.Context, exec boil.ContextExecutor, related *ProblemCategory) error
RemoveCategory relationship. Sets o.R.Category to nil. Removes o from all passed in related items' relationships struct.
func (*ProblemRel) RemoveCategoryG ¶
func (o *ProblemRel) RemoveCategoryG(ctx context.Context, related *ProblemCategory) error
RemoveCategoryG relationship. Sets o.R.Category to nil. Removes o from all passed in related items' relationships struct. Uses the global database handle.
func (*ProblemRel) SetCategory ¶
func (o *ProblemRel) SetCategory(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ProblemCategory) error
SetCategory of the problemRel to the related item. Sets o.R.Category to related. Adds o to related.R.CategoryProblemRels.
func (*ProblemRel) SetCategoryG ¶
func (o *ProblemRel) SetCategoryG(ctx context.Context, insert bool, related *ProblemCategory) error
SetCategoryG of the problemRel to the related item. Sets o.R.Category to related. Adds o to related.R.CategoryProblemRels. Uses the global database handle.
func (*ProblemRel) Update ¶
func (o *ProblemRel) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ProblemRel. 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 (*ProblemRel) UpdateG ¶
UpdateG a single ProblemRel record using the global executor. See Update for more documentation.
func (*ProblemRel) Upsert ¶
func (o *ProblemRel) 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 ProblemRelHook ¶
type ProblemRelHook func(context.Context, boil.ContextExecutor, *ProblemRel) error
ProblemRelHook is the signature for custom ProblemRel hook methods
type ProblemRelSlice ¶
type ProblemRelSlice []*ProblemRel
ProblemRelSlice is an alias for a slice of pointers to ProblemRel. This should almost always be used instead of []ProblemRel.
func (ProblemRelSlice) DeleteAll ¶
func (o ProblemRelSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ProblemRelSlice) DeleteAllG ¶
func (o ProblemRelSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ProblemRelSlice) ReloadAll ¶
func (o *ProblemRelSlice) 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 (*ProblemRelSlice) ReloadAllG ¶
func (o *ProblemRelSlice) 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 (ProblemRelSlice) UpdateAll ¶
func (o ProblemRelSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ProblemRelSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type ProblemTag ¶
type ProblemTag struct { ProblemID int `boil:"problem_id" json:"problem_id" toml:"problem_id" yaml:"problem_id"` TagID int `boil:"tag_id" json:"tag_id" toml:"tag_id" yaml:"tag_id"` UserID int `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Added time.Time `boil:"added" json:"added" toml:"added" yaml:"added"` R *problemTagR `boil:"-" json:"-" toml:"-" yaml:"-"` L problemTagL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ProblemTag is an object representing the database table.
func FindProblemTag ¶
func FindProblemTag(ctx context.Context, exec boil.ContextExecutor, problemID int, tagID int, selectCols ...string) (*ProblemTag, error)
FindProblemTag retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindProblemTagG ¶
func FindProblemTagG(ctx context.Context, problemID int, tagID int, selectCols ...string) (*ProblemTag, error)
FindProblemTagG retrieves a single record by ID.
func (*ProblemTag) Delete ¶
func (o *ProblemTag) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ProblemTag record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ProblemTag) DeleteG ¶
func (o *ProblemTag) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single ProblemTag record. DeleteG will match against the primary key column to find the record to delete.
func (*ProblemTag) Exists ¶
func (o *ProblemTag) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the ProblemTag row exists.
func (*ProblemTag) Insert ¶
func (o *ProblemTag) 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 (*ProblemTag) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*ProblemTag) Problem ¶
func (o *ProblemTag) Problem(mods ...qm.QueryMod) problemRelQuery
Problem pointed to by the foreign key.
func (*ProblemTag) Reload ¶
func (o *ProblemTag) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ProblemTag) ReloadG ¶
func (o *ProblemTag) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*ProblemTag) SetProblem ¶
func (o *ProblemTag) SetProblem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ProblemRel) error
SetProblem of the problemTag to the related item. Sets o.R.Problem to related. Adds o to related.R.ProblemProblemTags.
func (*ProblemTag) SetProblemG ¶
func (o *ProblemTag) SetProblemG(ctx context.Context, insert bool, related *ProblemRel) error
SetProblemG of the problemTag to the related item. Sets o.R.Problem to related. Adds o to related.R.ProblemProblemTags. Uses the global database handle.
func (*ProblemTag) SetTag ¶
func (o *ProblemTag) SetTag(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Tag) error
SetTag of the problemTag to the related item. Sets o.R.Tag to related. Adds o to related.R.ProblemTags.
func (*ProblemTag) SetTagG ¶
SetTagG of the problemTag to the related item. Sets o.R.Tag to related. Adds o to related.R.ProblemTags. Uses the global database handle.
func (*ProblemTag) SetUser ¶
func (o *ProblemTag) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the problemTag to the related item. Sets o.R.User to related. Adds o to related.R.ProblemTags.
func (*ProblemTag) SetUserG ¶
SetUserG of the problemTag to the related item. Sets o.R.User to related. Adds o to related.R.ProblemTags. Uses the global database handle.
func (*ProblemTag) Tag ¶
func (o *ProblemTag) Tag(mods ...qm.QueryMod) tagQuery
Tag pointed to by the foreign key.
func (*ProblemTag) Update ¶
func (o *ProblemTag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ProblemTag. 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 (*ProblemTag) UpdateG ¶
UpdateG a single ProblemTag record using the global executor. See Update for more documentation.
func (*ProblemTag) Upsert ¶
func (o *ProblemTag) 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 (*ProblemTag) UpsertG ¶
func (o *ProblemTag) 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.
func (*ProblemTag) User ¶
func (o *ProblemTag) User(mods ...qm.QueryMod) userQuery
User pointed to by the foreign key.
type ProblemTagHook ¶
type ProblemTagHook func(context.Context, boil.ContextExecutor, *ProblemTag) error
ProblemTagHook is the signature for custom ProblemTag hook methods
type ProblemTagSlice ¶
type ProblemTagSlice []*ProblemTag
ProblemTagSlice is an alias for a slice of pointers to ProblemTag. This should almost always be used instead of []ProblemTag.
func (ProblemTagSlice) DeleteAll ¶
func (o ProblemTagSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (ProblemTagSlice) DeleteAllG ¶
func (o ProblemTagSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*ProblemTagSlice) ReloadAll ¶
func (o *ProblemTagSlice) 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 (*ProblemTagSlice) ReloadAllG ¶
func (o *ProblemTagSlice) 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 (ProblemTagSlice) UpdateAll ¶
func (o ProblemTagSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (ProblemTagSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type Submission ¶
type Submission struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Status string `boil:"status" json:"status" toml:"status" yaml:"status"` Ontest null.String `boil:"ontest" json:"ontest,omitempty" toml:"ontest" yaml:"ontest,omitempty"` UserID int `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Language string `boil:"language" json:"language" toml:"language" yaml:"language"` Private bool `boil:"private" json:"private" toml:"private" yaml:"private"` Verdict int `boil:"verdict" json:"verdict" toml:"verdict" yaml:"verdict"` Source []byte `boil:"source" json:"source" toml:"source" yaml:"source"` Started bool `boil:"started" json:"started" toml:"started" yaml:"started"` Submitted time.Time `boil:"submitted" json:"submitted" toml:"submitted" yaml:"submitted"` Judged null.Time `boil:"judged" json:"judged,omitempty" toml:"judged" yaml:"judged,omitempty"` Score null.Float32 `boil:"score" json:"score,omitempty" toml:"score" yaml:"score,omitempty"` ProblemID int `boil:"problem_id" json:"problem_id" toml:"problem_id" yaml:"problem_id"` R *submissionR `boil:"-" json:"-" toml:"-" yaml:"-"` L submissionL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Submission is an object representing the database table.
func FindSubmission ¶
func FindSubmission(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Submission, error)
FindSubmission retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindSubmissionG ¶
FindSubmissionG retrieves a single record by ID.
func (*Submission) Delete ¶
func (o *Submission) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single Submission record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Submission) DeleteG ¶
func (o *Submission) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single Submission record. DeleteG will match against the primary key column to find the record to delete.
func (*Submission) Exists ¶
func (o *Submission) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the Submission row exists.
func (*Submission) Insert ¶
func (o *Submission) 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 (*Submission) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*Submission) Problem ¶
func (o *Submission) Problem(mods ...qm.QueryMod) problemRelQuery
Problem pointed to by the foreign key.
func (*Submission) Reload ¶
func (o *Submission) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*Submission) ReloadG ¶
func (o *Submission) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*Submission) SetProblem ¶
func (o *Submission) SetProblem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ProblemRel) error
SetProblem of the submission to the related item. Sets o.R.Problem to related. Adds o to related.R.ProblemSubmissions.
func (*Submission) SetProblemG ¶
func (o *Submission) SetProblemG(ctx context.Context, insert bool, related *ProblemRel) error
SetProblemG of the submission to the related item. Sets o.R.Problem to related. Adds o to related.R.ProblemSubmissions. Uses the global database handle.
func (*Submission) SetUser ¶
func (o *Submission) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the submission to the related item. Sets o.R.User to related. Adds o to related.R.Submissions.
func (*Submission) SetUserG ¶
SetUserG of the submission to the related item. Sets o.R.User to related. Adds o to related.R.Submissions. Uses the global database handle.
func (*Submission) Update ¶
func (o *Submission) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Submission. 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 (*Submission) UpdateG ¶
UpdateG a single Submission record using the global executor. See Update for more documentation.
func (*Submission) Upsert ¶
func (o *Submission) 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 (*Submission) UpsertG ¶
func (o *Submission) 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.
func (*Submission) User ¶
func (o *Submission) User(mods ...qm.QueryMod) userQuery
User pointed to by the foreign key.
type SubmissionHook ¶
type SubmissionHook func(context.Context, boil.ContextExecutor, *Submission) error
SubmissionHook is the signature for custom Submission hook methods
type SubmissionSlice ¶
type SubmissionSlice []*Submission
SubmissionSlice is an alias for a slice of pointers to Submission. This should almost always be used instead of []Submission.
func (SubmissionSlice) DeleteAll ¶
func (o SubmissionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (SubmissionSlice) DeleteAllG ¶
func (o SubmissionSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*SubmissionSlice) ReloadAll ¶
func (o *SubmissionSlice) 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 (*SubmissionSlice) ReloadAllG ¶
func (o *SubmissionSlice) 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 (SubmissionSlice) UpdateAll ¶
func (o SubmissionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (SubmissionSlice) UpdateAllG ¶
UpdateAllG updates all rows with the specified column values.
type Tag ¶
type Tag struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` R *tagR `boil:"-" json:"-" toml:"-" yaml:"-"` L tagL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Tag is an object representing the database table.
func FindTag ¶
func FindTag(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Tag, error)
FindTag retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Tag) AddProblemTags ¶
func (o *Tag) AddProblemTags(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProblemTag) error
AddProblemTags adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.ProblemTags. Sets related.R.Tag appropriately.
func (*Tag) AddProblemTagsG ¶
AddProblemTagsG adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.ProblemTags. Sets related.R.Tag appropriately. Uses the global database handle.
func (*Tag) Delete ¶
Delete deletes a single Tag record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Tag) DeleteG ¶
DeleteG deletes a single Tag record. DeleteG will match against the primary key column to find the record to delete.
func (*Tag) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Tag) ProblemTags ¶
ProblemTags retrieves all the problem_tag's ProblemTags with an executor.
func (*Tag) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Tag) Update ¶
func (o *Tag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Tag. 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 (*Tag) UpdateG ¶
UpdateG a single Tag record using the global executor. See Update for more documentation.
func (*Tag) Upsert ¶
func (o *Tag) 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 TagSlice ¶
type TagSlice []*Tag
TagSlice is an alias for a slice of pointers to Tag. This should almost always be used instead of []Tag.
func (TagSlice) DeleteAllG ¶
DeleteAllG deletes all rows in the slice.
func (*TagSlice) ReloadAll ¶
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*TagSlice) ReloadAllG ¶
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
type User ¶
type User struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Password string `boil:"password" json:"password" toml:"password" yaml:"password"` Email string `boil:"email" json:"email" toml:"email" yaml:"email"` ActivationKey null.String `boil:"activation_key" json:"activation_key,omitempty" toml:"activation_key" yaml:"activation_key,omitempty"` Role string `boil:"role" json:"role" toml:"role" yaml:"role"` Points null.Float32 `boil:"points" json:"points,omitempty" toml:"points" yaml:"points,omitempty"` ShowUnsolvedTags bool `boil:"show_unsolved_tags" json:"show_unsolved_tags" toml:"show_unsolved_tags" yaml:"show_unsolved_tags"` Registered null.Time `boil:"registered" json:"registered,omitempty" toml:"registered" yaml:"registered,omitempty"` R *userR `boil:"-" json:"-" toml:"-" yaml:"-"` L userL `boil:"-" json:"-" toml:"-" yaml:"-"` }
User is an object representing the database table.
func FindUser ¶
func FindUser(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*User, error)
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*User) AddProblemTags ¶
func (o *User) AddProblemTags(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*ProblemTag) error
AddProblemTags adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.ProblemTags. Sets related.R.User appropriately.
func (*User) AddProblemTagsG ¶
AddProblemTagsG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.ProblemTags. Sets related.R.User appropriately. Uses the global database handle.
func (*User) AddSubmissions ¶
func (o *User) AddSubmissions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Submission) error
AddSubmissions adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Submissions. Sets related.R.User appropriately.
func (*User) AddSubmissionsG ¶
AddSubmissionsG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Submissions. Sets related.R.User appropriately. Uses the global database handle.
func (*User) Delete ¶
Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.
func (*User) DeleteG ¶
DeleteG deletes a single User record. DeleteG will match against the primary key column to find the record to delete.
func (*User) ForgottenPasswordKey ¶
ForgottenPasswordKey pointed to by the foreign key.
func (*User) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*User) ProblemTags ¶
ProblemTags retrieves all the problem_tag's ProblemTags with an executor.
func (*User) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*User) SetForgottenPasswordKey ¶
func (o *User) SetForgottenPasswordKey(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ForgottenPasswordKey) error
SetForgottenPasswordKey of the user to the related item. Sets o.R.ForgottenPasswordKey to related. Adds o to related.R.User.
func (*User) SetForgottenPasswordKeyG ¶
func (o *User) SetForgottenPasswordKeyG(ctx context.Context, insert bool, related *ForgottenPasswordKey) error
SetForgottenPasswordKeyG of the user to the related item. Sets o.R.ForgottenPasswordKey to related. Adds o to related.R.User. Uses the global database handle.
func (*User) Submissions ¶
Submissions retrieves all the submission's Submissions with an executor.
func (*User) Update ¶
func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the User. 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 (*User) UpdateG ¶
UpdateG a single User record using the global executor. See Update for more documentation.
func (*User) Upsert ¶
func (o *User) 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 UserSlice ¶
type UserSlice []*User
UserSlice is an alias for a slice of pointers to User. This should almost always be used instead of []User.
func (UserSlice) DeleteAllG ¶
DeleteAllG deletes all rows in the slice.
func (*UserSlice) ReloadAll ¶
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*UserSlice) ReloadAllG ¶
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.