models

package
v0.0.0-...-f3f7f80 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContestTypeNoi = "noi"
	ContestTypeIoi = "ioi"
	ContestTypeAcm = "acm"
)

Enum values for contest.type

View Source
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

View Source
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",
}
View Source
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",
}
View Source
var ArticleCommentRels = struct {
}{}

ArticleCommentRels is where relationship names are stored.

View Source
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 */},
}
View Source
var ArticleRels = struct {
}{}

ArticleRels is where relationship names are stored.

View Source
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 */},
}
View Source
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",
}
View Source
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",
}
View Source
var ContestPlayerRels = struct {
}{}

ContestPlayerRels is where relationship names are stored.

View Source
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 */},
}
View Source
var ContestRanklistColumns = struct {
	ID            string
	RankingParams string
	Ranklist      string
}{
	ID:            "id",
	RankingParams: "ranking_params",
	Ranklist:      "ranklist",
}
View Source
var ContestRanklistRels = struct {
}{}

ContestRanklistRels is where relationship names are stored.

View Source
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 */},
}
View Source
var ContestRels = struct {
}{}

ContestRels is where relationship names are stored.

View Source
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 */},
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var FileColumns = struct {
	ID   string
	Type string
	MD5  string
}{
	ID:   "id",
	Type: "type",
	MD5:  "md5",
}
View Source
var FileRels = struct {
}{}

FileRels is where relationship names are stored.

View Source
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 */},
}
View Source
var FormattedCodeColumns = struct {
	Key  string
	Code string
}{
	Key:  "key",
	Code: "code",
}
View Source
var FormattedCodeRels = struct {
}{}

FormattedCodeRels is where relationship names are stored.

View Source
var FormattedCodeWhere = struct {
	Key  whereHelperstring
	Code whereHelpernull_String
}{
	Key:  whereHelperstring{/* contains filtered or unexported fields */},
	Code: whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
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",
}
View Source
var JudgeStateRels = struct {
}{}

JudgeStateRels is where relationship names are stored.

View Source
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 */},
}
View Source
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",
}
View Source
var ProblemRels = struct {
}{}

ProblemRels is where relationship names are stored.

View Source
var ProblemTagColumns = struct {
	ID    string
	Name  string
	Color string
}{
	ID:    "id",
	Name:  "name",
	Color: "color",
}
View Source
var ProblemTagMapColumns = struct {
	ProblemID string
	TagID     string
}{
	ProblemID: "problem_id",
	TagID:     "tag_id",
}
View Source
var ProblemTagMapRels = struct {
}{}

ProblemTagMapRels is where relationship names are stored.

View Source
var ProblemTagMapWhere = struct {
	ProblemID whereHelperint
	TagID     whereHelperint
}{
	ProblemID: whereHelperint{/* contains filtered or unexported fields */},
	TagID:     whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var ProblemTagRels = struct {
}{}

ProblemTagRels is where relationship names are stored.

View Source
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 */},
}
View Source
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 */},
}
View Source
var RatingCalculationColumns = struct {
	ID        string
	ContestID string
}{
	ID:        "id",
	ContestID: "contest_id",
}
View Source
var RatingCalculationRels = struct {
}{}

RatingCalculationRels is where relationship names are stored.

View Source
var RatingCalculationWhere = struct {
	ID        whereHelperint
	ContestID whereHelpernull_Int
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	ContestID: whereHelpernull_Int{/* contains filtered or unexported fields */},
}
View Source
var RatingHistoryColumns = struct {
	RatingCalculationID string
	UserID              string
	RatingAfter         string
	Rank                string
}{
	RatingCalculationID: "rating_calculation_id",
	UserID:              "user_id",
	RatingAfter:         "rating_after",
	Rank:                "rank",
}
View Source
var RatingHistoryRels = struct {
}{}

RatingHistoryRels is where relationship names are stored.

View Source
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 */},
}
View Source
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",
}
View Source
var SubmissionStatisticRels = struct {
}{}

SubmissionStatisticRels is where relationship names are stored.

View Source
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 */},
}
View Source
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",
}
View Source
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",
}
View Source
var UserPrivilegeColumns = struct {
	UserID    string
	Privilege string
}{
	UserID:    "user_id",
	Privilege: "privilege",
}
View Source
var UserPrivilegeRels = struct {
}{}

UserPrivilegeRels is where relationship names are stored.

View Source
var UserPrivilegeWhere = struct {
	UserID    whereHelperint
	Privilege whereHelperstring
}{
	UserID:    whereHelperint{/* contains filtered or unexported fields */},
	Privilege: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var UserRels = struct {
}{}

UserRels is where relationship names are stored.

View Source
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

func AddFileHook(hookPoint boil.HookPoint, fileHook FileHook)

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

func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)

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

func ArticleCommentExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

ArticleCommentExists checks if the ArticleComment row exists.

func ArticleComments

func ArticleComments(mods ...qm.QueryMod) articleCommentQuery

ArticleComments retrieves all the records using an executor.

func ArticleExists

func ArticleExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

ArticleExists checks if the Article row exists.

func Articles

func Articles(mods ...qm.QueryMod) articleQuery

Articles retrieves all the records using an executor.

func ContestExists

func ContestExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

ContestExists checks if the Contest row exists.

func ContestPlayerExists

func ContestPlayerExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

ContestPlayerExists checks if the ContestPlayer row exists.

func ContestPlayers

func ContestPlayers(mods ...qm.QueryMod) contestPlayerQuery

ContestPlayers retrieves all the records using an executor.

func ContestRanklistExists

func ContestRanklistExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

ContestRanklistExists checks if the ContestRanklist row exists.

func ContestRanklists

func ContestRanklists(mods ...qm.QueryMod) contestRanklistQuery

ContestRanklists retrieves all the records using an executor.

func Contests

func Contests(mods ...qm.QueryMod) contestQuery

Contests retrieves all the records using an executor.

func FileExists

func FileExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

FileExists checks if the File row exists.

func Files

func Files(mods ...qm.QueryMod) fileQuery

Files retrieves all the records using an executor.

func FormattedCodeExists

func FormattedCodeExists(ctx context.Context, exec boil.ContextExecutor, key string) (bool, error)

FormattedCodeExists checks if the FormattedCode row exists.

func FormattedCodes

func FormattedCodes(mods ...qm.QueryMod) formattedCodeQuery

FormattedCodes retrieves all the records using an executor.

func JudgeStateExists

func JudgeStateExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

JudgeStateExists checks if the JudgeState row exists.

func JudgeStates

func JudgeStates(mods ...qm.QueryMod) judgeStateQuery

JudgeStates retrieves all the records using an executor.

func NewQuery

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

NewQuery initializes a new Query using the passed in QueryMods

func ProblemExists

func ProblemExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

ProblemExists checks if the Problem row exists.

func ProblemTagExists

func ProblemTagExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

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

func ProblemTagMaps(mods ...qm.QueryMod) problemTagMapQuery

ProblemTagMaps retrieves all the records using an executor.

func ProblemTags

func ProblemTags(mods ...qm.QueryMod) problemTagQuery

ProblemTags retrieves all the records using an executor.

func Problems

func Problems(mods ...qm.QueryMod) problemQuery

Problems retrieves all the records using an executor.

func RatingCalculationExists

func RatingCalculationExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

RatingCalculationExists checks if the RatingCalculation row exists.

func RatingCalculations

func RatingCalculations(mods ...qm.QueryMod) ratingCalculationQuery

RatingCalculations retrieves all the records using an executor.

func RatingHistories

func RatingHistories(mods ...qm.QueryMod) ratingHistoryQuery

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

func SubmissionStatistics(mods ...qm.QueryMod) submissionStatisticQuery

SubmissionStatistics retrieves all the records using an executor.

func UserExists

func UserExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

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

func UserPrivileges(mods ...qm.QueryMod) userPrivilegeQuery

UserPrivileges retrieves all the records using an executor.

func Users

func Users(mods ...qm.QueryMod) userQuery

Users 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

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

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

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

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

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

type ArticleHook func(context.Context, boil.ContextExecutor, *Article) error

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

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

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

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

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

type ContestHook func(context.Context, boil.ContextExecutor, *Contest) error

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

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

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

func (*ContestRanklistSlice) ReloadAll

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

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

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

func (o *File) 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 (*File) Reload

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

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 FileHook

type FileHook func(context.Context, boil.ContextExecutor, *File) error

FileHook is the signature for custom File hook methods

type FileSlice

type FileSlice []*File

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

func (FileSlice) DeleteAll

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

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

func (*FileSlice) ReloadAll

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

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

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

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

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

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

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

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

type ProblemHook func(context.Context, boil.ContextExecutor, *Problem) error

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

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

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

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

func (*RatingCalculationSlice) ReloadAll

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

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

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

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

func (*SubmissionStatisticSlice) ReloadAll

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

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

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

func (o *User) 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 (*User) Reload

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

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 UserHook

type UserHook func(context.Context, boil.ContextExecutor, *User) error

UserHook is the signature for custom User hook methods

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.

func (UserSlice) DeleteAll

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

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

func (*UserSlice) ReloadAll

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

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

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

Jump to

Keyboard shortcuts

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