models

package
v0.0.0-...-1babd1e Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccessLogColumns = struct {
	ID        string
	CreatedAt string
	UserID    string
	Method    string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UserID:    "user_id",
	Method:    "method",
}
View Source
var AccessLogRels = struct {
	User string
}{
	User: "User",
}

AccessLogRels is where relationship names are stored.

View Source
var AccessLogTableColumns = struct {
	ID        string
	CreatedAt string
	UserID    string
	Method    string
}{
	ID:        "access_log.id",
	CreatedAt: "access_log.created_at",
	UserID:    "access_log.user_id",
	Method:    "access_log.method",
}
View Source
var AccessLogWhere = struct {
	ID        whereHelperint
	CreatedAt whereHelpertime_Time
	UserID    whereHelpernull_Int
	Method    whereHelperstring
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UserID:    whereHelpernull_Int{/* contains filtered or unexported fields */},
	Method:    whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var AccountColumns = struct {
	ID         string
	CreatedAt  string
	UpdatedAt  string
	DeletedAt  string
	Username   string
	Role       string
	Email      string
	PasswdHash string
}{
	ID:         "id",
	CreatedAt:  "created_at",
	UpdatedAt:  "updated_at",
	DeletedAt:  "deleted_at",
	Username:   "username",
	Role:       "role",
	Email:      "email",
	PasswdHash: "passwd_hash",
}
View Source
var AccountRels = struct {
	UserAccessLogs string
	SiteRoles      string
}{
	UserAccessLogs: "UserAccessLogs",
	SiteRoles:      "SiteRoles",
}

AccountRels is where relationship names are stored.

View Source
var AccountTableColumns = struct {
	ID         string
	CreatedAt  string
	UpdatedAt  string
	DeletedAt  string
	Username   string
	Role       string
	Email      string
	PasswdHash string
}{
	ID:         "account.id",
	CreatedAt:  "account.created_at",
	UpdatedAt:  "account.updated_at",
	DeletedAt:  "account.deleted_at",
	Username:   "account.username",
	Role:       "account.role",
	Email:      "account.email",
	PasswdHash: "account.passwd_hash",
}
View Source
var AccountWhere = struct {
	ID         whereHelperint
	CreatedAt  whereHelpertime_Time
	UpdatedAt  whereHelpertime_Time
	DeletedAt  whereHelpernull_Time
	Username   whereHelperstring
	Role       whereHelperstring
	Email      whereHelperstring
	PasswdHash whereHelperstring
}{
	ID:         whereHelperint{/* 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 */},
	Username:   whereHelperstring{/* contains filtered or unexported fields */},
	Role:       whereHelperstring{/* contains filtered or unexported fields */},
	Email:      whereHelperstring{/* contains filtered or unexported fields */},
	PasswdHash: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var AttachtmentColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	SiteID    string
	RelatedID string
	URL       string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
	SiteID:    "site_id",
	RelatedID: "related_id",
	URL:       "url",
}
View Source
var AttachtmentRels = struct {
	Related string
	Site    string
}{
	Related: "Related",
	Site:    "Site",
}

AttachtmentRels is where relationship names are stored.

View Source
var AttachtmentTableColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	SiteID    string
	RelatedID string
	URL       string
}{
	ID:        "attachtment.id",
	CreatedAt: "attachtment.created_at",
	UpdatedAt: "attachtment.updated_at",
	DeletedAt: "attachtment.deleted_at",
	SiteID:    "attachtment.site_id",
	RelatedID: "attachtment.related_id",
	URL:       "attachtment.url",
}
View Source
var AttachtmentWhere = struct {
	ID        whereHelperint
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
	SiteID    whereHelperint
	RelatedID whereHelperint
	URL       whereHelperstring
}{
	ID:        whereHelperint{/* 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 */},
	SiteID:    whereHelperint{/* contains filtered or unexported fields */},
	RelatedID: whereHelperint{/* contains filtered or unexported fields */},
	URL:       whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var CommentColumns = struct {
	ID        string
	CreatedAt string
	PostID    string
	Email     string
	Name      string
	Content   string
}{
	ID:        "id",
	CreatedAt: "created_at",
	PostID:    "post_id",
	Email:     "email",
	Name:      "name",
	Content:   "content",
}
View Source
var CommentRels = struct {
	Post string
}{
	Post: "Post",
}

CommentRels is where relationship names are stored.

View Source
var CommentTableColumns = struct {
	ID        string
	CreatedAt string
	PostID    string
	Email     string
	Name      string
	Content   string
}{
	ID:        "comment.id",
	CreatedAt: "comment.created_at",
	PostID:    "comment.post_id",
	Email:     "comment.email",
	Name:      "comment.name",
	Content:   "comment.content",
}
View Source
var CommentWhere = struct {
	ID        whereHelperint
	CreatedAt whereHelpertime_Time
	PostID    whereHelperint
	Email     whereHelperstring
	Name      whereHelperstring
	Content   whereHelperstring
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	PostID:    whereHelperint{/* contains filtered or unexported fields */},
	Email:     whereHelperstring{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	Content:   whereHelperstring{/* 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 PostColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	SiteID    string
	Content   string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
	SiteID:    "site_id",
	Content:   "content",
}
View Source
var PostRels = struct {
	Site                string
	RelatedAttachtments string
	Comments            string
}{
	Site:                "Site",
	RelatedAttachtments: "RelatedAttachtments",
	Comments:            "Comments",
}

PostRels is where relationship names are stored.

View Source
var PostTableColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	SiteID    string
	Content   string
}{
	ID:        "post.id",
	CreatedAt: "post.created_at",
	UpdatedAt: "post.updated_at",
	DeletedAt: "post.deleted_at",
	SiteID:    "post.site_id",
	Content:   "post.content",
}
View Source
var PostWhere = struct {
	ID        whereHelperint
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
	SiteID    whereHelperint
	Content   whereHelperstring
}{
	ID:        whereHelperint{/* 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 */},
	SiteID:    whereHelperint{/* contains filtered or unexported fields */},
	Content:   whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var SiteColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	Name      string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
	Name:      "name",
}
View Source
var SiteRels = struct {
	Attachtments string
	Posts        string
	SiteRoles    string
}{
	Attachtments: "Attachtments",
	Posts:        "Posts",
	SiteRoles:    "SiteRoles",
}

SiteRels is where relationship names are stored.

View Source
var SiteRoleColumns = struct {
	CreatedAt string
	UpdatedAt string
	AccountID string
	SiteID    string
	Role      string
}{
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	AccountID: "account_id",
	SiteID:    "site_id",
	Role:      "role",
}
View Source
var SiteRoleRels = struct {
	Account string
	Site    string
}{
	Account: "Account",
	Site:    "Site",
}

SiteRoleRels is where relationship names are stored.

View Source
var SiteRoleTableColumns = struct {
	CreatedAt string
	UpdatedAt string
	AccountID string
	SiteID    string
	Role      string
}{
	CreatedAt: "site_role.created_at",
	UpdatedAt: "site_role.updated_at",
	AccountID: "site_role.account_id",
	SiteID:    "site_role.site_id",
	Role:      "site_role.role",
}
View Source
var SiteRoleWhere = struct {
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	AccountID whereHelperint
	SiteID    whereHelperint
	Role      whereHelperstring
}{
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	AccountID: whereHelperint{/* contains filtered or unexported fields */},
	SiteID:    whereHelperint{/* contains filtered or unexported fields */},
	Role:      whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var SiteTableColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	Name      string
}{
	ID:        "site.id",
	CreatedAt: "site.created_at",
	UpdatedAt: "site.updated_at",
	DeletedAt: "site.deleted_at",
	Name:      "site.name",
}
View Source
var SiteWhere = struct {
	ID        whereHelperint
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
	Name      whereHelperstring
}{
	ID:        whereHelperint{/* 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 */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	AccessLog   string
	Account     string
	Attachtment string
	Comment     string
	Post        string
	Site        string
	SiteRole    string
}{
	AccessLog:   "access_log",
	Account:     "account",
	Attachtment: "attachtment",
	Comment:     "comment",
	Post:        "post",
	Site:        "site",
	SiteRole:    "site_role",
}
View Source
var ViewNames = struct {
}{}

Functions

func AccessLogExists

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

AccessLogExists checks if the AccessLog row exists.

func AccessLogs

func AccessLogs(mods ...qm.QueryMod) accessLogQuery

AccessLogs retrieves all the records using an executor.

func AccountExists

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

AccountExists checks if the Account row exists.

func Accounts

func Accounts(mods ...qm.QueryMod) accountQuery

Accounts retrieves all the records using an executor.

func AddAccessLogHook

func AddAccessLogHook(hookPoint boil.HookPoint, accessLogHook AccessLogHook)

AddAccessLogHook registers your hook function for all future operations.

func AddAccountHook

func AddAccountHook(hookPoint boil.HookPoint, accountHook AccountHook)

AddAccountHook registers your hook function for all future operations.

func AddAttachtmentHook

func AddAttachtmentHook(hookPoint boil.HookPoint, attachtmentHook AttachtmentHook)

AddAttachtmentHook registers your hook function for all future operations.

func AddCommentHook

func AddCommentHook(hookPoint boil.HookPoint, commentHook CommentHook)

AddCommentHook registers your hook function for all future operations.

func AddPostHook

func AddPostHook(hookPoint boil.HookPoint, postHook PostHook)

AddPostHook registers your hook function for all future operations.

func AddSiteHook

func AddSiteHook(hookPoint boil.HookPoint, siteHook SiteHook)

AddSiteHook registers your hook function for all future operations.

func AddSiteRoleHook

func AddSiteRoleHook(hookPoint boil.HookPoint, siteRoleHook SiteRoleHook)

AddSiteRoleHook registers your hook function for all future operations.

func AttachtmentExists

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

AttachtmentExists checks if the Attachtment row exists.

func Attachtments

func Attachtments(mods ...qm.QueryMod) attachtmentQuery

Attachtments retrieves all the records using an executor.

func CommentExists

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

CommentExists checks if the Comment row exists.

func Comments

func Comments(mods ...qm.QueryMod) commentQuery

Comments 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 PostExists

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

PostExists checks if the Post row exists.

func Posts

func Posts(mods ...qm.QueryMod) postQuery

Posts retrieves all the records using an executor.

func SiteExists

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

SiteExists checks if the Site row exists.

func SiteRoleExists

func SiteRoleExists(ctx context.Context, exec boil.ContextExecutor, accountID int, siteID int) (bool, error)

SiteRoleExists checks if the SiteRole row exists.

func SiteRoles

func SiteRoles(mods ...qm.QueryMod) siteRoleQuery

SiteRoles retrieves all the records using an executor.

func Sites

func Sites(mods ...qm.QueryMod) siteQuery

Sites retrieves all the records using an executor.

Types

type AccessLog

type AccessLog struct {
	ID        int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UserID    null.Int  `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"`
	Method    string    `boil:"method" json:"method" toml:"method" yaml:"method"`

	R *accessLogR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L accessLogL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AccessLog is an object representing the database table.

func FindAccessLog

func FindAccessLog(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*AccessLog, error)

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

func (*AccessLog) Delete

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

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

func (*AccessLog) Exists

func (o *AccessLog) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the AccessLog row exists.

func (*AccessLog) GetUser

func (o *AccessLog) GetUser() *Account

func (*AccessLog) Insert

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

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

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

func (*AccessLog) RemoveUser

func (o *AccessLog) RemoveUser(ctx context.Context, exec boil.ContextExecutor, related *Account) error

RemoveUser relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct.

func (*AccessLog) SetUser

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

SetUser of the accessLog to the related item. Sets o.R.User to related. Adds o to related.R.UserAccessLogs.

func (*AccessLog) Update

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

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

func (o *AccessLog) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 (*AccessLog) User

func (o *AccessLog) User(mods ...qm.QueryMod) accountQuery

User pointed to by the foreign key.

type AccessLogHook

type AccessLogHook func(context.Context, boil.ContextExecutor, *AccessLog) error

AccessLogHook is the signature for custom AccessLog hook methods

type AccessLogSlice

type AccessLogSlice []*AccessLog

AccessLogSlice is an alias for a slice of pointers to AccessLog. This should almost always be used instead of []AccessLog.

func (AccessLogSlice) DeleteAll

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

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

func (*AccessLogSlice) ReloadAll

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

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

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

type Account

type Account struct {
	ID         int       `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"`
	DeletedAt  null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	Username   string    `boil:"username" json:"username" toml:"username" yaml:"username"`
	Role       string    `boil:"role" json:"role" toml:"role" yaml:"role"`
	Email      string    `boil:"email" json:"email" toml:"email" yaml:"email"`
	PasswdHash string    `boil:"passwd_hash" json:"passwd_hash" toml:"passwd_hash" yaml:"passwd_hash"`

	R *accountR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L accountL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Account is an object representing the database table.

func FindAccount

func FindAccount(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Account, error)

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

func (*Account) AddSiteRoles

func (o *Account) AddSiteRoles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*SiteRole) error

AddSiteRoles adds the given related objects to the existing relationships of the account, optionally inserting them as new records. Appends related to o.R.SiteRoles. Sets related.R.Account appropriately.

func (*Account) AddUserAccessLogs

func (o *Account) AddUserAccessLogs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AccessLog) error

AddUserAccessLogs adds the given related objects to the existing relationships of the account, optionally inserting them as new records. Appends related to o.R.UserAccessLogs. Sets related.R.User appropriately.

func (*Account) Delete

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

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

func (*Account) Exists

func (o *Account) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Account row exists.

func (*Account) GetSiteRoles

func (o *Account) GetSiteRoles() SiteRoleSlice

func (*Account) GetUserAccessLogs

func (o *Account) GetUserAccessLogs() AccessLogSlice

func (*Account) Insert

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

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

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

func (*Account) RemoveUserAccessLogs

func (o *Account) RemoveUserAccessLogs(ctx context.Context, exec boil.ContextExecutor, related ...*AccessLog) error

RemoveUserAccessLogs relationships from objects passed in. Removes related items from R.UserAccessLogs (uses pointer comparison, removal does not keep order) Sets related.R.User.

func (*Account) SetUserAccessLogs

func (o *Account) SetUserAccessLogs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AccessLog) error

SetUserAccessLogs removes all previously related items of the account replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's UserAccessLogs accordingly. Replaces o.R.UserAccessLogs with related. Sets related.R.User's UserAccessLogs accordingly.

func (*Account) SiteRoles

func (o *Account) SiteRoles(mods ...qm.QueryMod) siteRoleQuery

SiteRoles retrieves all the site_role's SiteRoles with an executor.

func (*Account) Update

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

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

func (o *Account) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 (*Account) UserAccessLogs

func (o *Account) UserAccessLogs(mods ...qm.QueryMod) accessLogQuery

UserAccessLogs retrieves all the access_log's AccessLogs with an executor via user_id column.

type AccountHook

type AccountHook func(context.Context, boil.ContextExecutor, *Account) error

AccountHook is the signature for custom Account hook methods

type AccountSlice

type AccountSlice []*Account

AccountSlice is an alias for a slice of pointers to Account. This should almost always be used instead of []Account.

func (AccountSlice) DeleteAll

func (o AccountSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*AccountSlice) ReloadAll

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

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

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

type Attachtment

type Attachtment struct {
	ID        int       `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"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	SiteID    int       `boil:"site_id" json:"site_id" toml:"site_id" yaml:"site_id"`
	RelatedID int       `boil:"related_id" json:"related_id" toml:"related_id" yaml:"related_id"`
	URL       string    `boil:"url" json:"url" toml:"url" yaml:"url"`

	R *attachtmentR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L attachtmentL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Attachtment is an object representing the database table.

func FindAttachtment

func FindAttachtment(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Attachtment, error)

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

func (*Attachtment) Delete

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

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

func (*Attachtment) Exists

func (o *Attachtment) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Attachtment row exists.

func (*Attachtment) GetRelated

func (o *Attachtment) GetRelated() *Post

func (*Attachtment) GetSite

func (o *Attachtment) GetSite() *Site

func (*Attachtment) Insert

func (o *Attachtment) 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 (*Attachtment) Related

func (o *Attachtment) Related(mods ...qm.QueryMod) postQuery

Related pointed to by the foreign key.

func (*Attachtment) Reload

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

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

func (*Attachtment) SetRelated

func (o *Attachtment) SetRelated(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Post) error

SetRelated of the attachtment to the related item. Sets o.R.Related to related. Adds o to related.R.RelatedAttachtments.

func (*Attachtment) SetSite

func (o *Attachtment) SetSite(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Site) error

SetSite of the attachtment to the related item. Sets o.R.Site to related. Adds o to related.R.Attachtments.

func (*Attachtment) Site

func (o *Attachtment) Site(mods ...qm.QueryMod) siteQuery

Site pointed to by the foreign key.

func (*Attachtment) Update

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

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

func (o *Attachtment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 AttachtmentHook

type AttachtmentHook func(context.Context, boil.ContextExecutor, *Attachtment) error

AttachtmentHook is the signature for custom Attachtment hook methods

type AttachtmentSlice

type AttachtmentSlice []*Attachtment

AttachtmentSlice is an alias for a slice of pointers to Attachtment. This should almost always be used instead of []Attachtment.

func (AttachtmentSlice) DeleteAll

func (o AttachtmentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*AttachtmentSlice) ReloadAll

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

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

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

type Comment

type Comment struct {
	ID        int       `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	PostID    int       `boil:"post_id" json:"post_id" toml:"post_id" yaml:"post_id"`
	Email     string    `boil:"email" json:"email" toml:"email" yaml:"email"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Content   string    `boil:"content" json:"content" toml:"content" yaml:"content"`

	R *commentR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L commentL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Comment is an object representing the database table.

func FindComment

func FindComment(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Comment, error)

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

func (*Comment) Delete

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

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

func (*Comment) Exists

func (o *Comment) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Comment row exists.

func (*Comment) GetPost

func (o *Comment) GetPost() *Post

func (*Comment) Insert

func (o *Comment) 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 (*Comment) Post

func (o *Comment) Post(mods ...qm.QueryMod) postQuery

Post pointed to by the foreign key.

func (*Comment) Reload

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

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

func (*Comment) SetPost

func (o *Comment) SetPost(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Post) error

SetPost of the comment to the related item. Sets o.R.Post to related. Adds o to related.R.Comments.

func (*Comment) Update

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

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

func (o *Comment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 CommentHook

type CommentHook func(context.Context, boil.ContextExecutor, *Comment) error

CommentHook is the signature for custom Comment hook methods

type CommentSlice

type CommentSlice []*Comment

CommentSlice is an alias for a slice of pointers to Comment. This should almost always be used instead of []Comment.

func (CommentSlice) DeleteAll

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

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

func (*CommentSlice) ReloadAll

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

func (o CommentSlice) 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 Post

type Post struct {
	ID        int       `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"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	SiteID    int       `boil:"site_id" json:"site_id" toml:"site_id" yaml:"site_id"`
	Content   string    `boil:"content" json:"content" toml:"content" yaml:"content"`

	R *postR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L postL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Post is an object representing the database table.

func FindPost

func FindPost(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Post, error)

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

func (*Post) AddComments

func (o *Post) AddComments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Comment) error

AddComments adds the given related objects to the existing relationships of the post, optionally inserting them as new records. Appends related to o.R.Comments. Sets related.R.Post appropriately.

func (*Post) AddRelatedAttachtments

func (o *Post) AddRelatedAttachtments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Attachtment) error

AddRelatedAttachtments adds the given related objects to the existing relationships of the post, optionally inserting them as new records. Appends related to o.R.RelatedAttachtments. Sets related.R.Related appropriately.

func (*Post) Comments

func (o *Post) Comments(mods ...qm.QueryMod) commentQuery

Comments retrieves all the comment's Comments with an executor.

func (*Post) Delete

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

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

func (*Post) Exists

func (o *Post) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Post row exists.

func (*Post) GetComments

func (o *Post) GetComments() CommentSlice

func (*Post) GetRelatedAttachtments

func (o *Post) GetRelatedAttachtments() AttachtmentSlice

func (*Post) GetSite

func (o *Post) GetSite() *Site

func (*Post) Insert

func (o *Post) 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 (*Post) RelatedAttachtments

func (o *Post) RelatedAttachtments(mods ...qm.QueryMod) attachtmentQuery

RelatedAttachtments retrieves all the attachtment's Attachtments with an executor via related_id column.

func (*Post) Reload

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

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

func (*Post) SetSite

func (o *Post) SetSite(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Site) error

SetSite of the post to the related item. Sets o.R.Site to related. Adds o to related.R.Posts.

func (*Post) Site

func (o *Post) Site(mods ...qm.QueryMod) siteQuery

Site pointed to by the foreign key.

func (*Post) Update

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

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

func (o *Post) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 PostHook

type PostHook func(context.Context, boil.ContextExecutor, *Post) error

PostHook is the signature for custom Post hook methods

type PostSlice

type PostSlice []*Post

PostSlice is an alias for a slice of pointers to Post. This should almost always be used instead of []Post.

func (PostSlice) DeleteAll

func (o PostSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*PostSlice) ReloadAll

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

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

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

type Site

type Site struct {
	ID        int       `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"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`

	R *siteR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L siteL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Site is an object representing the database table.

func FindSite

func FindSite(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*Site, error)

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

func (*Site) AddAttachtments

func (o *Site) AddAttachtments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Attachtment) error

AddAttachtments adds the given related objects to the existing relationships of the site, optionally inserting them as new records. Appends related to o.R.Attachtments. Sets related.R.Site appropriately.

func (*Site) AddPosts

func (o *Site) AddPosts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Post) error

AddPosts adds the given related objects to the existing relationships of the site, optionally inserting them as new records. Appends related to o.R.Posts. Sets related.R.Site appropriately.

func (*Site) AddSiteRoles

func (o *Site) AddSiteRoles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*SiteRole) error

AddSiteRoles adds the given related objects to the existing relationships of the site, optionally inserting them as new records. Appends related to o.R.SiteRoles. Sets related.R.Site appropriately.

func (*Site) Attachtments

func (o *Site) Attachtments(mods ...qm.QueryMod) attachtmentQuery

Attachtments retrieves all the attachtment's Attachtments with an executor.

func (*Site) Delete

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

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

func (*Site) Exists

func (o *Site) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Site row exists.

func (*Site) GetAttachtments

func (o *Site) GetAttachtments() AttachtmentSlice

func (*Site) GetPosts

func (o *Site) GetPosts() PostSlice

func (*Site) GetSiteRoles

func (o *Site) GetSiteRoles() SiteRoleSlice

func (*Site) Insert

func (o *Site) 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 (*Site) Posts

func (o *Site) Posts(mods ...qm.QueryMod) postQuery

Posts retrieves all the post's Posts with an executor.

func (*Site) Reload

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

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

func (*Site) SiteRoles

func (o *Site) SiteRoles(mods ...qm.QueryMod) siteRoleQuery

SiteRoles retrieves all the site_role's SiteRoles with an executor.

func (*Site) Update

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

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

func (o *Site) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 SiteHook

type SiteHook func(context.Context, boil.ContextExecutor, *Site) error

SiteHook is the signature for custom Site hook methods

type SiteRole

type SiteRole struct {
	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"`
	AccountID int       `boil:"account_id" json:"account_id" toml:"account_id" yaml:"account_id"`
	SiteID    int       `boil:"site_id" json:"site_id" toml:"site_id" yaml:"site_id"`
	Role      string    `boil:"role" json:"role" toml:"role" yaml:"role"`

	R *siteRoleR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L siteRoleL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

SiteRole is an object representing the database table.

func FindSiteRole

func FindSiteRole(ctx context.Context, exec boil.ContextExecutor, accountID int, siteID int, selectCols ...string) (*SiteRole, error)

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

func (*SiteRole) Account

func (o *SiteRole) Account(mods ...qm.QueryMod) accountQuery

Account pointed to by the foreign key.

func (*SiteRole) Delete

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

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

func (*SiteRole) Exists

func (o *SiteRole) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the SiteRole row exists.

func (*SiteRole) GetAccount

func (o *SiteRole) GetAccount() *Account

func (*SiteRole) GetSite

func (o *SiteRole) GetSite() *Site

func (*SiteRole) Insert

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

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

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

func (*SiteRole) SetAccount

func (o *SiteRole) SetAccount(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error

SetAccount of the siteRole to the related item. Sets o.R.Account to related. Adds o to related.R.SiteRoles.

func (*SiteRole) SetSite

func (o *SiteRole) SetSite(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Site) error

SetSite of the siteRole to the related item. Sets o.R.Site to related. Adds o to related.R.SiteRoles.

func (*SiteRole) Site

func (o *SiteRole) Site(mods ...qm.QueryMod) siteQuery

Site pointed to by the foreign key.

func (*SiteRole) Update

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

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

func (o *SiteRole) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) 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 SiteRoleHook

type SiteRoleHook func(context.Context, boil.ContextExecutor, *SiteRole) error

SiteRoleHook is the signature for custom SiteRole hook methods

type SiteRoleSlice

type SiteRoleSlice []*SiteRole

SiteRoleSlice is an alias for a slice of pointers to SiteRole. This should almost always be used instead of []SiteRole.

func (SiteRoleSlice) DeleteAll

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

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

func (*SiteRoleSlice) ReloadAll

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

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

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

type SiteSlice

type SiteSlice []*Site

SiteSlice is an alias for a slice of pointers to Site. This should almost always be used instead of []Site.

func (SiteSlice) DeleteAll

func (o SiteSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*SiteSlice) ReloadAll

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

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

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

type UpsertOptionFunc

type UpsertOptionFunc func(o *UpsertOptions)

func UpsertConflictTarget

func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc

func UpsertUpdateSet

func UpsertUpdateSet(updateSet string) UpsertOptionFunc

type UpsertOptions

type UpsertOptions struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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