orm

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSyncFail = errors.New("orm: 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 GroupColumns = struct {
	ID             string
	Name           string
	NotificationID string
	Description    string
	CreatedAt      string
	UpdatedAt      string
}{
	ID:             "id",
	Name:           "name",
	NotificationID: "notification_id",
	Description:    "description",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
}
View Source
var GroupRels = struct {
	Notification string
	GroupUsers   string
}{
	Notification: "Notification",
	GroupUsers:   "GroupUsers",
}

GroupRels is where relationship names are stored.

View Source
var GroupUserColumns = struct {
	ID        string
	UserID    string
	GroupID   string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	UserID:    "user_id",
	GroupID:   "group_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var GroupUserRels = struct {
	User  string
	Group string
}{
	User:  "User",
	Group: "Group",
}

GroupUserRels is where relationship names are stored.

View Source
var MenuItemColumns = struct {
	ID           string
	WorkspaceID  string
	PostID       string
	ParentMenuID string
	CreatedAt    string
	UpdatedAt    string
}{
	ID:           "id",
	WorkspaceID:  "workspace_id",
	PostID:       "post_id",
	ParentMenuID: "parent_menu_id",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
}
View Source
var MenuItemRels = struct {
	Workspace           string
	Post                string
	ParentMenu          string
	ParentMenuMenuItems string
}{
	Workspace:           "Workspace",
	Post:                "Post",
	ParentMenu:          "ParentMenu",
	ParentMenuMenuItems: "ParentMenuMenuItems",
}

MenuItemRels is where relationship names are stored.

View Source
var NotificationColumns = struct {
	ID         string
	Name       string
	Service    string
	WebhookURL string
	Channel    string
	UserName   string
	CreatedAt  string
	UpdatedAt  string
}{
	ID:         "id",
	Name:       "name",
	Service:    "service",
	WebhookURL: "webhook_url",
	Channel:    "channel",
	UserName:   "user_name",
	CreatedAt:  "created_at",
	UpdatedAt:  "updated_at",
}
View Source
var NotificationRels = struct {
	Groups     string
	Workspaces string
}{
	Groups:     "Groups",
	Workspaces: "Workspaces",
}

NotificationRels is where relationship names are stored.

View Source
var PostColumns = struct {
	ID            string
	WorkspaceID   string
	Title         string
	Body          string
	CreatorUserID string
	EditorUserID  string
	EditStatus    string
	CreatedAt     string
	UpdatedAt     string
}{
	ID:            "id",
	WorkspaceID:   "workspace_id",
	Title:         "title",
	Body:          "body",
	CreatorUserID: "creator_user_id",
	EditorUserID:  "editor_user_id",
	EditStatus:    "edit_status",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
}
View Source
var PostCommentColumns = struct {
	ID        string
	PostID    string
	Comment   string
	UserID    string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	PostID:    "post_id",
	Comment:   "comment",
	UserID:    "user_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var PostCommentRels = struct {
	Post string
	User string
}{
	Post: "Post",
	User: "User",
}

PostCommentRels is where relationship names are stored.

View Source
var PostHistoryColumns = struct {
	ID           string
	Version      string
	PostID       string
	Title        string
	Body         string
	EditorUserID string
	EditStatus   string
	CreatedAt    string
	UpdatedAt    string
}{
	ID:           "id",
	Version:      "version",
	PostID:       "post_id",
	Title:        "title",
	Body:         "body",
	EditorUserID: "editor_user_id",
	EditStatus:   "edit_status",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
}
View Source
var PostHistoryRels = struct {
	Post       string
	EditorUser string
}{
	Post:       "Post",
	EditorUser: "EditorUser",
}

PostHistoryRels is where relationship names are stored.

View Source
var PostLikeColumns = struct {
	ID        string
	PostID    string
	UserID    string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	PostID:    "post_id",
	UserID:    "user_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var PostLikeRels = struct {
	Post string
	User string
}{
	Post: "Post",
	User: "User",
}

PostLikeRels is where relationship names are stored.

View Source
var PostReadColumns = struct {
	ID        string
	PostID    string
	UserID    string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	PostID:    "post_id",
	UserID:    "user_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var PostReadRels = struct {
	Post string
	User string
}{
	Post: "Post",
	User: "User",
}

PostReadRels is where relationship names are stored.

View Source
var PostRels = struct {
	Workspace       string
	CreatorUser     string
	EditorUser      string
	MenuItem        string
	PostTemplate    string
	PostHistories   string
	PostLikes       string
	PostReads       string
	PostUploadFiles string
	PostsTags       string
}{
	Workspace:       "Workspace",
	CreatorUser:     "CreatorUser",
	EditorUser:      "EditorUser",
	MenuItem:        "MenuItem",
	PostTemplate:    "PostTemplate",
	PostHistories:   "PostHistories",
	PostLikes:       "PostLikes",
	PostReads:       "PostReads",
	PostUploadFiles: "PostUploadFiles",
	PostsTags:       "PostsTags",
}

PostRels is where relationship names are stored.

View Source
var PostTemplateColumns = struct {
	ID          string
	WorkspaceID string
	PostID      string
	CreatedAt   string
	UpdatedAt   string
}{
	ID:          "id",
	WorkspaceID: "workspace_id",
	PostID:      "post_id",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
}
View Source
var PostTemplateRels = struct {
	Workspace string
	Post      string
}{
	Workspace: "Workspace",
	Post:      "Post",
}

PostTemplateRels is where relationship names are stored.

View Source
var PostUploadFileColumns = struct {
	ID        string
	PostID    string
	FileName  string
	FileURL   string
	UserID    string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	PostID:    "post_id",
	FileName:  "file_name",
	FileURL:   "file_url",
	UserID:    "user_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var PostUploadFileRels = struct {
	Post string
	User string
}{
	Post: "Post",
	User: "User",
}

PostUploadFileRels is where relationship names are stored.

View Source
var PostsTagColumns = struct {
	ID        string
	PostID    string
	TagID     string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	PostID:    "post_id",
	TagID:     "tag_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var PostsTagRels = struct {
	Post string
	Tag  string
}{
	Post: "Post",
	Tag:  "Tag",
}

PostsTagRels is where relationship names are stored.

View Source
var RoleColumns = struct {
	ID        string
	Name      string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Name:      "name",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var RolePermissionColumns = struct {
	ID         string
	RoleID     string
	Permission string
	CreatedAt  string
	UpdatedAt  string
}{
	ID:         "id",
	RoleID:     "role_id",
	Permission: "permission",
	CreatedAt:  "created_at",
	UpdatedAt:  "updated_at",
}
View Source
var RolePermissionRels = struct {
	Role string
}{
	Role: "Role",
}

RolePermissionRels is where relationship names are stored.

View Source
var RoleRels = struct {
	RolePermissions string
}{
	RolePermissions: "RolePermissions",
}

RoleRels is where relationship names are stored.

View Source
var TableNames = struct {
	GooseDBVersion      string
	GroupUsers          string
	Groups              string
	MenuItems           string
	Notifications       string
	PostComments        string
	PostHistories       string
	PostLikes           string
	PostReads           string
	PostTemplates       string
	PostUploadFiles     string
	Posts               string
	PostsTags           string
	RolePermissions     string
	Roles               string
	Tags                string
	UserSigninHistories string
	UserTokens          string
	Users               string
	Workspaces          string
}{
	GooseDBVersion:      "goose_db_version",
	GroupUsers:          "group_users",
	Groups:              "groups",
	MenuItems:           "menu_items",
	Notifications:       "notifications",
	PostComments:        "post_comments",
	PostHistories:       "post_histories",
	PostLikes:           "post_likes",
	PostReads:           "post_reads",
	PostTemplates:       "post_templates",
	PostUploadFiles:     "post_upload_files",
	Posts:               "posts",
	PostsTags:           "posts_tags",
	RolePermissions:     "role_permissions",
	Roles:               "roles",
	Tags:                "tags",
	UserSigninHistories: "user_signin_histories",
	UserTokens:          "user_tokens",
	Users:               "users",
	Workspaces:          "workspaces",
}
View Source
var TagColumns = struct {
	ID        string
	Name      string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Name:      "name",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var TagRels = struct {
	PostsTags string
}{
	PostsTags: "PostsTags",
}

TagRels is where relationship names are stored.

View Source
var UserColumns = struct {
	ID        string
	Email     string
	Name      string
	ImageURL  string
	Role      string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Email:     "email",
	Name:      "name",
	ImageURL:  "image_url",
	Role:      "role",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var UserRels = struct {
	GroupUsers              string
	PostComments            string
	EditorUserPostHistories string
	PostLikes               string
	PostReads               string
	PostUploadFiles         string
	CreatorUserPosts        string
	EditorUserPosts         string
	UserSigninHistories     string
	UserTokens              string
}{
	GroupUsers:              "GroupUsers",
	PostComments:            "PostComments",
	EditorUserPostHistories: "EditorUserPostHistories",
	PostLikes:               "PostLikes",
	PostReads:               "PostReads",
	PostUploadFiles:         "PostUploadFiles",
	CreatorUserPosts:        "CreatorUserPosts",
	EditorUserPosts:         "EditorUserPosts",
	UserSigninHistories:     "UserSigninHistories",
	UserTokens:              "UserTokens",
}

UserRels is where relationship names are stored.

View Source
var UserSigninHistoryColumns = struct {
	ID          string
	UserID      string
	Provider    string
	Ipv4Address string
	CreatedAt   string
	UpdatedAt   string
}{
	ID:          "id",
	UserID:      "user_id",
	Provider:    "provider",
	Ipv4Address: "ipv4_address",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
}
View Source
var UserSigninHistoryRels = struct {
	User string
}{
	User: "User",
}

UserSigninHistoryRels is where relationship names are stored.

View Source
var UserTokenColumns = struct {
	ID        string
	UserID    string
	Provider  string
	TokenJSON string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	UserID:    "user_id",
	Provider:  "provider",
	TokenJSON: "token_json",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var UserTokenRels = struct {
	User string
}{
	User: "User",
}

UserTokenRels is where relationship names are stored.

View Source
var WorkspaceColumns = struct {
	ID               string
	Name             string
	NotificationType string
	NotificationID   string
	Description      string
	CreatedAt        string
	UpdatedAt        string
}{
	ID:               "id",
	Name:             "name",
	NotificationType: "notification_type",
	NotificationID:   "notification_id",
	Description:      "description",
	CreatedAt:        "created_at",
	UpdatedAt:        "updated_at",
}
View Source
var WorkspaceRels = struct {
	Notification     string
	MenuItems        string
	PostPostComments string
	PostTemplates    string
	Posts            string
}{
	Notification:     "Notification",
	MenuItems:        "MenuItems",
	PostPostComments: "PostPostComments",
	PostTemplates:    "PostTemplates",
	Posts:            "Posts",
}

WorkspaceRels is where relationship names are stored.

Functions

func AddGroupHook

func AddGroupHook(hookPoint boil.HookPoint, groupHook GroupHook)

AddGroupHook registers your hook function for all future operations.

func AddGroupUserHook

func AddGroupUserHook(hookPoint boil.HookPoint, groupUserHook GroupUserHook)

AddGroupUserHook registers your hook function for all future operations.

func AddMenuItemHook

func AddMenuItemHook(hookPoint boil.HookPoint, menuItemHook MenuItemHook)

AddMenuItemHook registers your hook function for all future operations.

func AddNotificationHook

func AddNotificationHook(hookPoint boil.HookPoint, notificationHook NotificationHook)

AddNotificationHook registers your hook function for all future operations.

func AddPostCommentHook

func AddPostCommentHook(hookPoint boil.HookPoint, postCommentHook PostCommentHook)

AddPostCommentHook registers your hook function for all future operations.

func AddPostHistoryHook

func AddPostHistoryHook(hookPoint boil.HookPoint, postHistoryHook PostHistoryHook)

AddPostHistoryHook 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 AddPostLikeHook

func AddPostLikeHook(hookPoint boil.HookPoint, postLikeHook PostLikeHook)

AddPostLikeHook registers your hook function for all future operations.

func AddPostReadHook

func AddPostReadHook(hookPoint boil.HookPoint, postReadHook PostReadHook)

AddPostReadHook registers your hook function for all future operations.

func AddPostTemplateHook

func AddPostTemplateHook(hookPoint boil.HookPoint, postTemplateHook PostTemplateHook)

AddPostTemplateHook registers your hook function for all future operations.

func AddPostUploadFileHook

func AddPostUploadFileHook(hookPoint boil.HookPoint, postUploadFileHook PostUploadFileHook)

AddPostUploadFileHook registers your hook function for all future operations.

func AddPostsTagHook

func AddPostsTagHook(hookPoint boil.HookPoint, postsTagHook PostsTagHook)

AddPostsTagHook 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 AddRolePermissionHook

func AddRolePermissionHook(hookPoint boil.HookPoint, rolePermissionHook RolePermissionHook)

AddRolePermissionHook registers your hook function for all future operations.

func AddTagHook

func AddTagHook(hookPoint boil.HookPoint, tagHook TagHook)

AddTagHook 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 AddUserSigninHistoryHook

func AddUserSigninHistoryHook(hookPoint boil.HookPoint, userSigninHistoryHook UserSigninHistoryHook)

AddUserSigninHistoryHook registers your hook function for all future operations.

func AddUserTokenHook

func AddUserTokenHook(hookPoint boil.HookPoint, userTokenHook UserTokenHook)

AddUserTokenHook registers your hook function for all future operations.

func AddWorkspaceHook

func AddWorkspaceHook(hookPoint boil.HookPoint, workspaceHook WorkspaceHook)

AddWorkspaceHook registers your hook function for all future operations.

func GroupExists

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

GroupExists checks if the Group row exists.

func GroupUserExists

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

GroupUserExists checks if the GroupUser row exists.

func GroupUsers

func GroupUsers(mods ...qm.QueryMod) groupUserQuery

GroupUsers retrieves all the records using an executor.

func Groups

func Groups(mods ...qm.QueryMod) groupQuery

Groups retrieves all the records using an executor.

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

MenuItemExists checks if the MenuItem row exists.

func MenuItems(mods ...qm.QueryMod) menuItemQuery

MenuItems 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 NotificationExists

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

NotificationExists checks if the Notification row exists.

func Notifications

func Notifications(mods ...qm.QueryMod) notificationQuery

Notifications retrieves all the records using an executor.

func PostCommentExists

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

PostCommentExists checks if the PostComment row exists.

func PostComments

func PostComments(mods ...qm.QueryMod) postCommentQuery

PostComments retrieves all the records using an executor.

func PostExists

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

PostExists checks if the Post row exists.

func PostHistories

func PostHistories(mods ...qm.QueryMod) postHistoryQuery

PostHistories retrieves all the records using an executor.

func PostHistoryExists

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

PostHistoryExists checks if the PostHistory row exists.

func PostLikeExists

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

PostLikeExists checks if the PostLike row exists.

func PostLikes

func PostLikes(mods ...qm.QueryMod) postLikeQuery

PostLikes retrieves all the records using an executor.

func PostReadExists

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

PostReadExists checks if the PostRead row exists.

func PostReads

func PostReads(mods ...qm.QueryMod) postReadQuery

PostReads retrieves all the records using an executor.

func PostTemplateExists

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

PostTemplateExists checks if the PostTemplate row exists.

func PostTemplates

func PostTemplates(mods ...qm.QueryMod) postTemplateQuery

PostTemplates retrieves all the records using an executor.

func PostUploadFileExists

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

PostUploadFileExists checks if the PostUploadFile row exists.

func PostUploadFiles

func PostUploadFiles(mods ...qm.QueryMod) postUploadFileQuery

PostUploadFiles retrieves all the records using an executor.

func Posts

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

Posts retrieves all the records using an executor.

func PostsTagExists

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

PostsTagExists checks if the PostsTag row exists.

func PostsTags

func PostsTags(mods ...qm.QueryMod) postsTagQuery

PostsTags 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 RolePermissionExists

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

RolePermissionExists checks if the RolePermission row exists.

func RolePermissions

func RolePermissions(mods ...qm.QueryMod) rolePermissionQuery

RolePermissions retrieves all the records using an executor.

func Roles

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

Roles retrieves all the records using an executor.

func TagExists

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

TagExists checks if the Tag row exists.

func Tags

func Tags(mods ...qm.QueryMod) tagQuery

Tags 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 UserSigninHistories

func UserSigninHistories(mods ...qm.QueryMod) userSigninHistoryQuery

UserSigninHistories retrieves all the records using an executor.

func UserSigninHistoryExists

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

UserSigninHistoryExists checks if the UserSigninHistory row exists.

func UserTokenExists

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

UserTokenExists checks if the UserToken row exists.

func UserTokens

func UserTokens(mods ...qm.QueryMod) userTokenQuery

UserTokens retrieves all the records using an executor.

func Users

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

Users retrieves all the records using an executor.

func WorkspaceExists

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

WorkspaceExists checks if the Workspace row exists.

func Workspaces

func Workspaces(mods ...qm.QueryMod) workspaceQuery

Workspaces retrieves all the records using an executor.

Types

type Group

type Group struct {
	ID             int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name           string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	NotificationID null.Int64  `boil:"notification_id" json:"notification_id,omitempty" toml:"notification_id" yaml:"notification_id,omitempty"`
	Description    null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,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 *groupR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L groupL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Group is an object representing the database table.

func FindGroup

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

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

func (*Group) AddGroupUsers

func (o *Group) AddGroupUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupUser) error

AddGroupUsers adds the given related objects to the existing relationships of the group, optionally inserting them as new records. Appends related to o.R.GroupUsers. Sets related.R.Group appropriately.

func (*Group) Delete

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

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

func (*Group) GroupUsers

func (o *Group) GroupUsers(mods ...qm.QueryMod) groupUserQuery

GroupUsers retrieves all the group_user's GroupUsers with an executor.

func (*Group) Insert

func (o *Group) 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 (*Group) Notification

func (o *Group) Notification(mods ...qm.QueryMod) notificationQuery

Notification pointed to by the foreign key.

func (*Group) Reload

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

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

func (*Group) RemoveNotification

func (o *Group) RemoveNotification(ctx context.Context, exec boil.ContextExecutor, related *Notification) error

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

func (*Group) SetNotification

func (o *Group) SetNotification(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Notification) error

SetNotification of the group to the related item. Sets o.R.Notification to related. Adds o to related.R.Groups.

func (*Group) Update

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

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

func (o *Group) 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 GroupHook

type GroupHook func(context.Context, boil.ContextExecutor, *Group) error

GroupHook is the signature for custom Group hook methods

type GroupSlice

type GroupSlice []*Group

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

func (GroupSlice) DeleteAll

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

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

func (*GroupSlice) ReloadAll

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

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

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

type GroupUser

type GroupUser struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	UserID    int64     `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	GroupID   int64     `boil:"group_id" json:"group_id" toml:"group_id" yaml:"group_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 *groupUserR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L groupUserL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GroupUser is an object representing the database table.

func FindGroupUser

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

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

func (*GroupUser) Delete

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

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

func (*GroupUser) Group

func (o *GroupUser) Group(mods ...qm.QueryMod) groupQuery

Group pointed to by the foreign key.

func (*GroupUser) Insert

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

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

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

func (*GroupUser) SetGroup

func (o *GroupUser) SetGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Group) error

SetGroup of the groupUser to the related item. Sets o.R.Group to related. Adds o to related.R.GroupUsers.

func (*GroupUser) SetUser

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

SetUser of the groupUser to the related item. Sets o.R.User to related. Adds o to related.R.GroupUsers.

func (*GroupUser) Update

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

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

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

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

User pointed to by the foreign key.

type GroupUserHook

type GroupUserHook func(context.Context, boil.ContextExecutor, *GroupUser) error

GroupUserHook is the signature for custom GroupUser hook methods

type GroupUserSlice

type GroupUserSlice []*GroupUser

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

func (GroupUserSlice) DeleteAll

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

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

func (*GroupUserSlice) ReloadAll

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

func (o GroupUserSlice) 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 MenuItem struct {
	ID           int64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	WorkspaceID  int64      `boil:"workspace_id" json:"workspace_id" toml:"workspace_id" yaml:"workspace_id"`
	PostID       int64      `boil:"post_id" json:"post_id" toml:"post_id" yaml:"post_id"`
	ParentMenuID null.Int64 `boil:"parent_menu_id" json:"parent_menu_id,omitempty" toml:"parent_menu_id" yaml:"parent_menu_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 *menuItemR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L menuItemL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MenuItem is an object representing the database table.

func FindMenuItem

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

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

func (o *MenuItem) AddParentMenuMenuItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MenuItem) error

AddParentMenuMenuItems adds the given related objects to the existing relationships of the menu_item, optionally inserting them as new records. Appends related to o.R.ParentMenuMenuItems. Sets related.R.ParentMenu appropriately.

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

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

func (o *MenuItem) 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 (o *MenuItem) ParentMenu(mods ...qm.QueryMod) menuItemQuery

ParentMenu pointed to by the foreign key.

func (o *MenuItem) ParentMenuMenuItems(mods ...qm.QueryMod) menuItemQuery

ParentMenuMenuItems retrieves all the menu_item's MenuItems with an executor via parent_menu_id column.

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

Post pointed to by the foreign key.

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

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

func (o *MenuItem) RemoveParentMenu(ctx context.Context, exec boil.ContextExecutor, related *MenuItem) error

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

func (o *MenuItem) RemoveParentMenuMenuItems(ctx context.Context, exec boil.ContextExecutor, related ...*MenuItem) error

RemoveParentMenuMenuItems relationships from objects passed in. Removes related items from R.ParentMenuMenuItems (uses pointer comparison, removal does not keep order) Sets related.R.ParentMenu.

func (o *MenuItem) SetParentMenu(ctx context.Context, exec boil.ContextExecutor, insert bool, related *MenuItem) error

SetParentMenu of the menuItem to the related item. Sets o.R.ParentMenu to related. Adds o to related.R.ParentMenuMenuItems.

func (o *MenuItem) SetParentMenuMenuItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MenuItem) error

SetParentMenuMenuItems removes all previously related items of the menu_item replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ParentMenu's ParentMenuMenuItems accordingly. Replaces o.R.ParentMenuMenuItems with related. Sets related.R.ParentMenu's ParentMenuMenuItems accordingly.

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

SetPost of the menuItem to the related item. Sets o.R.Post to related. Adds o to related.R.MenuItem.

func (o *MenuItem) SetWorkspace(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Workspace) error

SetWorkspace of the menuItem to the related item. Sets o.R.Workspace to related. Adds o to related.R.MenuItems.

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

Update uses an executor to update the MenuItem. 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 (o *MenuItem) 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 (o *MenuItem) Workspace(mods ...qm.QueryMod) workspaceQuery

Workspace pointed to by the foreign key.

type MenuItemHook func(context.Context, boil.ContextExecutor, *MenuItem) error

MenuItemHook is the signature for custom MenuItem hook methods

type MenuItemSlice []*MenuItem

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

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

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

func (o *MenuItemSlice) 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 (o MenuItemSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

type Notification

type Notification struct {
	ID         int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name       string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Service    int         `boil:"service" json:"service" toml:"service" yaml:"service"`
	WebhookURL null.String `boil:"webhook_url" json:"webhook_url,omitempty" toml:"webhook_url" yaml:"webhook_url,omitempty"`
	Channel    null.String `boil:"channel" json:"channel,omitempty" toml:"channel" yaml:"channel,omitempty"`
	UserName   null.String `boil:"user_name" json:"user_name,omitempty" toml:"user_name" yaml:"user_name,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 *notificationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L notificationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Notification is an object representing the database table.

func FindNotification

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

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

func (*Notification) AddGroups

func (o *Notification) AddGroups(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Group) error

AddGroups adds the given related objects to the existing relationships of the notification, optionally inserting them as new records. Appends related to o.R.Groups. Sets related.R.Notification appropriately.

func (*Notification) AddWorkspaces

func (o *Notification) AddWorkspaces(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Workspace) error

AddWorkspaces adds the given related objects to the existing relationships of the notification, optionally inserting them as new records. Appends related to o.R.Workspaces. Sets related.R.Notification appropriately.

func (*Notification) Delete

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

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

func (*Notification) Groups

func (o *Notification) Groups(mods ...qm.QueryMod) groupQuery

Groups retrieves all the group's Groups with an executor.

func (*Notification) Insert

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

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

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

func (*Notification) RemoveGroups

func (o *Notification) RemoveGroups(ctx context.Context, exec boil.ContextExecutor, related ...*Group) error

RemoveGroups relationships from objects passed in. Removes related items from R.Groups (uses pointer comparison, removal does not keep order) Sets related.R.Notification.

func (*Notification) RemoveWorkspaces

func (o *Notification) RemoveWorkspaces(ctx context.Context, exec boil.ContextExecutor, related ...*Workspace) error

RemoveWorkspaces relationships from objects passed in. Removes related items from R.Workspaces (uses pointer comparison, removal does not keep order) Sets related.R.Notification.

func (*Notification) SetGroups

func (o *Notification) SetGroups(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Group) error

SetGroups removes all previously related items of the notification replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Notification's Groups accordingly. Replaces o.R.Groups with related. Sets related.R.Notification's Groups accordingly.

func (*Notification) SetWorkspaces

func (o *Notification) SetWorkspaces(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Workspace) error

SetWorkspaces removes all previously related items of the notification replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Notification's Workspaces accordingly. Replaces o.R.Workspaces with related. Sets related.R.Notification's Workspaces accordingly.

func (*Notification) Update

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

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

func (o *Notification) 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 (*Notification) Workspaces

func (o *Notification) Workspaces(mods ...qm.QueryMod) workspaceQuery

Workspaces retrieves all the workspace's Workspaces with an executor.

type NotificationHook

type NotificationHook func(context.Context, boil.ContextExecutor, *Notification) error

NotificationHook is the signature for custom Notification hook methods

type NotificationSlice

type NotificationSlice []*Notification

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

func (NotificationSlice) DeleteAll

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

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

func (*NotificationSlice) ReloadAll

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

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

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

type Post

type Post struct {
	ID            int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	WorkspaceID   int64     `boil:"workspace_id" json:"workspace_id" toml:"workspace_id" yaml:"workspace_id"`
	Title         string    `boil:"title" json:"title" toml:"title" yaml:"title"`
	Body          string    `boil:"body" json:"body" toml:"body" yaml:"body"`
	CreatorUserID int64     `boil:"creator_user_id" json:"creator_user_id" toml:"creator_user_id" yaml:"creator_user_id"`
	EditorUserID  int64     `boil:"editor_user_id" json:"editor_user_id" toml:"editor_user_id" yaml:"editor_user_id"`
	EditStatus    int       `boil:"edit_status" json:"edit_status" toml:"edit_status" yaml:"edit_status"`
	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 *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 int64, 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) AddPostHistories

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

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

func (*Post) AddPostLikes

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

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

func (*Post) AddPostReads

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

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

func (*Post) AddPostUploadFiles

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

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

func (*Post) AddPostsTags

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

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

func (*Post) CreatorUser

func (o *Post) CreatorUser(mods ...qm.QueryMod) userQuery

CreatorUser pointed to by the foreign key.

func (*Post) Delete

func (o *Post) Delete(ctx context.Context, exec boil.ContextExecutor) (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) EditorUser

func (o *Post) EditorUser(mods ...qm.QueryMod) userQuery

EditorUser pointed to by the foreign key.

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

func (o *Post) MenuItem(mods ...qm.QueryMod) menuItemQuery

MenuItem pointed to by the foreign key.

func (*Post) PostHistories

func (o *Post) PostHistories(mods ...qm.QueryMod) postHistoryQuery

PostHistories retrieves all the post_history's PostHistories with an executor.

func (*Post) PostLikes

func (o *Post) PostLikes(mods ...qm.QueryMod) postLikeQuery

PostLikes retrieves all the post_like's PostLikes with an executor.

func (*Post) PostReads

func (o *Post) PostReads(mods ...qm.QueryMod) postReadQuery

PostReads retrieves all the post_read's PostReads with an executor.

func (*Post) PostTemplate

func (o *Post) PostTemplate(mods ...qm.QueryMod) postTemplateQuery

PostTemplate pointed to by the foreign key.

func (*Post) PostUploadFiles

func (o *Post) PostUploadFiles(mods ...qm.QueryMod) postUploadFileQuery

PostUploadFiles retrieves all the post_upload_file's PostUploadFiles with an executor.

func (*Post) PostsTags

func (o *Post) PostsTags(mods ...qm.QueryMod) postsTagQuery

PostsTags retrieves all the posts_tag's PostsTags with an executor.

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

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

SetCreatorUser of the post to the related item. Sets o.R.CreatorUser to related. Adds o to related.R.CreatorUserPosts.

func (*Post) SetEditorUser

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

SetEditorUser of the post to the related item. Sets o.R.EditorUser to related. Adds o to related.R.EditorUserPosts.

func (*Post) SetMenuItem

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

SetMenuItem of the post to the related item. Sets o.R.MenuItem to related. Adds o to related.R.Post.

func (*Post) SetPostTemplate

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

SetPostTemplate of the post to the related item. Sets o.R.PostTemplate to related. Adds o to related.R.Post.

func (*Post) SetWorkspace

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

SetWorkspace of the post to the related item. Sets o.R.Workspace to related. Adds o to related.R.Posts.

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) 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 (*Post) Workspace

func (o *Post) Workspace(mods ...qm.QueryMod) workspaceQuery

Workspace pointed to by the foreign key.

type PostComment

type PostComment struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	PostID    int64     `boil:"post_id" json:"post_id" toml:"post_id" yaml:"post_id"`
	Comment   string    `boil:"comment" json:"comment" toml:"comment" yaml:"comment"`
	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 *postCommentR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L postCommentL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PostComment is an object representing the database table.

func FindPostComment

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

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

func (*PostComment) Delete

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

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

func (*PostComment) Insert

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

func (o *PostComment) Post(mods ...qm.QueryMod) workspaceQuery

Post pointed to by the foreign key.

func (*PostComment) Reload

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

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

func (*PostComment) SetPost

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

SetPost of the postComment to the related item. Sets o.R.Post to related. Adds o to related.R.PostPostComments.

func (*PostComment) SetUser

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

SetUser of the postComment to the related item. Sets o.R.User to related. Adds o to related.R.PostComments.

func (*PostComment) Update

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

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

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

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

User pointed to by the foreign key.

type PostCommentHook

type PostCommentHook func(context.Context, boil.ContextExecutor, *PostComment) error

PostCommentHook is the signature for custom PostComment hook methods

type PostCommentSlice

type PostCommentSlice []*PostComment

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

func (PostCommentSlice) DeleteAll

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

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

func (*PostCommentSlice) ReloadAll

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

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

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

type PostHistory

type PostHistory struct {
	ID           int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	Version      int64     `boil:"version" json:"version" toml:"version" yaml:"version"`
	PostID       int64     `boil:"post_id" json:"post_id" toml:"post_id" yaml:"post_id"`
	Title        string    `boil:"title" json:"title" toml:"title" yaml:"title"`
	Body         string    `boil:"body" json:"body" toml:"body" yaml:"body"`
	EditorUserID int64     `boil:"editor_user_id" json:"editor_user_id" toml:"editor_user_id" yaml:"editor_user_id"`
	EditStatus   int       `boil:"edit_status" json:"edit_status" toml:"edit_status" yaml:"edit_status"`
	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 *postHistoryR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L postHistoryL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PostHistory is an object representing the database table.

func FindPostHistory

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

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

func (*PostHistory) Delete

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

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

func (*PostHistory) EditorUser

func (o *PostHistory) EditorUser(mods ...qm.QueryMod) userQuery

EditorUser pointed to by the foreign key.

func (*PostHistory) Insert

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

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

Post pointed to by the foreign key.

func (*PostHistory) Reload

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

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

func (*PostHistory) SetEditorUser

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

SetEditorUser of the postHistory to the related item. Sets o.R.EditorUser to related. Adds o to related.R.EditorUserPostHistories.

func (*PostHistory) SetPost

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

SetPost of the postHistory to the related item. Sets o.R.Post to related. Adds o to related.R.PostHistories.

func (*PostHistory) Update

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

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

func (o *PostHistory) 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 PostHistoryHook

type PostHistoryHook func(context.Context, boil.ContextExecutor, *PostHistory) error

PostHistoryHook is the signature for custom PostHistory hook methods

type PostHistorySlice

type PostHistorySlice []*PostHistory

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

func (PostHistorySlice) DeleteAll

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

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

func (*PostHistorySlice) ReloadAll

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

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

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

type PostHook

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

PostHook is the signature for custom Post hook methods

type PostLike

type PostLike struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	PostID    int64     `boil:"post_id" json:"post_id" toml:"post_id" yaml:"post_id"`
	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 *postLikeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L postLikeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PostLike is an object representing the database table.

func FindPostLike

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

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

func (*PostLike) Delete

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

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

func (*PostLike) Insert

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

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

Post pointed to by the foreign key.

func (*PostLike) Reload

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

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

func (*PostLike) SetPost

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

SetPost of the postLike to the related item. Sets o.R.Post to related. Adds o to related.R.PostLikes.

func (*PostLike) SetUser

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

SetUser of the postLike to the related item. Sets o.R.User to related. Adds o to related.R.PostLikes.

func (*PostLike) Update

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

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

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

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

User pointed to by the foreign key.

type PostLikeHook

type PostLikeHook func(context.Context, boil.ContextExecutor, *PostLike) error

PostLikeHook is the signature for custom PostLike hook methods

type PostLikeSlice

type PostLikeSlice []*PostLike

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

func (PostLikeSlice) DeleteAll

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

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

func (*PostLikeSlice) ReloadAll

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

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

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

type PostRead

type PostRead struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	PostID    int64     `boil:"post_id" json:"post_id" toml:"post_id" yaml:"post_id"`
	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 *postReadR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L postReadL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PostRead is an object representing the database table.

func FindPostRead

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

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

func (*PostRead) Delete

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

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

func (*PostRead) Insert

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

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

Post pointed to by the foreign key.

func (*PostRead) Reload

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

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

func (*PostRead) SetPost

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

SetPost of the postRead to the related item. Sets o.R.Post to related. Adds o to related.R.PostReads.

func (*PostRead) SetUser

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

SetUser of the postRead to the related item. Sets o.R.User to related. Adds o to related.R.PostReads.

func (*PostRead) Update

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

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

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

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

User pointed to by the foreign key.

type PostReadHook

type PostReadHook func(context.Context, boil.ContextExecutor, *PostRead) error

PostReadHook is the signature for custom PostRead hook methods

type PostReadSlice

type PostReadSlice []*PostRead

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

func (PostReadSlice) DeleteAll

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

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

func (*PostReadSlice) ReloadAll

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

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

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

type PostSlice

type PostSlice []*Post

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

func (PostSlice) DeleteAll

func (o PostSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (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 PostTemplate

type PostTemplate struct {
	ID          int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	WorkspaceID int64     `boil:"workspace_id" json:"workspace_id" toml:"workspace_id" yaml:"workspace_id"`
	PostID      int64     `boil:"post_id" json:"post_id" toml:"post_id" yaml:"post_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 *postTemplateR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L postTemplateL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PostTemplate is an object representing the database table.

func FindPostTemplate

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

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

func (*PostTemplate) Delete

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

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

func (*PostTemplate) Insert

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

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

Post pointed to by the foreign key.

func (*PostTemplate) Reload

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

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

func (*PostTemplate) SetPost

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

SetPost of the postTemplate to the related item. Sets o.R.Post to related. Adds o to related.R.PostTemplate.

func (*PostTemplate) SetWorkspace

func (o *PostTemplate) SetWorkspace(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Workspace) error

SetWorkspace of the postTemplate to the related item. Sets o.R.Workspace to related. Adds o to related.R.PostTemplates.

func (*PostTemplate) Update

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

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

func (o *PostTemplate) 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 (*PostTemplate) Workspace

func (o *PostTemplate) Workspace(mods ...qm.QueryMod) workspaceQuery

Workspace pointed to by the foreign key.

type PostTemplateHook

type PostTemplateHook func(context.Context, boil.ContextExecutor, *PostTemplate) error

PostTemplateHook is the signature for custom PostTemplate hook methods

type PostTemplateSlice

type PostTemplateSlice []*PostTemplate

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

func (PostTemplateSlice) DeleteAll

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

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

func (*PostTemplateSlice) ReloadAll

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

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

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

type PostUploadFile

type PostUploadFile struct {
	ID        int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	PostID    int64       `boil:"post_id" json:"post_id" toml:"post_id" yaml:"post_id"`
	FileName  null.String `boil:"file_name" json:"file_name,omitempty" toml:"file_name" yaml:"file_name,omitempty"`
	FileURL   null.String `boil:"file_url" json:"file_url,omitempty" toml:"file_url" yaml:"file_url,omitempty"`
	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 *postUploadFileR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L postUploadFileL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PostUploadFile is an object representing the database table.

func FindPostUploadFile

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

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

func (*PostUploadFile) Delete

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

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

func (*PostUploadFile) Insert

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

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

Post pointed to by the foreign key.

func (*PostUploadFile) Reload

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

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

func (*PostUploadFile) SetPost

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

SetPost of the postUploadFile to the related item. Sets o.R.Post to related. Adds o to related.R.PostUploadFiles.

func (*PostUploadFile) SetUser

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

SetUser of the postUploadFile to the related item. Sets o.R.User to related. Adds o to related.R.PostUploadFiles.

func (*PostUploadFile) Update

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

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

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

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

User pointed to by the foreign key.

type PostUploadFileHook

type PostUploadFileHook func(context.Context, boil.ContextExecutor, *PostUploadFile) error

PostUploadFileHook is the signature for custom PostUploadFile hook methods

type PostUploadFileSlice

type PostUploadFileSlice []*PostUploadFile

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

func (PostUploadFileSlice) DeleteAll

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

func (*PostUploadFileSlice) ReloadAll

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

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

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

type PostsTag

type PostsTag struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	PostID    int64     `boil:"post_id" json:"post_id" toml:"post_id" yaml:"post_id"`
	TagID     int64     `boil:"tag_id" json:"tag_id" toml:"tag_id" yaml:"tag_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 *postsTagR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L postsTagL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PostsTag is an object representing the database table.

func FindPostsTag

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

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

func (*PostsTag) Delete

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

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

func (*PostsTag) Insert

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

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

Post pointed to by the foreign key.

func (*PostsTag) Reload

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

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

func (*PostsTag) SetPost

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

SetPost of the postsTag to the related item. Sets o.R.Post to related. Adds o to related.R.PostsTags.

func (*PostsTag) SetTag

func (o *PostsTag) SetTag(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Tag) error

SetTag of the postsTag to the related item. Sets o.R.Tag to related. Adds o to related.R.PostsTags.

func (*PostsTag) Tag

func (o *PostsTag) Tag(mods ...qm.QueryMod) tagQuery

Tag pointed to by the foreign key.

func (*PostsTag) Update

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

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

func (o *PostsTag) 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 PostsTagHook

type PostsTagHook func(context.Context, boil.ContextExecutor, *PostsTag) error

PostsTagHook is the signature for custom PostsTag hook methods

type PostsTagSlice

type PostsTagSlice []*PostsTag

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

func (PostsTagSlice) DeleteAll

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

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

func (*PostsTagSlice) ReloadAll

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

func (o PostsTagSlice) 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      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	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 *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) AddRolePermissions

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

AddRolePermissions adds the given related objects to the existing relationships of the role, optionally inserting them as new records. Appends related to o.R.RolePermissions. 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) 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) RolePermissions

func (o *Role) RolePermissions(mods ...qm.QueryMod) rolePermissionQuery

RolePermissions retrieves all the role_permission's RolePermissions with an executor.

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 RolePermission

type RolePermission struct {
	ID         int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	RoleID     int64     `boil:"role_id" json:"role_id" toml:"role_id" yaml:"role_id"`
	Permission int       `boil:"permission" json:"permission" toml:"permission" yaml:"permission"`
	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 *rolePermissionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L rolePermissionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RolePermission is an object representing the database table.

func FindRolePermission

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

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

func (*RolePermission) Delete

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

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

func (*RolePermission) Insert

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

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

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

func (*RolePermission) Role

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

Role pointed to by the foreign key.

func (*RolePermission) SetRole

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

SetRole of the rolePermission to the related item. Sets o.R.Role to related. Adds o to related.R.RolePermissions.

func (*RolePermission) Update

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

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

func (o *RolePermission) 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 RolePermissionHook

type RolePermissionHook func(context.Context, boil.ContextExecutor, *RolePermission) error

RolePermissionHook is the signature for custom RolePermission hook methods

type RolePermissionSlice

type RolePermissionSlice []*RolePermission

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

func (RolePermissionSlice) DeleteAll

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

func (*RolePermissionSlice) ReloadAll

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

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

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

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 Tag

type Tag struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	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 *tagR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L tagL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Tag is an object representing the database table.

func FindTag

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

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

func (*Tag) AddPostsTags

func (o *Tag) AddPostsTags(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PostsTag) error

AddPostsTags adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.PostsTags. Sets related.R.Tag appropriately.

func (*Tag) Delete

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

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

func (*Tag) Insert

func (o *Tag) 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 (*Tag) PostsTags

func (o *Tag) PostsTags(mods ...qm.QueryMod) postsTagQuery

PostsTags retrieves all the posts_tag's PostsTags with an executor.

func (*Tag) Reload

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

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

func (*Tag) Update

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

Update uses an executor to update the Tag. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Tag) Upsert

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

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

type TagHook

type TagHook func(context.Context, boil.ContextExecutor, *Tag) error

TagHook is the signature for custom Tag hook methods

type TagSlice

type TagSlice []*Tag

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

func (TagSlice) DeleteAll

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

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

func (*TagSlice) ReloadAll

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

func (o TagSlice) 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"`
	Email     string    `boil:"email" json:"email" toml:"email" yaml:"email"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	ImageURL  string    `boil:"image_url" json:"image_url" toml:"image_url" yaml:"image_url"`
	Role      int       `boil:"role" json:"role" toml:"role" yaml:"role"`
	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) AddCreatorUserPosts

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

AddCreatorUserPosts adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.CreatorUserPosts. Sets related.R.CreatorUser appropriately.

func (*User) AddEditorUserPostHistories

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

AddEditorUserPostHistories adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.EditorUserPostHistories. Sets related.R.EditorUser appropriately.

func (*User) AddEditorUserPosts

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

AddEditorUserPosts adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.EditorUserPosts. Sets related.R.EditorUser appropriately.

func (*User) AddGroupUsers

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

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

func (*User) AddPostComments

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

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

func (*User) AddPostLikes

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

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

func (*User) AddPostReads

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

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

func (*User) AddPostUploadFiles

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

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

func (*User) AddUserSigninHistories

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

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

func (*User) AddUserTokens

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

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

func (*User) CreatorUserPosts

func (o *User) CreatorUserPosts(mods ...qm.QueryMod) postQuery

CreatorUserPosts retrieves all the post's Posts with an executor via creator_user_id column.

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

func (o *User) EditorUserPostHistories(mods ...qm.QueryMod) postHistoryQuery

EditorUserPostHistories retrieves all the post_history's PostHistories with an executor via editor_user_id column.

func (*User) EditorUserPosts

func (o *User) EditorUserPosts(mods ...qm.QueryMod) postQuery

EditorUserPosts retrieves all the post's Posts with an executor via editor_user_id column.

func (*User) GroupUsers

func (o *User) GroupUsers(mods ...qm.QueryMod) groupUserQuery

GroupUsers retrieves all the group_user's GroupUsers 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) PostComments

func (o *User) PostComments(mods ...qm.QueryMod) postCommentQuery

PostComments retrieves all the post_comment's PostComments with an executor.

func (*User) PostLikes

func (o *User) PostLikes(mods ...qm.QueryMod) postLikeQuery

PostLikes retrieves all the post_like's PostLikes with an executor.

func (*User) PostReads

func (o *User) PostReads(mods ...qm.QueryMod) postReadQuery

PostReads retrieves all the post_read's PostReads with an executor.

func (*User) PostUploadFiles

func (o *User) PostUploadFiles(mods ...qm.QueryMod) postUploadFileQuery

PostUploadFiles retrieves all the post_upload_file's PostUploadFiles with an executor.

func (*User) Reload

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

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

func (*User) Update

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

Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*User) Upsert

func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 (*User) UserSigninHistories

func (o *User) UserSigninHistories(mods ...qm.QueryMod) userSigninHistoryQuery

UserSigninHistories retrieves all the user_signin_history's UserSigninHistories with an executor.

func (*User) UserTokens

func (o *User) UserTokens(mods ...qm.QueryMod) userTokenQuery

UserTokens retrieves all the user_token's UserTokens with an executor.

type UserHook

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

UserHook is the signature for custom User hook methods

type UserSigninHistory

type UserSigninHistory struct {
	ID          int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	UserID      int64       `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Provider    int         `boil:"provider" json:"provider" toml:"provider" yaml:"provider"`
	Ipv4Address null.String `boil:"ipv4_address" json:"ipv4_address,omitempty" toml:"ipv4_address" yaml:"ipv4_address,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 *userSigninHistoryR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userSigninHistoryL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

UserSigninHistory is an object representing the database table.

func FindUserSigninHistory

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

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

func (*UserSigninHistory) Delete

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

func (*UserSigninHistory) Insert

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

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

func (*UserSigninHistory) SetUser

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

SetUser of the userSigninHistory to the related item. Sets o.R.User to related. Adds o to related.R.UserSigninHistories.

func (*UserSigninHistory) Update

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

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

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

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

User pointed to by the foreign key.

type UserSigninHistoryHook

type UserSigninHistoryHook func(context.Context, boil.ContextExecutor, *UserSigninHistory) error

UserSigninHistoryHook is the signature for custom UserSigninHistory hook methods

type UserSigninHistorySlice

type UserSigninHistorySlice []*UserSigninHistory

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

func (UserSigninHistorySlice) DeleteAll

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

func (*UserSigninHistorySlice) ReloadAll

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

func (UserSigninHistorySlice) UpdateAll

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

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

type UserSlice

type UserSlice []*User

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

func (UserSlice) DeleteAll

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

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

func (*UserSlice) ReloadAll

func (o *UserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

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

func (UserSlice) UpdateAll

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

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

type UserToken

type UserToken struct {
	ID        int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	UserID    int64       `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	Provider  int         `boil:"provider" json:"provider" toml:"provider" yaml:"provider"`
	TokenJSON null.String `boil:"token_json" json:"token_json,omitempty" toml:"token_json" yaml:"token_json,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 *userTokenR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userTokenL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

UserToken is an object representing the database table.

func FindUserToken

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

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

func (*UserToken) Delete

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

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

func (*UserToken) Insert

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

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

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

func (*UserToken) SetUser

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

SetUser of the userToken to the related item. Sets o.R.User to related. Adds o to related.R.UserTokens.

func (*UserToken) Update

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

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

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

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

User pointed to by the foreign key.

type UserTokenHook

type UserTokenHook func(context.Context, boil.ContextExecutor, *UserToken) error

UserTokenHook is the signature for custom UserToken hook methods

type UserTokenSlice

type UserTokenSlice []*UserToken

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

func (UserTokenSlice) DeleteAll

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

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

func (*UserTokenSlice) ReloadAll

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

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

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

type Workspace

type Workspace struct {
	ID               int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name             string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	NotificationType int         `boil:"notification_type" json:"notification_type" toml:"notification_type" yaml:"notification_type"`
	NotificationID   null.Int64  `boil:"notification_id" json:"notification_id,omitempty" toml:"notification_id" yaml:"notification_id,omitempty"`
	Description      null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,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 *workspaceR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L workspaceL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Workspace is an object representing the database table.

func FindWorkspace

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

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

func (*Workspace) AddMenuItems

func (o *Workspace) AddMenuItems(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MenuItem) error

AddMenuItems adds the given related objects to the existing relationships of the workspace, optionally inserting them as new records. Appends related to o.R.MenuItems. Sets related.R.Workspace appropriately.

func (*Workspace) AddPostPostComments

func (o *Workspace) AddPostPostComments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PostComment) error

AddPostPostComments adds the given related objects to the existing relationships of the workspace, optionally inserting them as new records. Appends related to o.R.PostPostComments. Sets related.R.Post appropriately.

func (*Workspace) AddPostTemplates

func (o *Workspace) AddPostTemplates(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PostTemplate) error

AddPostTemplates adds the given related objects to the existing relationships of the workspace, optionally inserting them as new records. Appends related to o.R.PostTemplates. Sets related.R.Workspace appropriately.

func (*Workspace) AddPosts

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

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

func (*Workspace) Delete

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

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

func (*Workspace) Insert

func (o *Workspace) 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 (*Workspace) MenuItems

func (o *Workspace) MenuItems(mods ...qm.QueryMod) menuItemQuery

MenuItems retrieves all the menu_item's MenuItems with an executor.

func (*Workspace) Notification

func (o *Workspace) Notification(mods ...qm.QueryMod) notificationQuery

Notification pointed to by the foreign key.

func (*Workspace) PostPostComments

func (o *Workspace) PostPostComments(mods ...qm.QueryMod) postCommentQuery

PostPostComments retrieves all the post_comment's PostComments with an executor via post_id column.

func (*Workspace) PostTemplates

func (o *Workspace) PostTemplates(mods ...qm.QueryMod) postTemplateQuery

PostTemplates retrieves all the post_template's PostTemplates with an executor.

func (*Workspace) Posts

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

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

func (*Workspace) Reload

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

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

func (*Workspace) RemoveNotification

func (o *Workspace) RemoveNotification(ctx context.Context, exec boil.ContextExecutor, related *Notification) error

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

func (*Workspace) SetNotification

func (o *Workspace) SetNotification(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Notification) error

SetNotification of the workspace to the related item. Sets o.R.Notification to related. Adds o to related.R.Workspaces.

func (*Workspace) Update

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

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

func (o *Workspace) 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 WorkspaceHook

type WorkspaceHook func(context.Context, boil.ContextExecutor, *Workspace) error

WorkspaceHook is the signature for custom Workspace hook methods

type WorkspaceSlice

type WorkspaceSlice []*Workspace

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

func (WorkspaceSlice) DeleteAll

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

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

func (*WorkspaceSlice) ReloadAll

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

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