Documentation ¶
Index ¶
- Constants
- Variables
- func AddArticleCommentHook(hookPoint boil.HookPoint, articleCommentHook ArticleCommentHook)
- func AddArticleHook(hookPoint boil.HookPoint, articleHook ArticleHook)
- func AddContestHook(hookPoint boil.HookPoint, contestHook ContestHook)
- func AddContestPlayerHook(hookPoint boil.HookPoint, contestPlayerHook ContestPlayerHook)
- func AddContestRanklistHook(hookPoint boil.HookPoint, contestRanklistHook ContestRanklistHook)
- func AddFileHook(hookPoint boil.HookPoint, fileHook FileHook)
- func AddFormattedCodeHook(hookPoint boil.HookPoint, formattedCodeHook FormattedCodeHook)
- func AddJudgeStateHook(hookPoint boil.HookPoint, judgeStateHook JudgeStateHook)
- func AddProblemHook(hookPoint boil.HookPoint, problemHook ProblemHook)
- func AddProblemTagHook(hookPoint boil.HookPoint, problemTagHook ProblemTagHook)
- func AddProblemTagMapHook(hookPoint boil.HookPoint, problemTagMapHook ProblemTagMapHook)
- func AddRatingCalculationHook(hookPoint boil.HookPoint, ratingCalculationHook RatingCalculationHook)
- func AddRatingHistoryHook(hookPoint boil.HookPoint, ratingHistoryHook RatingHistoryHook)
- func AddSubmissionStatisticHook(hookPoint boil.HookPoint, submissionStatisticHook SubmissionStatisticHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func AddUserPrivilegeHook(hookPoint boil.HookPoint, userPrivilegeHook UserPrivilegeHook)
- func ArticleCommentExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func ArticleComments(mods ...qm.QueryMod) articleCommentQuery
- func ArticleExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func Articles(mods ...qm.QueryMod) articleQuery
- func ContestExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func ContestPlayerExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func ContestPlayers(mods ...qm.QueryMod) contestPlayerQuery
- func ContestRanklistExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func ContestRanklists(mods ...qm.QueryMod) contestRanklistQuery
- func Contests(mods ...qm.QueryMod) contestQuery
- func FileExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func Files(mods ...qm.QueryMod) fileQuery
- func FormattedCodeExists(ctx context.Context, exec boil.ContextExecutor, key string) (bool, error)
- func FormattedCodes(mods ...qm.QueryMod) formattedCodeQuery
- func JudgeStateExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func JudgeStates(mods ...qm.QueryMod) judgeStateQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func ProblemExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func ProblemTagExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func ProblemTagMapExists(ctx context.Context, exec boil.ContextExecutor, problemID int, tagID int) (bool, error)
- func ProblemTagMaps(mods ...qm.QueryMod) problemTagMapQuery
- func ProblemTags(mods ...qm.QueryMod) problemTagQuery
- func Problems(mods ...qm.QueryMod) problemQuery
- func RatingCalculationExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func RatingCalculations(mods ...qm.QueryMod) ratingCalculationQuery
- func RatingHistories(mods ...qm.QueryMod) ratingHistoryQuery
- func RatingHistoryExists(ctx context.Context, exec boil.ContextExecutor, ratingCalculationID int, ...) (bool, error)
- func SubmissionStatisticExists(ctx context.Context, exec boil.ContextExecutor, problemID int, userID int, ...) (bool, error)
- func SubmissionStatistics(mods ...qm.QueryMod) submissionStatisticQuery
- func UserExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func UserPrivilegeExists(ctx context.Context, exec boil.ContextExecutor, userID int, privilege string) (bool, error)
- func UserPrivileges(mods ...qm.QueryMod) userPrivilegeQuery
- func Users(mods ...qm.QueryMod) userQuery
- type Article
- func (o *Article) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Article) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Article) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Article) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Article) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ArticleComment
- func (o *ArticleComment) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ArticleComment) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ArticleComment) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ArticleComment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ArticleComment) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ArticleCommentHook
- type ArticleCommentSlice
- func (o ArticleCommentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ArticleCommentSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ArticleCommentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type ArticleHook
- type ArticleSlice
- type Contest
- func (o *Contest) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Contest) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Contest) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Contest) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Contest) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ContestHook
- type ContestPlayer
- func (o *ContestPlayer) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ContestPlayer) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ContestPlayer) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ContestPlayer) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ContestPlayer) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ContestPlayerHook
- type ContestPlayerSlice
- func (o ContestPlayerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ContestPlayerSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ContestPlayerSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type ContestRanklist
- func (o *ContestRanklist) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ContestRanklist) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ContestRanklist) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ContestRanklist) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ContestRanklist) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ContestRanklistHook
- type ContestRanklistSlice
- func (o ContestRanklistSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ContestRanklistSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ContestRanklistSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type ContestSlice
- type File
- func (o *File) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *File) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *File) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *File) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *File) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type FileHook
- type FileSlice
- type FormattedCode
- func (o *FormattedCode) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *FormattedCode) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *FormattedCode) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *FormattedCode) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *FormattedCode) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type FormattedCodeHook
- type FormattedCodeSlice
- func (o FormattedCodeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *FormattedCodeSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o FormattedCodeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type JudgeState
- func (o *JudgeState) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *JudgeState) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *JudgeState) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *JudgeState) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *JudgeState) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type JudgeStateHook
- type JudgeStateSlice
- type M
- type Problem
- func (o *Problem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Problem) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Problem) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Problem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Problem) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ProblemHook
- type ProblemSlice
- type ProblemTag
- func (o *ProblemTag) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ProblemTag) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ProblemTag) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ProblemTag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ProblemTag) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ProblemTagHook
- type ProblemTagMap
- func (o *ProblemTagMap) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ProblemTagMap) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *ProblemTagMap) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *ProblemTagMap) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *ProblemTagMap) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ProblemTagMapHook
- type ProblemTagMapSlice
- func (o ProblemTagMapSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *ProblemTagMapSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o ProblemTagMapSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type ProblemTagSlice
- type RatingCalculation
- func (o *RatingCalculation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RatingCalculation) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *RatingCalculation) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RatingCalculation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *RatingCalculation) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type RatingCalculationHook
- type RatingCalculationSlice
- func (o RatingCalculationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RatingCalculationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o RatingCalculationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type RatingHistory
- func (o *RatingHistory) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RatingHistory) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *RatingHistory) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RatingHistory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *RatingHistory) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type RatingHistoryHook
- type RatingHistorySlice
- func (o RatingHistorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RatingHistorySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o RatingHistorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type SubmissionStatistic
- func (o *SubmissionStatistic) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SubmissionStatistic) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *SubmissionStatistic) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *SubmissionStatistic) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *SubmissionStatistic) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type SubmissionStatisticHook
- type SubmissionStatisticSlice
- func (o SubmissionStatisticSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SubmissionStatisticSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o SubmissionStatisticSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type User
- func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type UserHook
- type UserPrivilege
- func (o *UserPrivilege) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserPrivilege) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *UserPrivilege) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserPrivilege) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *UserPrivilege) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type UserPrivilegeHook
- type UserPrivilegeSlice
- func (o UserPrivilegeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserPrivilegeSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o UserPrivilegeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type UserSlice
Constants ¶
const ( ContestTypeNoi = "noi" ContestTypeIoi = "ioi" ContestTypeAcm = "acm" )
Enum values for contest.type
const ( SubmissionStatisticsTypeFastest = "fastest" SubmissionStatisticsTypeSlowest = "slowest" SubmissionStatisticsTypeShortest = "shortest" SubmissionStatisticsTypeLongest = "longest" SubmissionStatisticsTypeMin = "min" SubmissionStatisticsTypeMax = "max" SubmissionStatisticsTypeEarliest = "earliest" )
Enum values for judge_state.status are not proper Go identifiers, cannot emit constants Enum values for problem.type are not proper Go identifiers, cannot emit constants Enum values for submission_statistics.type
Variables ¶
var ArticleColumns = struct { ID string Title string Content string UserID string ProblemID string PublicTime string UpdateTime string SortTime string CommentsNum string AllowComment string IsNotice string }{ ID: "id", Title: "title", Content: "content", UserID: "user_id", ProblemID: "problem_id", PublicTime: "public_time", UpdateTime: "update_time", SortTime: "sort_time", CommentsNum: "comments_num", AllowComment: "allow_comment", IsNotice: "is_notice", }
var ArticleCommentColumns = struct { ID string Content string ArticleID string UserID string PublicTime string }{ ID: "id", Content: "content", ArticleID: "article_id", UserID: "user_id", PublicTime: "public_time", }
var ArticleCommentRels = struct {
}{}
ArticleCommentRels is where relationship names are stored.
var ArticleCommentWhere = struct { ID whereHelperint Content whereHelpernull_String ArticleID whereHelpernull_Int UserID whereHelpernull_Int PublicTime whereHelpernull_Int }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Content: whereHelpernull_String{/* contains filtered or unexported fields */}, ArticleID: whereHelpernull_Int{/* contains filtered or unexported fields */}, UserID: whereHelpernull_Int{/* contains filtered or unexported fields */}, PublicTime: whereHelpernull_Int{/* contains filtered or unexported fields */}, }
var ArticleRels = struct {
}{}
ArticleRels is where relationship names are stored.
var ArticleWhere = struct { ID whereHelperint Title whereHelpernull_String Content whereHelpernull_String UserID whereHelpernull_Int ProblemID whereHelpernull_Int PublicTime whereHelpernull_Int UpdateTime whereHelpernull_Int SortTime whereHelpernull_Int CommentsNum whereHelperint AllowComment whereHelperint8 IsNotice whereHelpernull_Int8 }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Title: whereHelpernull_String{/* contains filtered or unexported fields */}, Content: whereHelpernull_String{/* contains filtered or unexported fields */}, UserID: whereHelpernull_Int{/* contains filtered or unexported fields */}, ProblemID: whereHelpernull_Int{/* contains filtered or unexported fields */}, PublicTime: whereHelpernull_Int{/* contains filtered or unexported fields */}, UpdateTime: whereHelpernull_Int{/* contains filtered or unexported fields */}, SortTime: whereHelpernull_Int{/* contains filtered or unexported fields */}, CommentsNum: whereHelperint{/* contains filtered or unexported fields */}, AllowComment: whereHelperint8{/* contains filtered or unexported fields */}, IsNotice: whereHelpernull_Int8{/* contains filtered or unexported fields */}, }
var ContestColumns = struct { ID string Title string Subtitle string StartTime string EndTime string HolderID string Type string Information string Problems string Admins string RanklistID string IsPublic string HideStatistics string }{ ID: "id", Title: "title", Subtitle: "subtitle", StartTime: "start_time", EndTime: "end_time", HolderID: "holder_id", Type: "type", Information: "information", Problems: "problems", Admins: "admins", RanklistID: "ranklist_id", IsPublic: "is_public", HideStatistics: "hide_statistics", }
var ContestPlayerColumns = struct { ID string ContestID string UserID string Score string ScoreDetails string TimeSpent string }{ ID: "id", ContestID: "contest_id", UserID: "user_id", Score: "score", ScoreDetails: "score_details", TimeSpent: "time_spent", }
var ContestPlayerRels = struct {
}{}
ContestPlayerRels is where relationship names are stored.
var ContestPlayerWhere = struct { ID whereHelperint ContestID whereHelpernull_Int UserID whereHelpernull_Int Score whereHelpernull_Int ScoreDetails whereHelperstring TimeSpent whereHelpernull_Int }{ ID: whereHelperint{/* contains filtered or unexported fields */}, ContestID: whereHelpernull_Int{/* contains filtered or unexported fields */}, UserID: whereHelpernull_Int{/* contains filtered or unexported fields */}, Score: whereHelpernull_Int{/* contains filtered or unexported fields */}, ScoreDetails: whereHelperstring{/* contains filtered or unexported fields */}, TimeSpent: whereHelpernull_Int{/* contains filtered or unexported fields */}, }
var ContestRanklistColumns = struct { ID string RankingParams string Ranklist string }{ ID: "id", RankingParams: "ranking_params", Ranklist: "ranklist", }
var ContestRanklistRels = struct {
}{}
ContestRanklistRels is where relationship names are stored.
var ContestRanklistWhere = struct { ID whereHelperint RankingParams whereHelpernull_String Ranklist whereHelperstring }{ ID: whereHelperint{/* contains filtered or unexported fields */}, RankingParams: whereHelpernull_String{/* contains filtered or unexported fields */}, Ranklist: whereHelperstring{/* contains filtered or unexported fields */}, }
var ContestRels = struct {
}{}
ContestRels is where relationship names are stored.
var ContestWhere = struct { ID whereHelperint Title whereHelpernull_String Subtitle whereHelpernull_String StartTime whereHelpernull_Int EndTime whereHelpernull_Int HolderID whereHelpernull_Int Type whereHelpernull_String Information whereHelpernull_String Problems whereHelpernull_String Admins whereHelpernull_String RanklistID whereHelpernull_Int IsPublic whereHelpernull_Int8 HideStatistics whereHelpernull_Int8 }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Title: whereHelpernull_String{/* contains filtered or unexported fields */}, Subtitle: whereHelpernull_String{/* contains filtered or unexported fields */}, StartTime: whereHelpernull_Int{/* contains filtered or unexported fields */}, EndTime: whereHelpernull_Int{/* contains filtered or unexported fields */}, HolderID: whereHelpernull_Int{/* contains filtered or unexported fields */}, Type: whereHelpernull_String{/* contains filtered or unexported fields */}, Information: whereHelpernull_String{/* contains filtered or unexported fields */}, Problems: whereHelpernull_String{/* contains filtered or unexported fields */}, Admins: whereHelpernull_String{/* contains filtered or unexported fields */}, RanklistID: whereHelpernull_Int{/* contains filtered or unexported fields */}, IsPublic: whereHelpernull_Int8{/* contains filtered or unexported fields */}, HideStatistics: whereHelpernull_Int8{/* contains filtered or unexported fields */}, }
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var FileColumns = struct { ID string Type string MD5 string }{ ID: "id", Type: "type", MD5: "md5", }
var FileRels = struct {
}{}
FileRels is where relationship names are stored.
var FileWhere = struct { ID whereHelperint Type whereHelpernull_String MD5 whereHelpernull_String }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Type: whereHelpernull_String{/* contains filtered or unexported fields */}, MD5: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var FormattedCodeColumns = struct { Key string Code string }{ Key: "key", Code: "code", }
var FormattedCodeRels = struct {
}{}
FormattedCodeRels is where relationship names are stored.
var FormattedCodeWhere = struct { Key whereHelperstring Code whereHelpernull_String }{ Key: whereHelperstring{/* contains filtered or unexported fields */}, Code: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var JudgeStateColumns = struct { ID string Code string Language string Status string TaskID string Score string TotalTime string CodeLength string Pending string MaxMemory string Compilation string Result string UserID string ProblemID string SubmitTime string Type string TypeInfo string IsPublic string }{ ID: "id", Code: "code", Language: "language", Status: "status", TaskID: "task_id", Score: "score", TotalTime: "total_time", CodeLength: "code_length", Pending: "pending", MaxMemory: "max_memory", Compilation: "compilation", Result: "result", UserID: "user_id", ProblemID: "problem_id", SubmitTime: "submit_time", Type: "type", TypeInfo: "type_info", IsPublic: "is_public", }
var JudgeStateRels = struct {
}{}
JudgeStateRels is where relationship names are stored.
var JudgeStateWhere = struct { ID whereHelperint Code whereHelpernull_String Language whereHelpernull_String Status whereHelpernull_String TaskID whereHelpernull_String Score whereHelpernull_Int TotalTime whereHelpernull_Int CodeLength whereHelpernull_Int Pending whereHelpernull_Int8 MaxMemory whereHelpernull_Int Compilation whereHelpernull_String Result whereHelpernull_String UserID whereHelpernull_Int ProblemID whereHelpernull_Int SubmitTime whereHelpernull_Int Type whereHelpernull_Int TypeInfo whereHelpernull_Int IsPublic whereHelpernull_Int8 }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Code: whereHelpernull_String{/* contains filtered or unexported fields */}, Language: whereHelpernull_String{/* contains filtered or unexported fields */}, Status: whereHelpernull_String{/* contains filtered or unexported fields */}, TaskID: whereHelpernull_String{/* contains filtered or unexported fields */}, Score: whereHelpernull_Int{/* contains filtered or unexported fields */}, TotalTime: whereHelpernull_Int{/* contains filtered or unexported fields */}, CodeLength: whereHelpernull_Int{/* contains filtered or unexported fields */}, Pending: whereHelpernull_Int8{/* contains filtered or unexported fields */}, MaxMemory: whereHelpernull_Int{/* contains filtered or unexported fields */}, Compilation: whereHelpernull_String{/* contains filtered or unexported fields */}, Result: whereHelpernull_String{/* contains filtered or unexported fields */}, UserID: whereHelpernull_Int{/* contains filtered or unexported fields */}, ProblemID: whereHelpernull_Int{/* contains filtered or unexported fields */}, SubmitTime: whereHelpernull_Int{/* contains filtered or unexported fields */}, Type: whereHelpernull_Int{/* contains filtered or unexported fields */}, TypeInfo: whereHelpernull_Int{/* contains filtered or unexported fields */}, IsPublic: whereHelpernull_Int8{/* contains filtered or unexported fields */}, }
var ProblemColumns = struct { ID string Title string UserID string PublicizerID string IsAnonymous string Description string InputFormat string OutputFormat string Example string LimitAndHint string TimeLimit string MemoryLimit string AdditionalFileID string AcNum string SubmitNum string IsPublic string FileIo string FileIoInputName string FileIoOutputName string PublicizeTime string Type string Tags string }{ ID: "id", Title: "title", UserID: "user_id", PublicizerID: "publicizer_id", IsAnonymous: "is_anonymous", Description: "description", InputFormat: "input_format", OutputFormat: "output_format", Example: "example", LimitAndHint: "limit_and_hint", TimeLimit: "time_limit", MemoryLimit: "memory_limit", AdditionalFileID: "additional_file_id", AcNum: "ac_num", SubmitNum: "submit_num", IsPublic: "is_public", FileIo: "file_io", FileIoInputName: "file_io_input_name", FileIoOutputName: "file_io_output_name", PublicizeTime: "publicize_time", Type: "type", Tags: "tags", }
var ProblemRels = struct {
}{}
ProblemRels is where relationship names are stored.
var ProblemTagColumns = struct { ID string Name string Color string }{ ID: "id", Name: "name", Color: "color", }
var ProblemTagMapColumns = struct { ProblemID string TagID string }{ ProblemID: "problem_id", TagID: "tag_id", }
var ProblemTagMapRels = struct {
}{}
ProblemTagMapRels is where relationship names are stored.
var ProblemTagMapWhere = struct { ProblemID whereHelperint TagID whereHelperint }{ ProblemID: whereHelperint{/* contains filtered or unexported fields */}, TagID: whereHelperint{/* contains filtered or unexported fields */}, }
var ProblemTagRels = struct {
}{}
ProblemTagRels is where relationship names are stored.
var ProblemTagWhere = struct { ID whereHelperint Name whereHelpernull_String Color whereHelpernull_String }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Name: whereHelpernull_String{/* contains filtered or unexported fields */}, Color: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var ProblemWhere = struct { ID whereHelperint Title whereHelpernull_String UserID whereHelpernull_Int PublicizerID whereHelpernull_Int IsAnonymous whereHelpernull_Int8 Description whereHelpernull_String InputFormat whereHelpernull_String OutputFormat whereHelpernull_String Example whereHelpernull_String LimitAndHint whereHelpernull_String TimeLimit whereHelpernull_Int MemoryLimit whereHelpernull_Int AdditionalFileID whereHelpernull_Int AcNum whereHelpernull_Int SubmitNum whereHelpernull_Int IsPublic whereHelpernull_Int8 FileIo whereHelpernull_Int8 FileIoInputName whereHelpernull_String FileIoOutputName whereHelpernull_String PublicizeTime whereHelpernull_Time Type whereHelpernull_String Tags whereHelpernull_String }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Title: whereHelpernull_String{/* contains filtered or unexported fields */}, UserID: whereHelpernull_Int{/* contains filtered or unexported fields */}, PublicizerID: whereHelpernull_Int{/* contains filtered or unexported fields */}, IsAnonymous: whereHelpernull_Int8{/* contains filtered or unexported fields */}, Description: whereHelpernull_String{/* contains filtered or unexported fields */}, InputFormat: whereHelpernull_String{/* contains filtered or unexported fields */}, OutputFormat: whereHelpernull_String{/* contains filtered or unexported fields */}, Example: whereHelpernull_String{/* contains filtered or unexported fields */}, LimitAndHint: whereHelpernull_String{/* contains filtered or unexported fields */}, TimeLimit: whereHelpernull_Int{/* contains filtered or unexported fields */}, MemoryLimit: whereHelpernull_Int{/* contains filtered or unexported fields */}, AdditionalFileID: whereHelpernull_Int{/* contains filtered or unexported fields */}, AcNum: whereHelpernull_Int{/* contains filtered or unexported fields */}, SubmitNum: whereHelpernull_Int{/* contains filtered or unexported fields */}, IsPublic: whereHelpernull_Int8{/* contains filtered or unexported fields */}, FileIo: whereHelpernull_Int8{/* contains filtered or unexported fields */}, FileIoInputName: whereHelpernull_String{/* contains filtered or unexported fields */}, FileIoOutputName: whereHelpernull_String{/* contains filtered or unexported fields */}, PublicizeTime: whereHelpernull_Time{/* contains filtered or unexported fields */}, Type: whereHelpernull_String{/* contains filtered or unexported fields */}, Tags: whereHelpernull_String{/* contains filtered or unexported fields */}, }
var RatingCalculationColumns = struct { ID string ContestID string }{ ID: "id", ContestID: "contest_id", }
var RatingCalculationRels = struct {
}{}
RatingCalculationRels is where relationship names are stored.
var RatingCalculationWhere = struct { ID whereHelperint ContestID whereHelpernull_Int }{ ID: whereHelperint{/* contains filtered or unexported fields */}, ContestID: whereHelpernull_Int{/* contains filtered or unexported fields */}, }
var RatingHistoryColumns = struct { RatingCalculationID string UserID string RatingAfter string Rank string }{ RatingCalculationID: "rating_calculation_id", UserID: "user_id", RatingAfter: "rating_after", Rank: "rank", }
var RatingHistoryRels = struct {
}{}
RatingHistoryRels is where relationship names are stored.
var RatingHistoryWhere = struct { RatingCalculationID whereHelperint UserID whereHelperint RatingAfter whereHelpernull_Int Rank whereHelpernull_Int }{ RatingCalculationID: whereHelperint{/* contains filtered or unexported fields */}, UserID: whereHelperint{/* contains filtered or unexported fields */}, RatingAfter: whereHelpernull_Int{/* contains filtered or unexported fields */}, Rank: whereHelpernull_Int{/* contains filtered or unexported fields */}, }
var SubmissionStatisticColumns = struct { ProblemID string UserID string Type string Key string SubmissionID string }{ ProblemID: "problem_id", UserID: "user_id", Type: "type", Key: "key", SubmissionID: "submission_id", }
var SubmissionStatisticRels = struct {
}{}
SubmissionStatisticRels is where relationship names are stored.
var SubmissionStatisticWhere = struct { ProblemID whereHelperint UserID whereHelperint Type whereHelperstring Key whereHelperint SubmissionID whereHelperint }{ ProblemID: whereHelperint{/* contains filtered or unexported fields */}, UserID: whereHelperint{/* contains filtered or unexported fields */}, Type: whereHelperstring{/* contains filtered or unexported fields */}, Key: whereHelperint{/* contains filtered or unexported fields */}, SubmissionID: whereHelperint{/* contains filtered or unexported fields */}, }
var TableNames = struct { Article string ArticleComment string Contest string ContestPlayer string ContestRanklist string File string FormattedCode string JudgeState string Problem string ProblemTag string ProblemTagMap string RatingCalculation string RatingHistory string SubmissionStatistics string User string UserPrivilege string }{ Article: "article", ArticleComment: "article_comment", Contest: "contest", ContestPlayer: "contest_player", ContestRanklist: "contest_ranklist", File: "file", FormattedCode: "formatted_code", JudgeState: "judge_state", Problem: "problem", ProblemTag: "problem_tag", ProblemTagMap: "problem_tag_map", RatingCalculation: "rating_calculation", RatingHistory: "rating_history", SubmissionStatistics: "submission_statistics", User: "user", UserPrivilege: "user_privilege", }
var UserColumns = struct { ID string Username string Email string Password string Nickname string Nameplate string Information string AcNum string SubmitNum string IsAdmin string IsShow string PublicEmail string PreferFormattedCode string Sex string Rating string RegisterTime string }{ ID: "id", Username: "username", Email: "email", Password: "password", Nickname: "nickname", Nameplate: "nameplate", Information: "information", AcNum: "ac_num", SubmitNum: "submit_num", IsAdmin: "is_admin", IsShow: "is_show", PublicEmail: "public_email", PreferFormattedCode: "prefer_formatted_code", Sex: "sex", Rating: "rating", RegisterTime: "register_time", }
var UserPrivilegeColumns = struct { UserID string Privilege string }{ UserID: "user_id", Privilege: "privilege", }
var UserPrivilegeRels = struct {
}{}
UserPrivilegeRels is where relationship names are stored.
var UserPrivilegeWhere = struct { UserID whereHelperint Privilege whereHelperstring }{ UserID: whereHelperint{/* contains filtered or unexported fields */}, Privilege: whereHelperstring{/* contains filtered or unexported fields */}, }
var UserRels = struct {
}{}
UserRels is where relationship names are stored.
var UserWhere = struct { ID whereHelperint Username whereHelpernull_String Email whereHelpernull_String Password whereHelpernull_String Nickname whereHelpernull_String Nameplate whereHelpernull_String Information whereHelpernull_String AcNum whereHelpernull_Int SubmitNum whereHelpernull_Int IsAdmin whereHelpernull_Int8 IsShow whereHelpernull_Int8 PublicEmail whereHelpernull_Int8 PreferFormattedCode whereHelpernull_Int8 Sex whereHelpernull_Int Rating whereHelpernull_Int RegisterTime whereHelpernull_Int }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Username: whereHelpernull_String{/* contains filtered or unexported fields */}, Email: whereHelpernull_String{/* contains filtered or unexported fields */}, Password: whereHelpernull_String{/* contains filtered or unexported fields */}, Nickname: whereHelpernull_String{/* contains filtered or unexported fields */}, Nameplate: whereHelpernull_String{/* contains filtered or unexported fields */}, Information: whereHelpernull_String{/* contains filtered or unexported fields */}, AcNum: whereHelpernull_Int{/* contains filtered or unexported fields */}, SubmitNum: whereHelpernull_Int{/* contains filtered or unexported fields */}, IsAdmin: whereHelpernull_Int8{/* contains filtered or unexported fields */}, IsShow: whereHelpernull_Int8{/* contains filtered or unexported fields */}, PublicEmail: whereHelpernull_Int8{/* contains filtered or unexported fields */}, PreferFormattedCode: whereHelpernull_Int8{/* contains filtered or unexported fields */}, Sex: whereHelpernull_Int{/* contains filtered or unexported fields */}, Rating: whereHelpernull_Int{/* contains filtered or unexported fields */}, RegisterTime: whereHelpernull_Int{/* contains filtered or unexported fields */}, }
Functions ¶
func AddArticleCommentHook ¶
func AddArticleCommentHook(hookPoint boil.HookPoint, articleCommentHook ArticleCommentHook)
AddArticleCommentHook registers your hook function for all future operations.
func AddArticleHook ¶
func AddArticleHook(hookPoint boil.HookPoint, articleHook ArticleHook)
AddArticleHook registers your hook function for all future operations.
func AddContestHook ¶
func AddContestHook(hookPoint boil.HookPoint, contestHook ContestHook)
AddContestHook registers your hook function for all future operations.
func AddContestPlayerHook ¶
func AddContestPlayerHook(hookPoint boil.HookPoint, contestPlayerHook ContestPlayerHook)
AddContestPlayerHook registers your hook function for all future operations.
func AddContestRanklistHook ¶
func AddContestRanklistHook(hookPoint boil.HookPoint, contestRanklistHook ContestRanklistHook)
AddContestRanklistHook registers your hook function for all future operations.
func AddFileHook ¶
AddFileHook registers your hook function for all future operations.
func AddFormattedCodeHook ¶
func AddFormattedCodeHook(hookPoint boil.HookPoint, formattedCodeHook FormattedCodeHook)
AddFormattedCodeHook registers your hook function for all future operations.
func AddJudgeStateHook ¶
func AddJudgeStateHook(hookPoint boil.HookPoint, judgeStateHook JudgeStateHook)
AddJudgeStateHook registers your hook function for all future operations.
func AddProblemHook ¶
func AddProblemHook(hookPoint boil.HookPoint, problemHook ProblemHook)
AddProblemHook 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 AddProblemTagMapHook ¶
func AddProblemTagMapHook(hookPoint boil.HookPoint, problemTagMapHook ProblemTagMapHook)
AddProblemTagMapHook registers your hook function for all future operations.
func AddRatingCalculationHook ¶
func AddRatingCalculationHook(hookPoint boil.HookPoint, ratingCalculationHook RatingCalculationHook)
AddRatingCalculationHook registers your hook function for all future operations.
func AddRatingHistoryHook ¶
func AddRatingHistoryHook(hookPoint boil.HookPoint, ratingHistoryHook RatingHistoryHook)
AddRatingHistoryHook registers your hook function for all future operations.
func AddSubmissionStatisticHook ¶
func AddSubmissionStatisticHook(hookPoint boil.HookPoint, submissionStatisticHook SubmissionStatisticHook)
AddSubmissionStatisticHook registers your hook function for all future operations.
func AddUserHook ¶
AddUserHook registers your hook function for all future operations.
func AddUserPrivilegeHook ¶
func AddUserPrivilegeHook(hookPoint boil.HookPoint, userPrivilegeHook UserPrivilegeHook)
AddUserPrivilegeHook registers your hook function for all future operations.
func ArticleCommentExists ¶
ArticleCommentExists checks if the ArticleComment row exists.
func ArticleComments ¶
ArticleComments retrieves all the records using an executor.
func ArticleExists ¶
ArticleExists checks if the Article row exists.
func ContestExists ¶
ContestExists checks if the Contest row exists.
func ContestPlayerExists ¶
ContestPlayerExists checks if the ContestPlayer row exists.
func ContestPlayers ¶
ContestPlayers retrieves all the records using an executor.
func ContestRanklistExists ¶
ContestRanklistExists checks if the ContestRanklist row exists.
func ContestRanklists ¶
ContestRanklists retrieves all the records using an executor.
func FileExists ¶
FileExists checks if the File row exists.
func FormattedCodeExists ¶
FormattedCodeExists checks if the FormattedCode row exists.
func FormattedCodes ¶
FormattedCodes retrieves all the records using an executor.
func JudgeStateExists ¶
JudgeStateExists checks if the JudgeState row exists.
func JudgeStates ¶
JudgeStates retrieves all the records using an executor.
func ProblemExists ¶
ProblemExists checks if the Problem row exists.
func ProblemTagExists ¶
ProblemTagExists checks if the ProblemTag row exists.
func ProblemTagMapExists ¶
func ProblemTagMapExists(ctx context.Context, exec boil.ContextExecutor, problemID int, tagID int) (bool, error)
ProblemTagMapExists checks if the ProblemTagMap row exists.
func ProblemTagMaps ¶
ProblemTagMaps retrieves all the records using an executor.
func ProblemTags ¶
ProblemTags retrieves all the records using an executor.
func RatingCalculationExists ¶
RatingCalculationExists checks if the RatingCalculation row exists.
func RatingCalculations ¶
RatingCalculations retrieves all the records using an executor.
func RatingHistories ¶
RatingHistories retrieves all the records using an executor.
func RatingHistoryExists ¶
func RatingHistoryExists(ctx context.Context, exec boil.ContextExecutor, ratingCalculationID int, userID int) (bool, error)
RatingHistoryExists checks if the RatingHistory row exists.
func SubmissionStatisticExists ¶
func SubmissionStatisticExists(ctx context.Context, exec boil.ContextExecutor, problemID int, userID int, type_ string) (bool, error)
SubmissionStatisticExists checks if the SubmissionStatistic row exists.
func SubmissionStatistics ¶
SubmissionStatistics retrieves all the records using an executor.
func UserExists ¶
UserExists checks if the User row exists.
func UserPrivilegeExists ¶
func UserPrivilegeExists(ctx context.Context, exec boil.ContextExecutor, userID int, privilege string) (bool, error)
UserPrivilegeExists checks if the UserPrivilege row exists.
func UserPrivileges ¶
UserPrivileges retrieves all the records using an executor.
Types ¶
type Article ¶
type Article struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Title null.String `boil:"title" json:"title,omitempty" toml:"title" yaml:"title,omitempty"` Content null.String `boil:"content" json:"content,omitempty" toml:"content" yaml:"content,omitempty"` UserID null.Int `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"` ProblemID null.Int `boil:"problem_id" json:"problem_id,omitempty" toml:"problem_id" yaml:"problem_id,omitempty"` PublicTime null.Int `boil:"public_time" json:"public_time,omitempty" toml:"public_time" yaml:"public_time,omitempty"` UpdateTime null.Int `boil:"update_time" json:"update_time,omitempty" toml:"update_time" yaml:"update_time,omitempty"` SortTime null.Int `boil:"sort_time" json:"sort_time,omitempty" toml:"sort_time" yaml:"sort_time,omitempty"` CommentsNum int `boil:"comments_num" json:"comments_num" toml:"comments_num" yaml:"comments_num"` AllowComment int8 `boil:"allow_comment" json:"allow_comment" toml:"allow_comment" yaml:"allow_comment"` IsNotice null.Int8 `boil:"is_notice" json:"is_notice,omitempty" toml:"is_notice" yaml:"is_notice,omitempty"` R *articleR `boil:"-" json:"-" toml:"-" yaml:"-"` L articleL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Article is an object representing the database table.
func FindArticle ¶
func FindArticle(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Article, error)
FindArticle retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Article) Delete ¶
Delete deletes a single Article record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Article) Insert ¶
func (o *Article) 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 (*Article) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Article) Update ¶
func (o *Article) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Article. 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 (*Article) Upsert ¶
func (o *Article) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 ArticleComment ¶
type ArticleComment struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Content null.String `boil:"content" json:"content,omitempty" toml:"content" yaml:"content,omitempty"` ArticleID null.Int `boil:"article_id" json:"article_id,omitempty" toml:"article_id" yaml:"article_id,omitempty"` UserID null.Int `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"` PublicTime null.Int `boil:"public_time" json:"public_time,omitempty" toml:"public_time" yaml:"public_time,omitempty"` R *articleCommentR `boil:"-" json:"-" toml:"-" yaml:"-"` L articleCommentL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ArticleComment is an object representing the database table.
func FindArticleComment ¶
func FindArticleComment(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*ArticleComment, error)
FindArticleComment retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ArticleComment) Delete ¶
func (o *ArticleComment) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ArticleComment record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ArticleComment) Insert ¶
func (o *ArticleComment) 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 (*ArticleComment) Reload ¶
func (o *ArticleComment) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ArticleComment) Update ¶
func (o *ArticleComment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ArticleComment. 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 (*ArticleComment) Upsert ¶
func (o *ArticleComment) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 ArticleCommentHook ¶
type ArticleCommentHook func(context.Context, boil.ContextExecutor, *ArticleComment) error
ArticleCommentHook is the signature for custom ArticleComment hook methods
type ArticleCommentSlice ¶
type ArticleCommentSlice []*ArticleComment
ArticleCommentSlice is an alias for a slice of pointers to ArticleComment. This should generally be used opposed to []ArticleComment.
func (ArticleCommentSlice) DeleteAll ¶
func (o ArticleCommentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ArticleCommentSlice) ReloadAll ¶
func (o *ArticleCommentSlice) 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 (ArticleCommentSlice) UpdateAll ¶
func (o ArticleCommentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ArticleHook ¶
ArticleHook is the signature for custom Article hook methods
type ArticleSlice ¶
type ArticleSlice []*Article
ArticleSlice is an alias for a slice of pointers to Article. This should generally be used opposed to []Article.
func (ArticleSlice) DeleteAll ¶
func (o ArticleSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ArticleSlice) ReloadAll ¶
func (o *ArticleSlice) 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 (ArticleSlice) UpdateAll ¶
func (o ArticleSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Contest ¶
type Contest struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Title null.String `boil:"title" json:"title,omitempty" toml:"title" yaml:"title,omitempty"` Subtitle null.String `boil:"subtitle" json:"subtitle,omitempty" toml:"subtitle" yaml:"subtitle,omitempty"` StartTime null.Int `boil:"start_time" json:"start_time,omitempty" toml:"start_time" yaml:"start_time,omitempty"` EndTime null.Int `boil:"end_time" json:"end_time,omitempty" toml:"end_time" yaml:"end_time,omitempty"` HolderID null.Int `boil:"holder_id" json:"holder_id,omitempty" toml:"holder_id" yaml:"holder_id,omitempty"` Type null.String `boil:"type" json:"type,omitempty" toml:"type" yaml:"type,omitempty"` Information null.String `boil:"information" json:"information,omitempty" toml:"information" yaml:"information,omitempty"` Problems null.String `boil:"problems" json:"problems,omitempty" toml:"problems" yaml:"problems,omitempty"` Admins null.String `boil:"admins" json:"admins,omitempty" toml:"admins" yaml:"admins,omitempty"` RanklistID null.Int `boil:"ranklist_id" json:"ranklist_id,omitempty" toml:"ranklist_id" yaml:"ranklist_id,omitempty"` IsPublic null.Int8 `boil:"is_public" json:"is_public,omitempty" toml:"is_public" yaml:"is_public,omitempty"` HideStatistics null.Int8 `boil:"hide_statistics" json:"hide_statistics,omitempty" toml:"hide_statistics" yaml:"hide_statistics,omitempty"` R *contestR `boil:"-" json:"-" toml:"-" yaml:"-"` L contestL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Contest is an object representing the database table.
func FindContest ¶
func FindContest(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Contest, error)
FindContest retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Contest) Delete ¶
Delete deletes a single Contest record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Contest) Insert ¶
func (o *Contest) 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 (*Contest) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Contest) Update ¶
func (o *Contest) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Contest. 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 (*Contest) Upsert ¶
func (o *Contest) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 ContestHook ¶
ContestHook is the signature for custom Contest hook methods
type ContestPlayer ¶
type ContestPlayer struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` ContestID null.Int `boil:"contest_id" json:"contest_id,omitempty" toml:"contest_id" yaml:"contest_id,omitempty"` UserID null.Int `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"` Score null.Int `boil:"score" json:"score,omitempty" toml:"score" yaml:"score,omitempty"` ScoreDetails string `boil:"score_details" json:"score_details" toml:"score_details" yaml:"score_details"` TimeSpent null.Int `boil:"time_spent" json:"time_spent,omitempty" toml:"time_spent" yaml:"time_spent,omitempty"` R *contestPlayerR `boil:"-" json:"-" toml:"-" yaml:"-"` L contestPlayerL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ContestPlayer is an object representing the database table.
func FindContestPlayer ¶
func FindContestPlayer(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*ContestPlayer, error)
FindContestPlayer retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ContestPlayer) Delete ¶
func (o *ContestPlayer) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ContestPlayer record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ContestPlayer) Insert ¶
func (o *ContestPlayer) 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 (*ContestPlayer) Reload ¶
func (o *ContestPlayer) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ContestPlayer) Update ¶
func (o *ContestPlayer) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ContestPlayer. 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 (*ContestPlayer) Upsert ¶
func (o *ContestPlayer) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 ContestPlayerHook ¶
type ContestPlayerHook func(context.Context, boil.ContextExecutor, *ContestPlayer) error
ContestPlayerHook is the signature for custom ContestPlayer hook methods
type ContestPlayerSlice ¶
type ContestPlayerSlice []*ContestPlayer
ContestPlayerSlice is an alias for a slice of pointers to ContestPlayer. This should generally be used opposed to []ContestPlayer.
func (ContestPlayerSlice) DeleteAll ¶
func (o ContestPlayerSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ContestPlayerSlice) ReloadAll ¶
func (o *ContestPlayerSlice) 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 (ContestPlayerSlice) UpdateAll ¶
func (o ContestPlayerSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ContestRanklist ¶
type ContestRanklist struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` RankingParams null.String `boil:"ranking_params" json:"ranking_params,omitempty" toml:"ranking_params" yaml:"ranking_params,omitempty"` Ranklist string `boil:"ranklist" json:"ranklist" toml:"ranklist" yaml:"ranklist"` R *contestRanklistR `boil:"-" json:"-" toml:"-" yaml:"-"` L contestRanklistL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ContestRanklist is an object representing the database table.
func FindContestRanklist ¶
func FindContestRanklist(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*ContestRanklist, error)
FindContestRanklist retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ContestRanklist) Delete ¶
func (o *ContestRanklist) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ContestRanklist record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ContestRanklist) Insert ¶
func (o *ContestRanklist) 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 (*ContestRanklist) Reload ¶
func (o *ContestRanklist) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ContestRanklist) Update ¶
func (o *ContestRanklist) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ContestRanklist. 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 (*ContestRanklist) Upsert ¶
func (o *ContestRanklist) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 ContestRanklistHook ¶
type ContestRanklistHook func(context.Context, boil.ContextExecutor, *ContestRanklist) error
ContestRanklistHook is the signature for custom ContestRanklist hook methods
type ContestRanklistSlice ¶
type ContestRanklistSlice []*ContestRanklist
ContestRanklistSlice is an alias for a slice of pointers to ContestRanklist. This should generally be used opposed to []ContestRanklist.
func (ContestRanklistSlice) DeleteAll ¶
func (o ContestRanklistSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ContestRanklistSlice) ReloadAll ¶
func (o *ContestRanklistSlice) 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 (ContestRanklistSlice) UpdateAll ¶
func (o ContestRanklistSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ContestSlice ¶
type ContestSlice []*Contest
ContestSlice is an alias for a slice of pointers to Contest. This should generally be used opposed to []Contest.
func (ContestSlice) DeleteAll ¶
func (o ContestSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ContestSlice) ReloadAll ¶
func (o *ContestSlice) 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 (ContestSlice) UpdateAll ¶
func (o ContestSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type File ¶
type File struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Type null.String `boil:"type" json:"type,omitempty" toml:"type" yaml:"type,omitempty"` MD5 null.String `boil:"md5" json:"md5,omitempty" toml:"md5" yaml:"md5,omitempty"` R *fileR `boil:"-" json:"-" toml:"-" yaml:"-"` L fileL `boil:"-" json:"-" toml:"-" yaml:"-"` }
File is an object representing the database table.
func FindFile ¶
func FindFile(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*File, error)
FindFile retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*File) Delete ¶
Delete deletes a single File record with an executor. Delete will match against the primary key column to find the record to delete.
func (*File) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*File) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*File) Update ¶
func (o *File) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the File. 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 (*File) Upsert ¶
func (o *File) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 FileSlice ¶
type FileSlice []*File
FileSlice is an alias for a slice of pointers to File. This should generally be used opposed to []File.
type FormattedCode ¶
type FormattedCode struct { Key string `boil:"key" json:"key" toml:"key" yaml:"key"` Code null.String `boil:"code" json:"code,omitempty" toml:"code" yaml:"code,omitempty"` R *formattedCodeR `boil:"-" json:"-" toml:"-" yaml:"-"` L formattedCodeL `boil:"-" json:"-" toml:"-" yaml:"-"` }
FormattedCode is an object representing the database table.
func FindFormattedCode ¶
func FindFormattedCode(ctx context.Context, exec boil.ContextExecutor, key string, selectCols ...string) (*FormattedCode, error)
FindFormattedCode retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*FormattedCode) Delete ¶
func (o *FormattedCode) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single FormattedCode record with an executor. Delete will match against the primary key column to find the record to delete.
func (*FormattedCode) Insert ¶
func (o *FormattedCode) 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 (*FormattedCode) Reload ¶
func (o *FormattedCode) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*FormattedCode) Update ¶
func (o *FormattedCode) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the FormattedCode. 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 (*FormattedCode) Upsert ¶
func (o *FormattedCode) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 FormattedCodeHook ¶
type FormattedCodeHook func(context.Context, boil.ContextExecutor, *FormattedCode) error
FormattedCodeHook is the signature for custom FormattedCode hook methods
type FormattedCodeSlice ¶
type FormattedCodeSlice []*FormattedCode
FormattedCodeSlice is an alias for a slice of pointers to FormattedCode. This should generally be used opposed to []FormattedCode.
func (FormattedCodeSlice) DeleteAll ¶
func (o FormattedCodeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*FormattedCodeSlice) ReloadAll ¶
func (o *FormattedCodeSlice) 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 (FormattedCodeSlice) UpdateAll ¶
func (o FormattedCodeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type JudgeState ¶
type JudgeState struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Code null.String `boil:"code" json:"code,omitempty" toml:"code" yaml:"code,omitempty"` Language null.String `boil:"language" json:"language,omitempty" toml:"language" yaml:"language,omitempty"` Status null.String `boil:"status" json:"status,omitempty" toml:"status" yaml:"status,omitempty"` TaskID null.String `boil:"task_id" json:"task_id,omitempty" toml:"task_id" yaml:"task_id,omitempty"` Score null.Int `boil:"score" json:"score,omitempty" toml:"score" yaml:"score,omitempty"` TotalTime null.Int `boil:"total_time" json:"total_time,omitempty" toml:"total_time" yaml:"total_time,omitempty"` CodeLength null.Int `boil:"code_length" json:"code_length,omitempty" toml:"code_length" yaml:"code_length,omitempty"` Pending null.Int8 `boil:"pending" json:"pending,omitempty" toml:"pending" yaml:"pending,omitempty"` MaxMemory null.Int `boil:"max_memory" json:"max_memory,omitempty" toml:"max_memory" yaml:"max_memory,omitempty"` Compilation null.String `boil:"compilation" json:"compilation,omitempty" toml:"compilation" yaml:"compilation,omitempty"` Result null.String `boil:"result" json:"result,omitempty" toml:"result" yaml:"result,omitempty"` UserID null.Int `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"` ProblemID null.Int `boil:"problem_id" json:"problem_id,omitempty" toml:"problem_id" yaml:"problem_id,omitempty"` SubmitTime null.Int `boil:"submit_time" json:"submit_time,omitempty" toml:"submit_time" yaml:"submit_time,omitempty"` Type null.Int `boil:"type" json:"type,omitempty" toml:"type" yaml:"type,omitempty"` TypeInfo null.Int `boil:"type_info" json:"type_info,omitempty" toml:"type_info" yaml:"type_info,omitempty"` IsPublic null.Int8 `boil:"is_public" json:"is_public,omitempty" toml:"is_public" yaml:"is_public,omitempty"` R *judgeStateR `boil:"-" json:"-" toml:"-" yaml:"-"` L judgeStateL `boil:"-" json:"-" toml:"-" yaml:"-"` }
JudgeState is an object representing the database table.
func FindJudgeState ¶
func FindJudgeState(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*JudgeState, error)
FindJudgeState retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*JudgeState) Delete ¶
func (o *JudgeState) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single JudgeState record with an executor. Delete will match against the primary key column to find the record to delete.
func (*JudgeState) Insert ¶
func (o *JudgeState) 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 (*JudgeState) Reload ¶
func (o *JudgeState) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*JudgeState) Update ¶
func (o *JudgeState) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the JudgeState. 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 (*JudgeState) Upsert ¶
func (o *JudgeState) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 JudgeStateHook ¶
type JudgeStateHook func(context.Context, boil.ContextExecutor, *JudgeState) error
JudgeStateHook is the signature for custom JudgeState hook methods
type JudgeStateSlice ¶
type JudgeStateSlice []*JudgeState
JudgeStateSlice is an alias for a slice of pointers to JudgeState. This should generally be used opposed to []JudgeState.
func (JudgeStateSlice) DeleteAll ¶
func (o JudgeStateSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*JudgeStateSlice) ReloadAll ¶
func (o *JudgeStateSlice) 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 (JudgeStateSlice) UpdateAll ¶
func (o JudgeStateSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type Problem ¶
type Problem struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Title null.String `boil:"title" json:"title,omitempty" toml:"title" yaml:"title,omitempty"` UserID null.Int `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"` PublicizerID null.Int `boil:"publicizer_id" json:"publicizer_id,omitempty" toml:"publicizer_id" yaml:"publicizer_id,omitempty"` IsAnonymous null.Int8 `boil:"is_anonymous" json:"is_anonymous,omitempty" toml:"is_anonymous" yaml:"is_anonymous,omitempty"` Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"` InputFormat null.String `boil:"input_format" json:"input_format,omitempty" toml:"input_format" yaml:"input_format,omitempty"` OutputFormat null.String `boil:"output_format" json:"output_format,omitempty" toml:"output_format" yaml:"output_format,omitempty"` Example null.String `boil:"example" json:"example,omitempty" toml:"example" yaml:"example,omitempty"` LimitAndHint null.String `boil:"limit_and_hint" json:"limit_and_hint,omitempty" toml:"limit_and_hint" yaml:"limit_and_hint,omitempty"` TimeLimit null.Int `boil:"time_limit" json:"time_limit,omitempty" toml:"time_limit" yaml:"time_limit,omitempty"` MemoryLimit null.Int `boil:"memory_limit" json:"memory_limit,omitempty" toml:"memory_limit" yaml:"memory_limit,omitempty"` AdditionalFileID null.Int `boil:"additional_file_id" json:"additional_file_id,omitempty" toml:"additional_file_id" yaml:"additional_file_id,omitempty"` AcNum null.Int `boil:"ac_num" json:"ac_num,omitempty" toml:"ac_num" yaml:"ac_num,omitempty"` SubmitNum null.Int `boil:"submit_num" json:"submit_num,omitempty" toml:"submit_num" yaml:"submit_num,omitempty"` IsPublic null.Int8 `boil:"is_public" json:"is_public,omitempty" toml:"is_public" yaml:"is_public,omitempty"` FileIo null.Int8 `boil:"file_io" json:"file_io,omitempty" toml:"file_io" yaml:"file_io,omitempty"` FileIoInputName null.String `boil:"file_io_input_name" json:"file_io_input_name,omitempty" toml:"file_io_input_name" yaml:"file_io_input_name,omitempty"` FileIoOutputName null.String `` /* 127-byte string literal not displayed */ PublicizeTime null.Time `boil:"publicize_time" json:"publicize_time,omitempty" toml:"publicize_time" yaml:"publicize_time,omitempty"` Type null.String `boil:"type" json:"type,omitempty" toml:"type" yaml:"type,omitempty"` Tags null.String `boil:"tags" json:"tags,omitempty" toml:"tags" yaml:"tags,omitempty"` R *problemR `boil:"-" json:"-" toml:"-" yaml:"-"` L problemL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Problem is an object representing the database table.
func FindProblem ¶
func FindProblem(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Problem, error)
FindProblem retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Problem) Delete ¶
Delete deletes a single Problem record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Problem) Insert ¶
func (o *Problem) 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 (*Problem) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Problem) Update ¶
func (o *Problem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Problem. 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 (*Problem) Upsert ¶
func (o *Problem) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 ProblemHook ¶
ProblemHook is the signature for custom Problem hook methods
type ProblemSlice ¶
type ProblemSlice []*Problem
ProblemSlice is an alias for a slice of pointers to Problem. This should generally be used opposed to []Problem.
func (ProblemSlice) DeleteAll ¶
func (o ProblemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ProblemSlice) ReloadAll ¶
func (o *ProblemSlice) 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 (ProblemSlice) UpdateAll ¶
func (o ProblemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ProblemTag ¶
type ProblemTag struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"` Color null.String `boil:"color" json:"color,omitempty" toml:"color" yaml:"color,omitempty"` 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, iD 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 (*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) 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) 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) 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) Upsert ¶
func (o *ProblemTag) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 ProblemTagHook ¶
type ProblemTagHook func(context.Context, boil.ContextExecutor, *ProblemTag) error
ProblemTagHook is the signature for custom ProblemTag hook methods
type ProblemTagMap ¶
type ProblemTagMap 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"` R *problemTagMapR `boil:"-" json:"-" toml:"-" yaml:"-"` L problemTagMapL `boil:"-" json:"-" toml:"-" yaml:"-"` }
ProblemTagMap is an object representing the database table.
func FindProblemTagMap ¶
func FindProblemTagMap(ctx context.Context, exec boil.ContextExecutor, problemID int, tagID int, selectCols ...string) (*ProblemTagMap, error)
FindProblemTagMap retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*ProblemTagMap) Delete ¶
func (o *ProblemTagMap) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single ProblemTagMap record with an executor. Delete will match against the primary key column to find the record to delete.
func (*ProblemTagMap) Insert ¶
func (o *ProblemTagMap) 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 (*ProblemTagMap) Reload ¶
func (o *ProblemTagMap) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*ProblemTagMap) Update ¶
func (o *ProblemTagMap) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the ProblemTagMap. 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 (*ProblemTagMap) Upsert ¶
func (o *ProblemTagMap) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 ProblemTagMapHook ¶
type ProblemTagMapHook func(context.Context, boil.ContextExecutor, *ProblemTagMap) error
ProblemTagMapHook is the signature for custom ProblemTagMap hook methods
type ProblemTagMapSlice ¶
type ProblemTagMapSlice []*ProblemTagMap
ProblemTagMapSlice is an alias for a slice of pointers to ProblemTagMap. This should generally be used opposed to []ProblemTagMap.
func (ProblemTagMapSlice) DeleteAll ¶
func (o ProblemTagMapSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ProblemTagMapSlice) ReloadAll ¶
func (o *ProblemTagMapSlice) 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 (ProblemTagMapSlice) UpdateAll ¶
func (o ProblemTagMapSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type ProblemTagSlice ¶
type ProblemTagSlice []*ProblemTag
ProblemTagSlice is an alias for a slice of pointers to ProblemTag. This should generally be used opposed to []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) 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) 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.
type RatingCalculation ¶
type RatingCalculation struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` ContestID null.Int `boil:"contest_id" json:"contest_id,omitempty" toml:"contest_id" yaml:"contest_id,omitempty"` R *ratingCalculationR `boil:"-" json:"-" toml:"-" yaml:"-"` L ratingCalculationL `boil:"-" json:"-" toml:"-" yaml:"-"` }
RatingCalculation is an object representing the database table.
func FindRatingCalculation ¶
func FindRatingCalculation(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*RatingCalculation, error)
FindRatingCalculation retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*RatingCalculation) Delete ¶
func (o *RatingCalculation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single RatingCalculation record with an executor. Delete will match against the primary key column to find the record to delete.
func (*RatingCalculation) Insert ¶
func (o *RatingCalculation) 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 (*RatingCalculation) Reload ¶
func (o *RatingCalculation) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*RatingCalculation) Update ¶
func (o *RatingCalculation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the RatingCalculation. 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 (*RatingCalculation) Upsert ¶
func (o *RatingCalculation) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 RatingCalculationHook ¶
type RatingCalculationHook func(context.Context, boil.ContextExecutor, *RatingCalculation) error
RatingCalculationHook is the signature for custom RatingCalculation hook methods
type RatingCalculationSlice ¶
type RatingCalculationSlice []*RatingCalculation
RatingCalculationSlice is an alias for a slice of pointers to RatingCalculation. This should generally be used opposed to []RatingCalculation.
func (RatingCalculationSlice) DeleteAll ¶
func (o RatingCalculationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*RatingCalculationSlice) ReloadAll ¶
func (o *RatingCalculationSlice) 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 (RatingCalculationSlice) UpdateAll ¶
func (o RatingCalculationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type RatingHistory ¶
type RatingHistory struct { RatingCalculationID int `boil:"rating_calculation_id" json:"rating_calculation_id" toml:"rating_calculation_id" yaml:"rating_calculation_id"` UserID int `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` RatingAfter null.Int `boil:"rating_after" json:"rating_after,omitempty" toml:"rating_after" yaml:"rating_after,omitempty"` Rank null.Int `boil:"rank" json:"rank,omitempty" toml:"rank" yaml:"rank,omitempty"` R *ratingHistoryR `boil:"-" json:"-" toml:"-" yaml:"-"` L ratingHistoryL `boil:"-" json:"-" toml:"-" yaml:"-"` }
RatingHistory is an object representing the database table.
func FindRatingHistory ¶
func FindRatingHistory(ctx context.Context, exec boil.ContextExecutor, ratingCalculationID int, userID int, selectCols ...string) (*RatingHistory, error)
FindRatingHistory retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*RatingHistory) Delete ¶
func (o *RatingHistory) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single RatingHistory record with an executor. Delete will match against the primary key column to find the record to delete.
func (*RatingHistory) Insert ¶
func (o *RatingHistory) 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 (*RatingHistory) Reload ¶
func (o *RatingHistory) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*RatingHistory) Update ¶
func (o *RatingHistory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the RatingHistory. 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 (*RatingHistory) Upsert ¶
func (o *RatingHistory) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 RatingHistoryHook ¶
type RatingHistoryHook func(context.Context, boil.ContextExecutor, *RatingHistory) error
RatingHistoryHook is the signature for custom RatingHistory hook methods
type RatingHistorySlice ¶
type RatingHistorySlice []*RatingHistory
RatingHistorySlice is an alias for a slice of pointers to RatingHistory. This should generally be used opposed to []RatingHistory.
func (RatingHistorySlice) DeleteAll ¶
func (o RatingHistorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*RatingHistorySlice) ReloadAll ¶
func (o *RatingHistorySlice) 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 (RatingHistorySlice) UpdateAll ¶
func (o RatingHistorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type SubmissionStatistic ¶
type SubmissionStatistic struct { ProblemID int `boil:"problem_id" json:"problem_id" toml:"problem_id" yaml:"problem_id"` UserID int `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Type string `boil:"type" json:"type" toml:"type" yaml:"type"` Key int `boil:"key" json:"key" toml:"key" yaml:"key"` SubmissionID int `boil:"submission_id" json:"submission_id" toml:"submission_id" yaml:"submission_id"` R *submissionStatisticR `boil:"-" json:"-" toml:"-" yaml:"-"` L submissionStatisticL `boil:"-" json:"-" toml:"-" yaml:"-"` }
SubmissionStatistic is an object representing the database table.
func FindSubmissionStatistic ¶
func FindSubmissionStatistic(ctx context.Context, exec boil.ContextExecutor, problemID int, userID int, type_ string, selectCols ...string) (*SubmissionStatistic, error)
FindSubmissionStatistic retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*SubmissionStatistic) Delete ¶
func (o *SubmissionStatistic) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single SubmissionStatistic record with an executor. Delete will match against the primary key column to find the record to delete.
func (*SubmissionStatistic) Insert ¶
func (o *SubmissionStatistic) 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 (*SubmissionStatistic) Reload ¶
func (o *SubmissionStatistic) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*SubmissionStatistic) Update ¶
func (o *SubmissionStatistic) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the SubmissionStatistic. 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 (*SubmissionStatistic) Upsert ¶
func (o *SubmissionStatistic) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 SubmissionStatisticHook ¶
type SubmissionStatisticHook func(context.Context, boil.ContextExecutor, *SubmissionStatistic) error
SubmissionStatisticHook is the signature for custom SubmissionStatistic hook methods
type SubmissionStatisticSlice ¶
type SubmissionStatisticSlice []*SubmissionStatistic
SubmissionStatisticSlice is an alias for a slice of pointers to SubmissionStatistic. This should generally be used opposed to []SubmissionStatistic.
func (SubmissionStatisticSlice) DeleteAll ¶
func (o SubmissionStatisticSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*SubmissionStatisticSlice) ReloadAll ¶
func (o *SubmissionStatisticSlice) 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 (SubmissionStatisticSlice) UpdateAll ¶
func (o SubmissionStatisticSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type User ¶
type User struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Username null.String `boil:"username" json:"username,omitempty" toml:"username" yaml:"username,omitempty"` Email null.String `boil:"email" json:"email,omitempty" toml:"email" yaml:"email,omitempty"` Password null.String `boil:"password" json:"password,omitempty" toml:"password" yaml:"password,omitempty"` Nickname null.String `boil:"nickname" json:"nickname,omitempty" toml:"nickname" yaml:"nickname,omitempty"` Nameplate null.String `boil:"nameplate" json:"nameplate,omitempty" toml:"nameplate" yaml:"nameplate,omitempty"` Information null.String `boil:"information" json:"information,omitempty" toml:"information" yaml:"information,omitempty"` AcNum null.Int `boil:"ac_num" json:"ac_num,omitempty" toml:"ac_num" yaml:"ac_num,omitempty"` SubmitNum null.Int `boil:"submit_num" json:"submit_num,omitempty" toml:"submit_num" yaml:"submit_num,omitempty"` IsAdmin null.Int8 `boil:"is_admin" json:"is_admin,omitempty" toml:"is_admin" yaml:"is_admin,omitempty"` IsShow null.Int8 `boil:"is_show" json:"is_show,omitempty" toml:"is_show" yaml:"is_show,omitempty"` PublicEmail null.Int8 `boil:"public_email" json:"public_email,omitempty" toml:"public_email" yaml:"public_email,omitempty"` PreferFormattedCode null.Int8 `` /* 135-byte string literal not displayed */ Sex null.Int `boil:"sex" json:"sex,omitempty" toml:"sex" yaml:"sex,omitempty"` Rating null.Int `boil:"rating" json:"rating,omitempty" toml:"rating" yaml:"rating,omitempty"` RegisterTime null.Int `boil:"register_time" json:"register_time,omitempty" toml:"register_time" yaml:"register_time,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) 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) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*User) Reload ¶
Reload refetches the object from the database using the primary keys 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) Upsert ¶
func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 UserPrivilege ¶
type UserPrivilege struct { UserID int `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Privilege string `boil:"privilege" json:"privilege" toml:"privilege" yaml:"privilege"` R *userPrivilegeR `boil:"-" json:"-" toml:"-" yaml:"-"` L userPrivilegeL `boil:"-" json:"-" toml:"-" yaml:"-"` }
UserPrivilege is an object representing the database table.
func FindUserPrivilege ¶
func FindUserPrivilege(ctx context.Context, exec boil.ContextExecutor, userID int, privilege string, selectCols ...string) (*UserPrivilege, error)
FindUserPrivilege retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*UserPrivilege) Delete ¶
func (o *UserPrivilege) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single UserPrivilege record with an executor. Delete will match against the primary key column to find the record to delete.
func (*UserPrivilege) Insert ¶
func (o *UserPrivilege) 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 (*UserPrivilege) Reload ¶
func (o *UserPrivilege) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*UserPrivilege) Update ¶
func (o *UserPrivilege) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the UserPrivilege. 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 (*UserPrivilege) Upsert ¶
func (o *UserPrivilege) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 UserPrivilegeHook ¶
type UserPrivilegeHook func(context.Context, boil.ContextExecutor, *UserPrivilege) error
UserPrivilegeHook is the signature for custom UserPrivilege hook methods
type UserPrivilegeSlice ¶
type UserPrivilegeSlice []*UserPrivilege
UserPrivilegeSlice is an alias for a slice of pointers to UserPrivilege. This should generally be used opposed to []UserPrivilege.
func (UserPrivilegeSlice) DeleteAll ¶
func (o UserPrivilegeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*UserPrivilegeSlice) ReloadAll ¶
func (o *UserPrivilegeSlice) 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 (UserPrivilegeSlice) UpdateAll ¶
func (o UserPrivilegeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type UserSlice ¶
type UserSlice []*User
UserSlice is an alias for a slice of pointers to User. This should generally be used opposed to []User.
Source Files ¶
- article.go
- article_comment.go
- boil_queries.go
- boil_table_names.go
- boil_types.go
- contest.go
- contest_player.go
- contest_ranklist.go
- file.go
- formatted_code.go
- judge_state.go
- mysql_upsert.go
- problem.go
- problem_tag.go
- problem_tag_map.go
- rating_calculation.go
- rating_history.go
- submission_statistics.go
- user.go
- user_privilege.go