Documentation ¶
Index ¶
- Variables
- func AddGroupHook(hookPoint boil.HookPoint, groupHook GroupHook)
- func AddGroupUserHook(hookPoint boil.HookPoint, groupUserHook GroupUserHook)
- func AddMenuItemHook(hookPoint boil.HookPoint, menuItemHook MenuItemHook)
- func AddNotificationHook(hookPoint boil.HookPoint, notificationHook NotificationHook)
- func AddPostCommentHook(hookPoint boil.HookPoint, postCommentHook PostCommentHook)
- func AddPostHistoryHook(hookPoint boil.HookPoint, postHistoryHook PostHistoryHook)
- func AddPostHook(hookPoint boil.HookPoint, postHook PostHook)
- func AddPostLikeHook(hookPoint boil.HookPoint, postLikeHook PostLikeHook)
- func AddPostReadHook(hookPoint boil.HookPoint, postReadHook PostReadHook)
- func AddPostTemplateHook(hookPoint boil.HookPoint, postTemplateHook PostTemplateHook)
- func AddPostUploadFileHook(hookPoint boil.HookPoint, postUploadFileHook PostUploadFileHook)
- func AddPostsTagHook(hookPoint boil.HookPoint, postsTagHook PostsTagHook)
- func AddRoleHook(hookPoint boil.HookPoint, roleHook RoleHook)
- func AddRolePermissionHook(hookPoint boil.HookPoint, rolePermissionHook RolePermissionHook)
- func AddTagHook(hookPoint boil.HookPoint, tagHook TagHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func AddUserSigninHistoryHook(hookPoint boil.HookPoint, userSigninHistoryHook UserSigninHistoryHook)
- func AddUserTokenHook(hookPoint boil.HookPoint, userTokenHook UserTokenHook)
- func AddWorkspaceHook(hookPoint boil.HookPoint, workspaceHook WorkspaceHook)
- func GroupExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func GroupUserExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func GroupUsers(mods ...qm.QueryMod) groupUserQuery
- func Groups(mods ...qm.QueryMod) groupQuery
- func MenuItemExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func MenuItems(mods ...qm.QueryMod) menuItemQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func NotificationExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Notifications(mods ...qm.QueryMod) notificationQuery
- func PostCommentExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func PostComments(mods ...qm.QueryMod) postCommentQuery
- func PostExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func PostHistories(mods ...qm.QueryMod) postHistoryQuery
- func PostHistoryExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func PostLikeExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func PostLikes(mods ...qm.QueryMod) postLikeQuery
- func PostReadExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func PostReads(mods ...qm.QueryMod) postReadQuery
- func PostTemplateExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func PostTemplates(mods ...qm.QueryMod) postTemplateQuery
- func PostUploadFileExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func PostUploadFiles(mods ...qm.QueryMod) postUploadFileQuery
- func Posts(mods ...qm.QueryMod) postQuery
- func PostsTagExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func PostsTags(mods ...qm.QueryMod) postsTagQuery
- func RoleExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func RolePermissionExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func RolePermissions(mods ...qm.QueryMod) rolePermissionQuery
- func Roles(mods ...qm.QueryMod) roleQuery
- func TagExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Tags(mods ...qm.QueryMod) tagQuery
- func UserExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func UserSigninHistories(mods ...qm.QueryMod) userSigninHistoryQuery
- func UserSigninHistoryExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func UserTokenExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func UserTokens(mods ...qm.QueryMod) userTokenQuery
- func Users(mods ...qm.QueryMod) userQuery
- func WorkspaceExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Workspaces(mods ...qm.QueryMod) workspaceQuery
- type Group
- func (o *Group) AddGroupUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Group) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Group) GroupUsers(mods ...qm.QueryMod) groupUserQuery
- func (o *Group) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Group) Notification(mods ...qm.QueryMod) notificationQuery
- func (o *Group) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Group) RemoveNotification(ctx context.Context, exec boil.ContextExecutor, related *Notification) error
- func (o *Group) SetNotification(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Group) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Group) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type GroupHook
- type GroupSlice
- type GroupUser
- func (o *GroupUser) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *GroupUser) Group(mods ...qm.QueryMod) groupQuery
- func (o *GroupUser) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *GroupUser) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *GroupUser) SetGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Group) error
- func (o *GroupUser) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *GroupUser) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *GroupUser) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *GroupUser) User(mods ...qm.QueryMod) userQuery
- type GroupUserHook
- type GroupUserSlice
- type M
- type MenuItem
- func (o *MenuItem) AddParentMenuMenuItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *MenuItem) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *MenuItem) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *MenuItem) ParentMenu(mods ...qm.QueryMod) menuItemQuery
- func (o *MenuItem) ParentMenuMenuItems(mods ...qm.QueryMod) menuItemQuery
- func (o *MenuItem) Post(mods ...qm.QueryMod) postQuery
- func (o *MenuItem) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *MenuItem) RemoveParentMenu(ctx context.Context, exec boil.ContextExecutor, related *MenuItem) error
- func (o *MenuItem) RemoveParentMenuMenuItems(ctx context.Context, exec boil.ContextExecutor, related ...*MenuItem) error
- func (o *MenuItem) SetParentMenu(ctx context.Context, exec boil.ContextExecutor, insert bool, related *MenuItem) error
- func (o *MenuItem) SetParentMenuMenuItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *MenuItem) SetPost(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Post) error
- func (o *MenuItem) SetWorkspace(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *MenuItem) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *MenuItem) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *MenuItem) Workspace(mods ...qm.QueryMod) workspaceQuery
- type MenuItemHook
- type MenuItemSlice
- type Notification
- func (o *Notification) AddGroups(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Group) error
- func (o *Notification) AddWorkspaces(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Notification) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Notification) Groups(mods ...qm.QueryMod) groupQuery
- func (o *Notification) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Notification) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Notification) RemoveGroups(ctx context.Context, exec boil.ContextExecutor, related ...*Group) error
- func (o *Notification) RemoveWorkspaces(ctx context.Context, exec boil.ContextExecutor, related ...*Workspace) error
- func (o *Notification) SetGroups(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Group) error
- func (o *Notification) SetWorkspaces(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Notification) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Notification) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *Notification) Workspaces(mods ...qm.QueryMod) workspaceQuery
- type NotificationHook
- type NotificationSlice
- type Post
- func (o *Post) AddPostHistories(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Post) AddPostLikes(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Post) AddPostReads(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Post) AddPostUploadFiles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Post) AddPostsTags(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Post) CreatorUser(mods ...qm.QueryMod) userQuery
- func (o *Post) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Post) EditorUser(mods ...qm.QueryMod) userQuery
- func (o *Post) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Post) MenuItem(mods ...qm.QueryMod) menuItemQuery
- func (o *Post) PostHistories(mods ...qm.QueryMod) postHistoryQuery
- func (o *Post) PostLikes(mods ...qm.QueryMod) postLikeQuery
- func (o *Post) PostReads(mods ...qm.QueryMod) postReadQuery
- func (o *Post) PostTemplate(mods ...qm.QueryMod) postTemplateQuery
- func (o *Post) PostUploadFiles(mods ...qm.QueryMod) postUploadFileQuery
- func (o *Post) PostsTags(mods ...qm.QueryMod) postsTagQuery
- func (o *Post) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Post) SetCreatorUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *Post) SetEditorUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *Post) SetMenuItem(ctx context.Context, exec boil.ContextExecutor, insert bool, related *MenuItem) error
- func (o *Post) SetPostTemplate(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Post) SetWorkspace(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Post) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Post) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *Post) Workspace(mods ...qm.QueryMod) workspaceQuery
- type PostComment
- func (o *PostComment) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PostComment) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PostComment) Post(mods ...qm.QueryMod) workspaceQuery
- func (o *PostComment) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PostComment) SetPost(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *PostComment) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *PostComment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PostComment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *PostComment) User(mods ...qm.QueryMod) userQuery
- type PostCommentHook
- type PostCommentSlice
- type PostHistory
- func (o *PostHistory) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PostHistory) EditorUser(mods ...qm.QueryMod) userQuery
- func (o *PostHistory) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PostHistory) Post(mods ...qm.QueryMod) postQuery
- func (o *PostHistory) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PostHistory) SetEditorUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *PostHistory) SetPost(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Post) error
- func (o *PostHistory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PostHistory) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type PostHistoryHook
- type PostHistorySlice
- type PostHook
- type PostLike
- func (o *PostLike) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PostLike) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PostLike) Post(mods ...qm.QueryMod) postQuery
- func (o *PostLike) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PostLike) SetPost(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Post) error
- func (o *PostLike) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *PostLike) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PostLike) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *PostLike) User(mods ...qm.QueryMod) userQuery
- type PostLikeHook
- type PostLikeSlice
- type PostRead
- func (o *PostRead) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PostRead) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PostRead) Post(mods ...qm.QueryMod) postQuery
- func (o *PostRead) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PostRead) SetPost(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Post) error
- func (o *PostRead) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *PostRead) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PostRead) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *PostRead) User(mods ...qm.QueryMod) userQuery
- type PostReadHook
- type PostReadSlice
- type PostSlice
- type PostTemplate
- func (o *PostTemplate) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PostTemplate) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PostTemplate) Post(mods ...qm.QueryMod) postQuery
- func (o *PostTemplate) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PostTemplate) SetPost(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Post) error
- func (o *PostTemplate) SetWorkspace(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *PostTemplate) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PostTemplate) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *PostTemplate) Workspace(mods ...qm.QueryMod) workspaceQuery
- type PostTemplateHook
- type PostTemplateSlice
- type PostUploadFile
- func (o *PostUploadFile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PostUploadFile) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PostUploadFile) Post(mods ...qm.QueryMod) postQuery
- func (o *PostUploadFile) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PostUploadFile) SetPost(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Post) error
- func (o *PostUploadFile) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *PostUploadFile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PostUploadFile) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *PostUploadFile) User(mods ...qm.QueryMod) userQuery
- type PostUploadFileHook
- type PostUploadFileSlice
- func (o PostUploadFileSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PostUploadFileSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o PostUploadFileSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type PostsTag
- func (o *PostsTag) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PostsTag) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PostsTag) Post(mods ...qm.QueryMod) postQuery
- func (o *PostsTag) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PostsTag) SetPost(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Post) error
- func (o *PostsTag) SetTag(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Tag) error
- func (o *PostsTag) Tag(mods ...qm.QueryMod) tagQuery
- func (o *PostsTag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PostsTag) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type PostsTagHook
- type PostsTagSlice
- type Role
- func (o *Role) AddRolePermissions(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Role) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Role) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Role) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Role) RolePermissions(mods ...qm.QueryMod) rolePermissionQuery
- func (o *Role) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Role) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type RoleHook
- type RolePermission
- func (o *RolePermission) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RolePermission) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *RolePermission) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *RolePermission) Role(mods ...qm.QueryMod) roleQuery
- func (o *RolePermission) SetRole(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Role) error
- func (o *RolePermission) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *RolePermission) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type RolePermissionHook
- type RolePermissionSlice
- func (o RolePermissionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *RolePermissionSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o RolePermissionSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type RoleSlice
- type Tag
- func (o *Tag) AddPostsTags(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Tag) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Tag) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Tag) PostsTags(mods ...qm.QueryMod) postsTagQuery
- func (o *Tag) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Tag) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Tag) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type TagHook
- type TagSlice
- type User
- func (o *User) AddCreatorUserPosts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Post) error
- func (o *User) AddEditorUserPostHistories(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddEditorUserPosts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Post) error
- func (o *User) AddGroupUsers(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddPostComments(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddPostLikes(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddPostReads(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddPostUploadFiles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddUserSigninHistories(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddUserTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) CreatorUserPosts(mods ...qm.QueryMod) postQuery
- func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *User) EditorUserPostHistories(mods ...qm.QueryMod) postHistoryQuery
- func (o *User) EditorUserPosts(mods ...qm.QueryMod) postQuery
- func (o *User) GroupUsers(mods ...qm.QueryMod) groupUserQuery
- func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *User) PostComments(mods ...qm.QueryMod) postCommentQuery
- func (o *User) PostLikes(mods ...qm.QueryMod) postLikeQuery
- func (o *User) PostReads(mods ...qm.QueryMod) postReadQuery
- func (o *User) PostUploadFiles(mods ...qm.QueryMod) postUploadFileQuery
- func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *User) UserSigninHistories(mods ...qm.QueryMod) userSigninHistoryQuery
- func (o *User) UserTokens(mods ...qm.QueryMod) userTokenQuery
- type UserHook
- type UserSigninHistory
- func (o *UserSigninHistory) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserSigninHistory) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *UserSigninHistory) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserSigninHistory) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *UserSigninHistory) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *UserSigninHistory) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *UserSigninHistory) User(mods ...qm.QueryMod) userQuery
- type UserSigninHistoryHook
- type UserSigninHistorySlice
- func (o UserSigninHistorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserSigninHistorySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o UserSigninHistorySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type UserSlice
- type UserToken
- func (o *UserToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserToken) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *UserToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserToken) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *UserToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *UserToken) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *UserToken) User(mods ...qm.QueryMod) userQuery
- type UserTokenHook
- type UserTokenSlice
- type Workspace
- func (o *Workspace) AddMenuItems(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Workspace) AddPostPostComments(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Workspace) AddPostTemplates(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Workspace) AddPosts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Post) error
- func (o *Workspace) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Workspace) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Workspace) MenuItems(mods ...qm.QueryMod) menuItemQuery
- func (o *Workspace) Notification(mods ...qm.QueryMod) notificationQuery
- func (o *Workspace) PostPostComments(mods ...qm.QueryMod) postCommentQuery
- func (o *Workspace) PostTemplates(mods ...qm.QueryMod) postTemplateQuery
- func (o *Workspace) Posts(mods ...qm.QueryMod) postQuery
- func (o *Workspace) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Workspace) RemoveNotification(ctx context.Context, exec boil.ContextExecutor, related *Notification) error
- func (o *Workspace) SetNotification(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Workspace) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Workspace) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- type WorkspaceHook
- type WorkspaceSlice
Constants ¶
This section is empty.
Variables ¶
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.
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", }
var GroupRels = struct { Notification string GroupUsers string }{ Notification: "Notification", GroupUsers: "GroupUsers", }
GroupRels is where relationship names are stored.
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", }
var GroupUserRels = struct { User string Group string }{ User: "User", Group: "Group", }
GroupUserRels is where relationship names are stored.
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", }
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.
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", }
var NotificationRels = struct { Groups string Workspaces string }{ Groups: "Groups", Workspaces: "Workspaces", }
NotificationRels is where relationship names are stored.
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", }
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", }
var PostCommentRels = struct { Post string User string }{ Post: "Post", User: "User", }
PostCommentRels is where relationship names are stored.
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", }
var PostHistoryRels = struct { Post string EditorUser string }{ Post: "Post", EditorUser: "EditorUser", }
PostHistoryRels is where relationship names are stored.
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", }
var PostLikeRels = struct { Post string User string }{ Post: "Post", User: "User", }
PostLikeRels is where relationship names are stored.
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", }
var PostReadRels = struct { Post string User string }{ Post: "Post", User: "User", }
PostReadRels is where relationship names are stored.
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.
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", }
var PostTemplateRels = struct { Workspace string Post string }{ Workspace: "Workspace", Post: "Post", }
PostTemplateRels is where relationship names are stored.
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", }
var PostUploadFileRels = struct { Post string User string }{ Post: "Post", User: "User", }
PostUploadFileRels is where relationship names are stored.
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", }
var PostsTagRels = struct { Post string Tag string }{ Post: "Post", Tag: "Tag", }
PostsTagRels is where relationship names are stored.
var RoleColumns = struct { ID string Name string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", CreatedAt: "created_at", UpdatedAt: "updated_at", }
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", }
var RolePermissionRels = struct { Role string }{ Role: "Role", }
RolePermissionRels is where relationship names are stored.
var RoleRels = struct { RolePermissions string }{ RolePermissions: "RolePermissions", }
RoleRels is where relationship names are stored.
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", }
var TagColumns = struct { ID string Name string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var TagRels = struct { PostsTags string }{ PostsTags: "PostsTags", }
TagRels is where relationship names are stored.
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", }
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.
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", }
var UserSigninHistoryRels = struct { User string }{ User: "User", }
UserSigninHistoryRels is where relationship names are stored.
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", }
var UserTokenRels = struct { User string }{ User: "User", }
UserTokenRels is where relationship names are stored.
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", }
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 ¶
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 ¶
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 ¶
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 ¶
AddTagHook registers your hook function for all future operations.
func AddUserHook ¶
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 ¶
GroupExists checks if the Group row exists.
func GroupUserExists ¶
GroupUserExists checks if the GroupUser row exists.
func GroupUsers ¶
GroupUsers retrieves all the records using an executor.
func MenuItemExists ¶
MenuItemExists checks if the MenuItem row exists.
func NotificationExists ¶
NotificationExists checks if the Notification row exists.
func Notifications ¶
Notifications retrieves all the records using an executor.
func PostCommentExists ¶
PostCommentExists checks if the PostComment row exists.
func PostComments ¶
PostComments retrieves all the records using an executor.
func PostExists ¶
PostExists checks if the Post row exists.
func PostHistories ¶
PostHistories retrieves all the records using an executor.
func PostHistoryExists ¶
PostHistoryExists checks if the PostHistory row exists.
func PostLikeExists ¶
PostLikeExists checks if the PostLike row exists.
func PostReadExists ¶
PostReadExists checks if the PostRead row exists.
func PostTemplateExists ¶
PostTemplateExists checks if the PostTemplate row exists.
func PostTemplates ¶
PostTemplates retrieves all the records using an executor.
func PostUploadFileExists ¶
PostUploadFileExists checks if the PostUploadFile row exists.
func PostUploadFiles ¶
PostUploadFiles retrieves all the records using an executor.
func PostsTagExists ¶
PostsTagExists checks if the PostsTag row exists.
func RoleExists ¶
RoleExists checks if the Role row exists.
func RolePermissionExists ¶
RolePermissionExists checks if the RolePermission row exists.
func RolePermissions ¶
RolePermissions retrieves all the records using an executor.
func UserExists ¶
UserExists checks if the User row exists.
func UserSigninHistories ¶
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 ¶
UserTokenExists checks if the UserToken row exists.
func UserTokens ¶
UserTokens retrieves all the records using an executor.
func WorkspaceExists ¶
WorkspaceExists checks if the Workspace row exists.
func Workspaces ¶
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 ¶
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 ¶
GroupUsers retrieves all the group_user's GroupUsers with an executor.
func (*Group) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Group) Notification ¶
Notification pointed to by the foreign key.
func (*Group) Reload ¶
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 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 ¶
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) 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 ¶
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.
type GroupUserHook ¶
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 ¶
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 (*MenuItem) AddParentMenuMenuItems ¶
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 (*MenuItem) Delete ¶
Delete deletes a single MenuItem record with an executor. Delete will match against the primary key column to find the record to delete.
func (*MenuItem) Insert ¶
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 (*MenuItem) ParentMenu ¶
ParentMenu pointed to by the foreign key.
func (*MenuItem) ParentMenuMenuItems ¶
ParentMenuMenuItems retrieves all the menu_item's MenuItems with an executor via parent_menu_id column.
func (*MenuItem) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*MenuItem) RemoveParentMenu ¶
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 (*MenuItem) RemoveParentMenuMenuItems ¶
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 (*MenuItem) SetParentMenu ¶
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 (*MenuItem) SetParentMenuMenuItems ¶
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 (*MenuItem) SetPost ¶
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 (*MenuItem) SetWorkspace ¶
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 (*MenuItem) Update ¶
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 (*MenuItem) Upsert ¶
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.
type MenuItemHook ¶
MenuItemHook is the signature for custom MenuItem hook methods
type MenuItemSlice ¶
type MenuItemSlice []*MenuItem
MenuItemSlice is an alias for a slice of pointers to MenuItem. This should generally be used opposed to []MenuItem.
func (MenuItemSlice) DeleteAll ¶
func (o MenuItemSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*MenuItemSlice) ReloadAll ¶
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 (MenuItemSlice) UpdateAll ¶
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 ¶
CreatorUser pointed to by the foreign key.
func (*Post) Delete ¶
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 ¶
EditorUser pointed to by the foreign key.
func (*Post) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Post) PostHistories ¶
PostHistories retrieves all the post_history's PostHistories with an executor.
func (*Post) PostTemplate ¶
PostTemplate pointed to by the foreign key.
func (*Post) PostUploadFiles ¶
PostUploadFiles retrieves all the post_upload_file's PostUploadFiles with an executor.
func (*Post) Reload ¶
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.
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 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 ¶
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) Reload ¶
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.
type PostLikeHook ¶
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 ¶
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) Reload ¶
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.
type PostReadHook ¶
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.
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 ¶
func (o PostUploadFileSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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 ¶
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) Reload ¶
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) 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 ¶
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 ¶
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 ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Role) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Role) RolePermissions ¶
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 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 ¶
func (o RolePermissionSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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.
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 ¶
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 ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Tag) Reload ¶
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 TagSlice ¶
type TagSlice []*Tag
TagSlice is an alias for a slice of pointers to Tag. This should generally be used opposed to []Tag.
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 ¶
CreatorUserPosts retrieves all the post's Posts with an executor via creator_user_id column.
func (*User) Delete ¶
Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.
func (*User) EditorUserPostHistories ¶
EditorUserPostHistories retrieves all the post_history's PostHistories with an executor via editor_user_id column.
func (*User) EditorUserPosts ¶
EditorUserPosts retrieves all the post's Posts with an executor via editor_user_id column.
func (*User) GroupUsers ¶
GroupUsers retrieves all the group_user's GroupUsers with an executor.
func (*User) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*User) PostComments ¶
PostComments retrieves all the post_comment's PostComments with an executor.
func (*User) PostUploadFiles ¶
PostUploadFiles retrieves all the post_upload_file's PostUploadFiles with an executor.
func (*User) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*User) Update ¶
func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*User) Upsert ¶
func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 ¶
UserSigninHistories retrieves all the user_signin_history's UserSigninHistories with an executor.
func (*User) UserTokens ¶
UserTokens retrieves all the user_token's UserTokens with an executor.
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 ¶
func (o *UserSigninHistory) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
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 ¶
func (o *UserSigninHistory) Reload(ctx context.Context, exec boil.ContextExecutor) error
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 ¶
func (o UserSigninHistorySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*UserSigninHistorySlice) ReloadAll ¶
func (o *UserSigninHistorySlice) 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 (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.
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 ¶
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 ¶
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.
type UserTokenHook ¶
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 ¶
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) Notification ¶
Notification pointed to by the foreign key.
func (*Workspace) PostPostComments ¶
PostPostComments retrieves all the post_comment's PostComments with an executor via post_id column.
func (*Workspace) PostTemplates ¶
PostTemplates retrieves all the post_template's PostTemplates with an executor.
func (*Workspace) Reload ¶
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 ¶
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.
Source Files ¶
- boil_queries.go
- boil_table_names.go
- boil_types.go
- group_users.go
- groups.go
- menu_items.go
- notifications.go
- post_comments.go
- post_histories.go
- post_likes.go
- post_reads.go
- post_templates.go
- post_upload_files.go
- posts.go
- posts_tags.go
- psql_upsert.go
- role_permissions.go
- roles.go
- tags.go
- user_signin_histories.go
- user_tokens.go
- users.go
- workspaces.go