record

package
v0.0.0-...-5346f80 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AchievementColumns = struct {
	ID            string
	Title         string
	Award         string
	URL           string
	Description   string
	ImageFilename string
	HappenedAt    string
	CreatedAt     string
	UpdatedAt     string
	DeletedAt     string
}{
	ID:            "id",
	Title:         "title",
	Award:         "award",
	URL:           "url",
	Description:   "description",
	ImageFilename: "image_filename",
	HappenedAt:    "happened_at",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
	DeletedAt:     "deleted_at",
}
View Source
var AchievementRels = struct {
	AchievementUsers string
}{
	AchievementUsers: "AchievementUsers",
}

AchievementRels is where relationship names are stored.

View Source
var AchievementUserColumns = struct {
	ID            string
	AchievementID string
	UserID        string
	Priority      string
}{
	ID:            "id",
	AchievementID: "achievement_id",
	UserID:        "user_id",
	Priority:      "priority",
}
View Source
var AchievementUserRels = struct {
	Achievement string
	User        string
}{
	Achievement: "Achievement",
	User:        "User",
}

AchievementUserRels is where relationship names are stored.

View Source
var AchievementUserWhere = struct {
	ID            whereHelperint64
	AchievementID whereHelperint64
	UserID        whereHelperint64
	Priority      whereHelperint
}{
	ID:            whereHelperint64{/* contains filtered or unexported fields */},
	AchievementID: whereHelperint64{/* contains filtered or unexported fields */},
	UserID:        whereHelperint64{/* contains filtered or unexported fields */},
	Priority:      whereHelperint{/* contains filtered or unexported fields */},
}
View Source
var AchievementWhere = struct {
	ID            whereHelperint64
	Title         whereHelperstring
	Award         whereHelperstring
	URL           whereHelperstring
	Description   whereHelperstring
	ImageFilename whereHelpernull_String
	HappenedAt    whereHelpertime_Time
	CreatedAt     whereHelpertime_Time
	UpdatedAt     whereHelpertime_Time
	DeletedAt     whereHelpernull_Time
}{
	ID:            whereHelperint64{/* contains filtered or unexported fields */},
	Title:         whereHelperstring{/* contains filtered or unexported fields */},
	Award:         whereHelperstring{/* contains filtered or unexported fields */},
	URL:           whereHelperstring{/* contains filtered or unexported fields */},
	Description:   whereHelperstring{/* contains filtered or unexported fields */},
	ImageFilename: whereHelpernull_String{/* contains filtered or unexported fields */},
	HappenedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var BlogColumns = struct {
	ID        string
	URL       string
	FeedURL   string
	UserID    string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	URL:       "url",
	FeedURL:   "feed_url",
	UserID:    "user_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var BlogRels = struct {
	User    string
	Entries string
}{
	User:    "User",
	Entries: "Entries",
}

BlogRels is where relationship names are stored.

View Source
var BlogWhere = struct {
	ID        whereHelperint64
	URL       whereHelperstring
	FeedURL   whereHelperstring
	UserID    whereHelperint64
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	URL:       whereHelperstring{/* contains filtered or unexported fields */},
	FeedURL:   whereHelperstring{/* contains filtered or unexported fields */},
	UserID:    whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var DepartmentColumns = struct {
	ID        string
	Name      string
	ShortName string
}{
	ID:        "id",
	Name:      "name",
	ShortName: "short_name",
}
View Source
var DepartmentRels = struct {
	Profiles string
}{
	Profiles: "Profiles",
}

DepartmentRels is where relationship names are stored.

View Source
var DepartmentWhere = struct {
	ID        whereHelperint64
	Name      whereHelperstring
	ShortName whereHelperstring
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	ShortName: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var EmailConfirmationColumns = struct {
	ID        string
	Token     string
	Email     string
	UserID    string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Token:     "token",
	Email:     "email",
	UserID:    "user_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var EmailConfirmationRels = struct {
	User string
}{
	User: "User",
}

EmailConfirmationRels is where relationship names are stored.

View Source
var EmailConfirmationWhere = struct {
	ID        whereHelperint64
	Token     whereHelperstring
	Email     whereHelperstring
	UserID    whereHelperint64
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	Token:     whereHelperstring{/* contains filtered or unexported fields */},
	Email:     whereHelperstring{/* contains filtered or unexported fields */},
	UserID:    whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var EntryColumns = struct {
	ID          string
	Title       string
	Description string
	Content     string
	Link        string
	AuthorID    string
	GUID        string
	ImageURL    string
	BlogID      string
	PublishedAt string
	CreatedAt   string
	UpdatedAt   string
}{
	ID:          "id",
	Title:       "title",
	Description: "description",
	Content:     "content",
	Link:        "link",
	AuthorID:    "author_id",
	GUID:        "guid",
	ImageURL:    "image_url",
	BlogID:      "blog_id",
	PublishedAt: "published_at",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
}
View Source
var EntryRels = struct {
	Author string
	Blog   string
}{
	Author: "Author",
	Blog:   "Blog",
}

EntryRels is where relationship names are stored.

View Source
var EntryWhere = struct {
	ID          whereHelperint64
	Title       whereHelperstring
	Description whereHelperstring
	Content     whereHelperstring
	Link        whereHelperstring
	AuthorID    whereHelperint64
	GUID        whereHelperstring
	ImageURL    whereHelperstring
	BlogID      whereHelperint64
	PublishedAt whereHelpertime_Time
	CreatedAt   whereHelpertime_Time
	UpdatedAt   whereHelpertime_Time
}{
	ID:          whereHelperint64{/* contains filtered or unexported fields */},
	Title:       whereHelperstring{/* contains filtered or unexported fields */},
	Description: whereHelperstring{/* contains filtered or unexported fields */},
	Content:     whereHelperstring{/* contains filtered or unexported fields */},
	Link:        whereHelperstring{/* contains filtered or unexported fields */},
	AuthorID:    whereHelperint64{/* contains filtered or unexported fields */},
	GUID:        whereHelperstring{/* contains filtered or unexported fields */},
	ImageURL:    whereHelperstring{/* contains filtered or unexported fields */},
	BlogID:      whereHelperint64{/* contains filtered or unexported fields */},
	PublishedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("record: 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 GithubContributionDayColumns = struct {
	ID        string
	Count     string
	Date      string
	UserID    string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Count:     "count",
	Date:      "date",
	UserID:    "user_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var GithubContributionDayRels = struct {
	User string
}{
	User: "User",
}

GithubContributionDayRels is where relationship names are stored.

View Source
var GithubContributionDayWhere = struct {
	ID        whereHelperint64
	Count     whereHelperint
	Date      whereHelpertime_Time
	UserID    whereHelperint64
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	Count:     whereHelperint{/* contains filtered or unexported fields */},
	Date:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UserID:    whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var InvitationColumns = struct {
	ID        string
	Code      string
	Email     string
	InviterID string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Code:      "code",
	Email:     "email",
	InviterID: "inviter_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var InvitationRels = struct {
	Inviter string
}{
	Inviter: "Inviter",
}

InvitationRels is where relationship names are stored.

View Source
var InvitationWhere = struct {
	ID        whereHelperint64
	Code      whereHelperstring
	Email     whereHelperstring
	InviterID whereHelperint64
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
}{
	ID:        whereHelperint64{/* contains filtered or unexported fields */},
	Code:      whereHelperstring{/* contains filtered or unexported fields */},
	Email:     whereHelperstring{/* contains filtered or unexported fields */},
	InviterID: whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var PasswordResetColumns = struct {
	ID          string
	TokenDigest string
	Email       string
	UserID      string
	CreatedAt   string
	UpdatedAt   string
}{
	ID:          "id",
	TokenDigest: "token_digest",
	Email:       "email",
	UserID:      "user_id",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
}
View Source
var PasswordResetRels = struct {
	User string
}{
	User: "User",
}

PasswordResetRels is where relationship names are stored.

View Source
var PasswordResetWhere = struct {
	ID          whereHelperint64
	TokenDigest whereHelperstring
	Email       whereHelperstring
	UserID      whereHelperint64
	CreatedAt   whereHelpertime_Time
	UpdatedAt   whereHelpertime_Time
}{
	ID:          whereHelperint64{/* contains filtered or unexported fields */},
	TokenDigest: whereHelperstring{/* contains filtered or unexported fields */},
	Email:       whereHelperstring{/* contains filtered or unexported fields */},
	UserID:      whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var ProfileColumns = struct {
	ID                string
	CreatedAt         string
	UpdatedAt         string
	Description       string
	Grade             string
	Left              string
	DepartmentID      string
	RoleID            string
	TwitterScreenName string
	GithubUserName    string
	ProfileScope      string
	DisplayName       string
	AtcoderUserName   string
}{
	ID:                "id",
	CreatedAt:         "created_at",
	UpdatedAt:         "updated_at",
	Description:       "description",
	Grade:             "grade",
	Left:              "left",
	DepartmentID:      "department_id",
	RoleID:            "role_id",
	TwitterScreenName: "twitter_screen_name",
	GithubUserName:    "github_user_name",
	ProfileScope:      "profile_scope",
	DisplayName:       "display_name",
	AtcoderUserName:   "atcoder_user_name",
}
View Source
var ProfileRels = struct {
	Department string
	Role       string
	Users      string
}{
	Department: "Department",
	Role:       "Role",
	Users:      "Users",
}

ProfileRels is where relationship names are stored.

View Source
var ProfileWhere = struct {
	ID                whereHelperint64
	CreatedAt         whereHelpertime_Time
	UpdatedAt         whereHelpertime_Time
	Description       whereHelperstring
	Grade             whereHelperint
	Left              whereHelperbool
	DepartmentID      whereHelpernull_Int64
	RoleID            whereHelpernull_Int64
	TwitterScreenName whereHelpernull_String
	GithubUserName    whereHelpernull_String
	ProfileScope      whereHelpernull_Int
	DisplayName       whereHelpernull_String
	AtcoderUserName   whereHelpernull_String
}{
	ID:                whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:         whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:         whereHelpertime_Time{/* contains filtered or unexported fields */},
	Description:       whereHelperstring{/* contains filtered or unexported fields */},
	Grade:             whereHelperint{/* contains filtered or unexported fields */},
	Left:              whereHelperbool{/* contains filtered or unexported fields */},
	DepartmentID:      whereHelpernull_Int64{/* contains filtered or unexported fields */},
	RoleID:            whereHelpernull_Int64{/* contains filtered or unexported fields */},
	TwitterScreenName: whereHelpernull_String{/* contains filtered or unexported fields */},
	GithubUserName:    whereHelpernull_String{/* contains filtered or unexported fields */},
	ProfileScope:      whereHelpernull_Int{/* contains filtered or unexported fields */},
	DisplayName:       whereHelpernull_String{/* contains filtered or unexported fields */},
	AtcoderUserName:   whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var RoleColumns = struct {
	ID   string
	Name string
}{
	ID:   "id",
	Name: "name",
}
View Source
var RoleRels = struct {
	Profiles string
}{
	Profiles: "Profiles",
}

RoleRels is where relationship names are stored.

View Source
var RoleWhere = struct {
	ID   whereHelperint64
	Name whereHelpernull_String
}{
	ID:   whereHelperint64{/* contains filtered or unexported fields */},
	Name: whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	AchievementUsers       string
	Achievements           string
	Blogs                  string
	Departments            string
	EmailConfirmations     string
	Entries                string
	GithubContributionDays string
	Invitations            string
	PasswordResets         string
	Profiles               string
	Roles                  string
	Users                  string
}{
	AchievementUsers:       "achievement_users",
	Achievements:           "achievements",
	Blogs:                  "blogs",
	Departments:            "departments",
	EmailConfirmations:     "email_confirmations",
	Entries:                "entries",
	GithubContributionDays: "github_contribution_days",
	Invitations:            "invitations",
	PasswordResets:         "password_resets",
	Profiles:               "profiles",
	Roles:                  "roles",
	Users:                  "users",
}
View Source
var UserColumns = struct {
	ID             string
	Name           string
	Email          string
	FullName       string
	AvatarFilename string
	PasswordDigest string
	Authority      string
	ProfileID      string
	CreatedAt      string
	UpdatedAt      string
}{
	ID:             "id",
	Name:           "name",
	Email:          "email",
	FullName:       "full_name",
	AvatarFilename: "avatar_filename",
	PasswordDigest: "password_digest",
	Authority:      "authority",
	ProfileID:      "profile_id",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
}
View Source
var UserRels = struct {
	Profile                string
	AchievementUsers       string
	Blogs                  string
	EmailConfirmations     string
	AuthorEntries          string
	GithubContributionDays string
	InviterInvitations     string
	PasswordResets         string
}{
	Profile:                "Profile",
	AchievementUsers:       "AchievementUsers",
	Blogs:                  "Blogs",
	EmailConfirmations:     "EmailConfirmations",
	AuthorEntries:          "AuthorEntries",
	GithubContributionDays: "GithubContributionDays",
	InviterInvitations:     "InviterInvitations",
	PasswordResets:         "PasswordResets",
}

UserRels is where relationship names are stored.

View Source
var UserWhere = struct {
	ID             whereHelperint64
	Name           whereHelperstring
	Email          whereHelperstring
	FullName       whereHelperstring
	AvatarFilename whereHelpernull_String
	PasswordDigest whereHelperstring
	Authority      whereHelperint
	ProfileID      whereHelpernull_Int64
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
}{
	ID:             whereHelperint64{/* contains filtered or unexported fields */},
	Name:           whereHelperstring{/* contains filtered or unexported fields */},
	Email:          whereHelperstring{/* contains filtered or unexported fields */},
	FullName:       whereHelperstring{/* contains filtered or unexported fields */},
	AvatarFilename: whereHelpernull_String{/* contains filtered or unexported fields */},
	PasswordDigest: whereHelperstring{/* contains filtered or unexported fields */},
	Authority:      whereHelperint{/* contains filtered or unexported fields */},
	ProfileID:      whereHelpernull_Int64{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
}

Functions

func AchievementExists

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

AchievementExists checks if the Achievement row exists.

func AchievementUserExists

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

AchievementUserExists checks if the AchievementUser row exists.

func AchievementUsers

func AchievementUsers(mods ...qm.QueryMod) achievementUserQuery

AchievementUsers retrieves all the records using an executor.

func Achievements

func Achievements(mods ...qm.QueryMod) achievementQuery

Achievements retrieves all the records using an executor.

func AddAchievementHook

func AddAchievementHook(hookPoint boil.HookPoint, achievementHook AchievementHook)

AddAchievementHook registers your hook function for all future operations.

func AddAchievementUserHook

func AddAchievementUserHook(hookPoint boil.HookPoint, achievementUserHook AchievementUserHook)

AddAchievementUserHook registers your hook function for all future operations.

func AddBlogHook

func AddBlogHook(hookPoint boil.HookPoint, blogHook BlogHook)

AddBlogHook registers your hook function for all future operations.

func AddDepartmentHook

func AddDepartmentHook(hookPoint boil.HookPoint, departmentHook DepartmentHook)

AddDepartmentHook registers your hook function for all future operations.

func AddEmailConfirmationHook

func AddEmailConfirmationHook(hookPoint boil.HookPoint, emailConfirmationHook EmailConfirmationHook)

AddEmailConfirmationHook registers your hook function for all future operations.

func AddEntryHook

func AddEntryHook(hookPoint boil.HookPoint, entryHook EntryHook)

AddEntryHook registers your hook function for all future operations.

func AddGithubContributionDayHook

func AddGithubContributionDayHook(hookPoint boil.HookPoint, githubContributionDayHook GithubContributionDayHook)

AddGithubContributionDayHook registers your hook function for all future operations.

func AddInvitationHook

func AddInvitationHook(hookPoint boil.HookPoint, invitationHook InvitationHook)

AddInvitationHook registers your hook function for all future operations.

func AddPasswordResetHook

func AddPasswordResetHook(hookPoint boil.HookPoint, passwordResetHook PasswordResetHook)

AddPasswordResetHook registers your hook function for all future operations.

func AddProfileHook

func AddProfileHook(hookPoint boil.HookPoint, profileHook ProfileHook)

AddProfileHook registers your hook function for all future operations.

func AddRoleHook

func AddRoleHook(hookPoint boil.HookPoint, roleHook RoleHook)

AddRoleHook 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 BlogExists

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

BlogExists checks if the Blog row exists.

func Blogs

func Blogs(mods ...qm.QueryMod) blogQuery

Blogs retrieves all the records using an executor.

func DepartmentExists

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

DepartmentExists checks if the Department row exists.

func Departments

func Departments(mods ...qm.QueryMod) departmentQuery

Departments retrieves all the records using an executor.

func EmailConfirmationExists

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

EmailConfirmationExists checks if the EmailConfirmation row exists.

func EmailConfirmations

func EmailConfirmations(mods ...qm.QueryMod) emailConfirmationQuery

EmailConfirmations retrieves all the records using an executor.

func Entries

func Entries(mods ...qm.QueryMod) entryQuery

Entries retrieves all the records using an executor.

func EntryExists

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

EntryExists checks if the Entry row exists.

func GithubContributionDayExists

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

GithubContributionDayExists checks if the GithubContributionDay row exists.

func GithubContributionDays

func GithubContributionDays(mods ...qm.QueryMod) githubContributionDayQuery

GithubContributionDays retrieves all the records using an executor.

func InvitationExists

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

InvitationExists checks if the Invitation row exists.

func Invitations

func Invitations(mods ...qm.QueryMod) invitationQuery

Invitations 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 PasswordResetExists

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

PasswordResetExists checks if the PasswordReset row exists.

func PasswordResets

func PasswordResets(mods ...qm.QueryMod) passwordResetQuery

PasswordResets retrieves all the records using an executor.

func ProfileExists

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

ProfileExists checks if the Profile row exists.

func Profiles

func Profiles(mods ...qm.QueryMod) profileQuery

Profiles retrieves all the records using an executor.

func RoleExists

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

RoleExists checks if the Role row exists.

func Roles

func Roles(mods ...qm.QueryMod) roleQuery

Roles retrieves all the records using an executor.

func UserExists

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

UserExists checks if the User row exists.

func Users

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

Users retrieves all the records using an executor.

Types

type Achievement

type Achievement struct {
	ID            int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Title         string      `boil:"title" json:"title" toml:"title" yaml:"title"`
	Award         string      `boil:"award" json:"award" toml:"award" yaml:"award"`
	URL           string      `boil:"url" json:"url" toml:"url" yaml:"url"`
	Description   string      `boil:"description" json:"description" toml:"description" yaml:"description"`
	ImageFilename null.String `boil:"image_filename" json:"image_filename,omitempty" toml:"image_filename" yaml:"image_filename,omitempty"`
	HappenedAt    time.Time   `boil:"happened_at" json:"happened_at" toml:"happened_at" yaml:"happened_at"`
	CreatedAt     time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt     time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt     null.Time   `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *achievementR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L achievementL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Achievement is an object representing the database table.

func FindAchievement

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

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

func (*Achievement) AchievementUsers

func (o *Achievement) AchievementUsers(mods ...qm.QueryMod) achievementUserQuery

AchievementUsers retrieves all the achievement_user's AchievementUsers with an executor.

func (*Achievement) AddAchievementUsers

func (o *Achievement) AddAchievementUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AchievementUser) error

AddAchievementUsers adds the given related objects to the existing relationships of the achievement, optionally inserting them as new records. Appends related to o.R.AchievementUsers. Sets related.R.Achievement appropriately.

func (*Achievement) Delete

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

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

func (*Achievement) Insert

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

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

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

func (*Achievement) Update

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

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

func (o *Achievement) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type AchievementHook

type AchievementHook func(context.Context, boil.ContextExecutor, *Achievement) error

AchievementHook is the signature for custom Achievement hook methods

type AchievementSlice

type AchievementSlice []*Achievement

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

func (AchievementSlice) DeleteAll

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

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

func (*AchievementSlice) ReloadAll

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

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

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

type AchievementUser

type AchievementUser struct {
	ID            int64 `boil:"id" json:"id" toml:"id" yaml:"id"`
	AchievementID int64 `boil:"achievement_id" json:"achievement_id" toml:"achievement_id" yaml:"achievement_id"`
	UserID        int64 `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Priority      int   `boil:"priority" json:"priority" toml:"priority" yaml:"priority"`

	R *achievementUserR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L achievementUserL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AchievementUser is an object representing the database table.

func FindAchievementUser

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

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

func (*AchievementUser) Achievement

func (o *AchievementUser) Achievement(mods ...qm.QueryMod) achievementQuery

Achievement pointed to by the foreign key.

func (*AchievementUser) Delete

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

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

func (*AchievementUser) Insert

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

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

func (*AchievementUser) SetAchievement

func (o *AchievementUser) SetAchievement(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Achievement) error

SetAchievement of the achievementUser to the related item. Sets o.R.Achievement to related. Adds o to related.R.AchievementUsers.

func (*AchievementUser) SetUser

func (o *AchievementUser) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the achievementUser to the related item. Sets o.R.User to related. Adds o to related.R.AchievementUsers.

func (*AchievementUser) Update

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

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

func (o *AchievementUser) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*AchievementUser) User

func (o *AchievementUser) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type AchievementUserHook

type AchievementUserHook func(context.Context, boil.ContextExecutor, *AchievementUser) error

AchievementUserHook is the signature for custom AchievementUser hook methods

type AchievementUserSlice

type AchievementUserSlice []*AchievementUser

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

func (AchievementUserSlice) DeleteAll

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

func (*AchievementUserSlice) ReloadAll

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

func (AchievementUserSlice) UpdateAll

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

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

type Blog

type Blog struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	URL       string    `boil:"url" json:"url" toml:"url" yaml:"url"`
	FeedURL   string    `boil:"feed_url" json:"feed_url" toml:"feed_url" yaml:"feed_url"`
	UserID    int64     `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *blogR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L blogL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Blog is an object representing the database table.

func FindBlog

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

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

func (*Blog) AddEntries

func (o *Blog) AddEntries(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Entry) error

AddEntries adds the given related objects to the existing relationships of the blog, optionally inserting them as new records. Appends related to o.R.Entries. Sets related.R.Blog appropriately.

func (*Blog) Delete

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

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

func (*Blog) Entries

func (o *Blog) Entries(mods ...qm.QueryMod) entryQuery

Entries retrieves all the entry's Entries with an executor.

func (*Blog) Insert

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

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

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

func (*Blog) SetUser

func (o *Blog) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the blog to the related item. Sets o.R.User to related. Adds o to related.R.Blogs.

func (*Blog) Update

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

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

func (o *Blog) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*Blog) User

func (o *Blog) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type BlogHook

type BlogHook func(context.Context, boil.ContextExecutor, *Blog) error

BlogHook is the signature for custom Blog hook methods

type BlogSlice

type BlogSlice []*Blog

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

func (BlogSlice) DeleteAll

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

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

func (*BlogSlice) ReloadAll

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

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

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

type Department

type Department struct {
	ID        int64  `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string `boil:"name" json:"name" toml:"name" yaml:"name"`
	ShortName string `boil:"short_name" json:"short_name" toml:"short_name" yaml:"short_name"`

	R *departmentR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L departmentL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Department is an object representing the database table.

func FindDepartment

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

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

func (*Department) AddProfiles

func (o *Department) AddProfiles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Profile) error

AddProfiles adds the given related objects to the existing relationships of the department, optionally inserting them as new records. Appends related to o.R.Profiles. Sets related.R.Department appropriately.

func (*Department) Delete

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

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

func (*Department) Insert

func (o *Department) 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 (*Department) Profiles

func (o *Department) Profiles(mods ...qm.QueryMod) profileQuery

Profiles retrieves all the profile's Profiles with an executor.

func (*Department) Reload

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

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

func (*Department) RemoveProfiles

func (o *Department) RemoveProfiles(ctx context.Context, exec boil.ContextExecutor, related ...*Profile) error

RemoveProfiles relationships from objects passed in. Removes related items from R.Profiles (uses pointer comparison, removal does not keep order) Sets related.R.Department.

func (*Department) SetProfiles

func (o *Department) SetProfiles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Profile) error

SetProfiles removes all previously related items of the department replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Department's Profiles accordingly. Replaces o.R.Profiles with related. Sets related.R.Department's Profiles accordingly.

func (*Department) Update

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

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

func (o *Department) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type DepartmentHook

type DepartmentHook func(context.Context, boil.ContextExecutor, *Department) error

DepartmentHook is the signature for custom Department hook methods

type DepartmentSlice

type DepartmentSlice []*Department

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

func (DepartmentSlice) DeleteAll

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

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

func (*DepartmentSlice) ReloadAll

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

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

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

type EmailConfirmation

type EmailConfirmation struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	Token     string    `boil:"token" json:"token" toml:"token" yaml:"token"`
	Email     string    `boil:"email" json:"email" toml:"email" yaml:"email"`
	UserID    int64     `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *emailConfirmationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L emailConfirmationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

EmailConfirmation is an object representing the database table.

func FindEmailConfirmation

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

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

func (*EmailConfirmation) Delete

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

func (*EmailConfirmation) Insert

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

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

func (*EmailConfirmation) SetUser

func (o *EmailConfirmation) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the emailConfirmation to the related item. Sets o.R.User to related. Adds o to related.R.EmailConfirmations.

func (*EmailConfirmation) Update

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

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

func (o *EmailConfirmation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*EmailConfirmation) User

func (o *EmailConfirmation) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type EmailConfirmationHook

type EmailConfirmationHook func(context.Context, boil.ContextExecutor, *EmailConfirmation) error

EmailConfirmationHook is the signature for custom EmailConfirmation hook methods

type EmailConfirmationSlice

type EmailConfirmationSlice []*EmailConfirmation

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

func (EmailConfirmationSlice) DeleteAll

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

func (*EmailConfirmationSlice) ReloadAll

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

func (EmailConfirmationSlice) UpdateAll

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

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

type Entry

type Entry struct {
	ID          int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	Title       string    `boil:"title" json:"title" toml:"title" yaml:"title"`
	Description string    `boil:"description" json:"description" toml:"description" yaml:"description"`
	Content     string    `boil:"content" json:"content" toml:"content" yaml:"content"`
	Link        string    `boil:"link" json:"link" toml:"link" yaml:"link"`
	AuthorID    int64     `boil:"author_id" json:"author_id" toml:"author_id" yaml:"author_id"`
	GUID        string    `boil:"guid" json:"guid" toml:"guid" yaml:"guid"`
	ImageURL    string    `boil:"image_url" json:"image_url" toml:"image_url" yaml:"image_url"`
	BlogID      int64     `boil:"blog_id" json:"blog_id" toml:"blog_id" yaml:"blog_id"`
	PublishedAt time.Time `boil:"published_at" json:"published_at" toml:"published_at" yaml:"published_at"`
	CreatedAt   time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt   time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *entryR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L entryL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Entry is an object representing the database table.

func FindEntry

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

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

func (*Entry) Author

func (o *Entry) Author(mods ...qm.QueryMod) userQuery

Author pointed to by the foreign key.

func (*Entry) Blog

func (o *Entry) Blog(mods ...qm.QueryMod) blogQuery

Blog pointed to by the foreign key.

func (*Entry) Delete

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

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

func (*Entry) Insert

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

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

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

func (*Entry) SetAuthor

func (o *Entry) SetAuthor(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetAuthor of the entry to the related item. Sets o.R.Author to related. Adds o to related.R.AuthorEntries.

func (*Entry) SetBlog

func (o *Entry) SetBlog(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Blog) error

SetBlog of the entry to the related item. Sets o.R.Blog to related. Adds o to related.R.Entries.

func (*Entry) Update

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

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

func (o *Entry) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type EntryHook

type EntryHook func(context.Context, boil.ContextExecutor, *Entry) error

EntryHook is the signature for custom Entry hook methods

type EntrySlice

type EntrySlice []*Entry

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

func (EntrySlice) DeleteAll

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

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

func (*EntrySlice) ReloadAll

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

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

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

type GithubContributionDay

type GithubContributionDay struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	Count     int       `boil:"count" json:"count" toml:"count" yaml:"count"`
	Date      time.Time `boil:"date" json:"date" toml:"date" yaml:"date"`
	UserID    int64     `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *githubContributionDayR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L githubContributionDayL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GithubContributionDay is an object representing the database table.

func FindGithubContributionDay

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

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

func (*GithubContributionDay) Delete

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

func (*GithubContributionDay) Insert

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

func (*GithubContributionDay) Reload

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

func (*GithubContributionDay) SetUser

func (o *GithubContributionDay) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the githubContributionDay to the related item. Sets o.R.User to related. Adds o to related.R.GithubContributionDays.

func (*GithubContributionDay) Update

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

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

func (o *GithubContributionDay) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*GithubContributionDay) User

func (o *GithubContributionDay) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type GithubContributionDayHook

type GithubContributionDayHook func(context.Context, boil.ContextExecutor, *GithubContributionDay) error

GithubContributionDayHook is the signature for custom GithubContributionDay hook methods

type GithubContributionDaySlice

type GithubContributionDaySlice []*GithubContributionDay

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

func (GithubContributionDaySlice) DeleteAll

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

func (*GithubContributionDaySlice) ReloadAll

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

func (GithubContributionDaySlice) UpdateAll

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

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

type Invitation

type Invitation struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	Code      string    `boil:"code" json:"code" toml:"code" yaml:"code"`
	Email     string    `boil:"email" json:"email" toml:"email" yaml:"email"`
	InviterID int64     `boil:"inviter_id" json:"inviter_id" toml:"inviter_id" yaml:"inviter_id"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *invitationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L invitationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Invitation is an object representing the database table.

func FindInvitation

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

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

func (*Invitation) Delete

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

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

func (*Invitation) Insert

func (o *Invitation) 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 (*Invitation) Inviter

func (o *Invitation) Inviter(mods ...qm.QueryMod) userQuery

Inviter pointed to by the foreign key.

func (*Invitation) Reload

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

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

func (*Invitation) SetInviter

func (o *Invitation) SetInviter(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetInviter of the invitation to the related item. Sets o.R.Inviter to related. Adds o to related.R.InviterInvitations.

func (*Invitation) Update

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

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

func (o *Invitation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type InvitationHook

type InvitationHook func(context.Context, boil.ContextExecutor, *Invitation) error

InvitationHook is the signature for custom Invitation hook methods

type InvitationSlice

type InvitationSlice []*Invitation

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

func (InvitationSlice) DeleteAll

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

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

func (*InvitationSlice) ReloadAll

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

func (o InvitationSlice) 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 PasswordReset

type PasswordReset struct {
	ID          int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	TokenDigest string    `boil:"token_digest" json:"token_digest" toml:"token_digest" yaml:"token_digest"`
	Email       string    `boil:"email" json:"email" toml:"email" yaml:"email"`
	UserID      int64     `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	CreatedAt   time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt   time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *passwordResetR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L passwordResetL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PasswordReset is an object representing the database table.

func FindPasswordReset

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

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

func (*PasswordReset) Delete

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

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

func (*PasswordReset) Insert

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

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

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

func (*PasswordReset) SetUser

func (o *PasswordReset) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the passwordReset to the related item. Sets o.R.User to related. Adds o to related.R.PasswordResets.

func (*PasswordReset) Update

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

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

func (o *PasswordReset) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*PasswordReset) User

func (o *PasswordReset) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type PasswordResetHook

type PasswordResetHook func(context.Context, boil.ContextExecutor, *PasswordReset) error

PasswordResetHook is the signature for custom PasswordReset hook methods

type PasswordResetSlice

type PasswordResetSlice []*PasswordReset

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

func (PasswordResetSlice) DeleteAll

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

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

func (*PasswordResetSlice) ReloadAll

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

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

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

type Profile

type Profile struct {
	ID                int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt         time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt         time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	Description       string      `boil:"description" json:"description" toml:"description" yaml:"description"`
	Grade             int         `boil:"grade" json:"grade" toml:"grade" yaml:"grade"`
	Left              bool        `boil:"left" json:"left" toml:"left" yaml:"left"`
	DepartmentID      null.Int64  `boil:"department_id" json:"department_id,omitempty" toml:"department_id" yaml:"department_id,omitempty"`
	RoleID            null.Int64  `boil:"role_id" json:"role_id,omitempty" toml:"role_id" yaml:"role_id,omitempty"`
	TwitterScreenName null.String `` /* 127-byte string literal not displayed */
	GithubUserName    null.String `boil:"github_user_name" json:"github_user_name,omitempty" toml:"github_user_name" yaml:"github_user_name,omitempty"`
	ProfileScope      null.Int    `boil:"profile_scope" json:"profile_scope,omitempty" toml:"profile_scope" yaml:"profile_scope,omitempty"`
	DisplayName       null.String `boil:"display_name" json:"display_name,omitempty" toml:"display_name" yaml:"display_name,omitempty"`
	AtcoderUserName   null.String `boil:"atcoder_user_name" json:"atcoder_user_name,omitempty" toml:"atcoder_user_name" yaml:"atcoder_user_name,omitempty"`

	R *profileR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L profileL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Profile is an object representing the database table.

func FindProfile

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

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

func (*Profile) AddUsers

func (o *Profile) AddUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*User) error

AddUsers adds the given related objects to the existing relationships of the profile, optionally inserting them as new records. Appends related to o.R.Users. Sets related.R.Profile appropriately.

func (*Profile) Delete

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

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

func (*Profile) Department

func (o *Profile) Department(mods ...qm.QueryMod) departmentQuery

Department pointed to by the foreign key.

func (*Profile) Insert

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

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

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

func (*Profile) RemoveDepartment

func (o *Profile) RemoveDepartment(ctx context.Context, exec boil.ContextExecutor, related *Department) error

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

func (*Profile) RemoveRole

func (o *Profile) RemoveRole(ctx context.Context, exec boil.ContextExecutor, related *Role) error

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

func (*Profile) RemoveUsers

func (o *Profile) RemoveUsers(ctx context.Context, exec boil.ContextExecutor, related ...*User) error

RemoveUsers relationships from objects passed in. Removes related items from R.Users (uses pointer comparison, removal does not keep order) Sets related.R.Profile.

func (*Profile) Role

func (o *Profile) Role(mods ...qm.QueryMod) roleQuery

Role pointed to by the foreign key.

func (*Profile) SetDepartment

func (o *Profile) SetDepartment(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Department) error

SetDepartment of the profile to the related item. Sets o.R.Department to related. Adds o to related.R.Profiles.

func (*Profile) SetRole

func (o *Profile) SetRole(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Role) error

SetRole of the profile to the related item. Sets o.R.Role to related. Adds o to related.R.Profiles.

func (*Profile) SetUsers

func (o *Profile) SetUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*User) error

SetUsers removes all previously related items of the profile replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Profile's Users accordingly. Replaces o.R.Users with related. Sets related.R.Profile's Users accordingly.

func (*Profile) Update

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

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

func (o *Profile) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*Profile) Users

func (o *Profile) Users(mods ...qm.QueryMod) userQuery

Users retrieves all the user's Users with an executor.

type ProfileHook

type ProfileHook func(context.Context, boil.ContextExecutor, *Profile) error

ProfileHook is the signature for custom Profile hook methods

type ProfileSlice

type ProfileSlice []*Profile

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

func (ProfileSlice) DeleteAll

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

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

func (*ProfileSlice) ReloadAll

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

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

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

type Role

type Role struct {
	ID   int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"`

	R *roleR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L roleL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Role is an object representing the database table.

func FindRole

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

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

func (*Role) AddProfiles

func (o *Role) AddProfiles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Profile) error

AddProfiles adds the given related objects to the existing relationships of the role, optionally inserting them as new records. Appends related to o.R.Profiles. Sets related.R.Role appropriately.

func (*Role) Delete

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

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

func (*Role) Insert

func (o *Role) 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 (*Role) Profiles

func (o *Role) Profiles(mods ...qm.QueryMod) profileQuery

Profiles retrieves all the profile's Profiles with an executor.

func (*Role) Reload

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

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

func (*Role) RemoveProfiles

func (o *Role) RemoveProfiles(ctx context.Context, exec boil.ContextExecutor, related ...*Profile) error

RemoveProfiles relationships from objects passed in. Removes related items from R.Profiles (uses pointer comparison, removal does not keep order) Sets related.R.Role.

func (*Role) SetProfiles

func (o *Role) SetProfiles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Profile) error

SetProfiles removes all previously related items of the role replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Role's Profiles accordingly. Replaces o.R.Profiles with related. Sets related.R.Role's Profiles accordingly.

func (*Role) Update

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

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

func (o *Role) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type RoleHook

type RoleHook func(context.Context, boil.ContextExecutor, *Role) error

RoleHook is the signature for custom Role hook methods

type RoleSlice

type RoleSlice []*Role

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

func (RoleSlice) DeleteAll

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

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

func (*RoleSlice) ReloadAll

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

func (o RoleSlice) 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             int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name           string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Email          string      `boil:"email" json:"email" toml:"email" yaml:"email"`
	FullName       string      `boil:"full_name" json:"full_name" toml:"full_name" yaml:"full_name"`
	AvatarFilename null.String `boil:"avatar_filename" json:"avatar_filename,omitempty" toml:"avatar_filename" yaml:"avatar_filename,omitempty"`
	PasswordDigest string      `boil:"password_digest" json:"password_digest" toml:"password_digest" yaml:"password_digest"`
	Authority      int         `boil:"authority" json:"authority" toml:"authority" yaml:"authority"`
	ProfileID      null.Int64  `boil:"profile_id" json:"profile_id,omitempty" toml:"profile_id" yaml:"profile_id,omitempty"`
	CreatedAt      time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	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 int64, 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) AchievementUsers

func (o *User) AchievementUsers(mods ...qm.QueryMod) achievementUserQuery

AchievementUsers retrieves all the achievement_user's AchievementUsers with an executor.

func (*User) AddAchievementUsers

func (o *User) AddAchievementUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AchievementUser) error

AddAchievementUsers adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.AchievementUsers. Sets related.R.User appropriately.

func (*User) AddAuthorEntries

func (o *User) AddAuthorEntries(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Entry) error

AddAuthorEntries adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.AuthorEntries. Sets related.R.Author appropriately.

func (*User) AddBlogs

func (o *User) AddBlogs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Blog) error

AddBlogs adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Blogs. Sets related.R.User appropriately.

func (*User) AddEmailConfirmations

func (o *User) AddEmailConfirmations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*EmailConfirmation) error

AddEmailConfirmations adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.EmailConfirmations. Sets related.R.User appropriately.

func (*User) AddGithubContributionDays

func (o *User) AddGithubContributionDays(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GithubContributionDay) error

AddGithubContributionDays adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.GithubContributionDays. Sets related.R.User appropriately.

func (*User) AddInviterInvitations

func (o *User) AddInviterInvitations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Invitation) error

AddInviterInvitations adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.InviterInvitations. Sets related.R.Inviter appropriately.

func (*User) AddPasswordResets

func (o *User) AddPasswordResets(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PasswordReset) error

AddPasswordResets adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.PasswordResets. Sets related.R.User appropriately.

func (*User) AuthorEntries

func (o *User) AuthorEntries(mods ...qm.QueryMod) entryQuery

AuthorEntries retrieves all the entry's Entries with an executor via author_id column.

func (*User) Blogs

func (o *User) Blogs(mods ...qm.QueryMod) blogQuery

Blogs retrieves all the blog's Blogs with an executor.

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) EmailConfirmations

func (o *User) EmailConfirmations(mods ...qm.QueryMod) emailConfirmationQuery

EmailConfirmations retrieves all the email_confirmation's EmailConfirmations with an executor.

func (*User) GithubContributionDays

func (o *User) GithubContributionDays(mods ...qm.QueryMod) githubContributionDayQuery

GithubContributionDays retrieves all the github_contribution_day's GithubContributionDays with an executor.

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) InviterInvitations

func (o *User) InviterInvitations(mods ...qm.QueryMod) invitationQuery

InviterInvitations retrieves all the invitation's Invitations with an executor via inviter_id column.

func (*User) PasswordResets

func (o *User) PasswordResets(mods ...qm.QueryMod) passwordResetQuery

PasswordResets retrieves all the password_reset's PasswordResets with an executor.

func (*User) Profile

func (o *User) Profile(mods ...qm.QueryMod) profileQuery

Profile pointed to by the foreign key.

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) RemoveProfile

func (o *User) RemoveProfile(ctx context.Context, exec boil.ContextExecutor, related *Profile) error

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

func (*User) SetProfile

func (o *User) SetProfile(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Profile) error

SetProfile of the user to the related item. Sets o.R.Profile to related. Adds o to related.R.Users.

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, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type UserHook

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

UserHook is the signature for custom User hook methods

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