Documentation
¶
Index ¶
- Variables
- func AddChannelHook(hookPoint boil.HookPoint, channelHook ChannelHook)
- func AddMessageHook(hookPoint boil.HookPoint, messageHook MessageHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func AddUserProfileHook(hookPoint boil.HookPoint, userProfileHook UserProfileHook)
- func ChannelExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func Channels(mods ...qm.QueryMod) channelQuery
- func MessageExists(ctx context.Context, exec boil.ContextExecutor, timestamp string) (bool, error)
- func Messages(mods ...qm.QueryMod) messageQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func UserExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func UserProfileExists(ctx context.Context, exec boil.ContextExecutor, displayNameNormalized string) (bool, error)
- func UserProfiles(mods ...qm.QueryMod) userProfileQuery
- func Users(mods ...qm.QueryMod) userQuery
- type Channel
- func (o *Channel) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Channel) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Channel) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Channel) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type ChannelHook
- type ChannelSlice
- type M
- type Message
- func (o *Message) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Message) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Message) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Message) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type MessageHook
- type MessageSlice
- type User
- func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- 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)
- type UserHook
- type UserProfile
- func (o *UserProfile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserProfile) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *UserProfile) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserProfile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type UserProfileHook
- type UserProfileSlice
- type UserSlice
Constants ¶
This section is empty.
Variables ¶
var ChannelColumns = struct { ID string IsOpen string LastRead string UnreadCount string UnreadCountDisplay string IsGroup string IsShared string IsIm string IsExtShared string IsOrgShared string IsPendingExtShared string IsPrivate string IsMpim string Unlinked string NameNormalized string NumMembers string User string Name string Creator string IsArchived string Topic string Purpose string IsChannel string IsGeneral string IsMember string Locale string CreatedAt string }{ ID: "id", IsOpen: "is_open", LastRead: "last_read", UnreadCount: "unread_count", UnreadCountDisplay: "unread_count_display", IsGroup: "is_group", IsShared: "is_shared", IsIm: "is_im", IsExtShared: "is_ext_shared", IsOrgShared: "is_org_shared", IsPendingExtShared: "is_pending_ext_shared", IsPrivate: "is_private", IsMpim: "is_mpim", Unlinked: "unlinked", NameNormalized: "name_normalized", NumMembers: "num_members", User: "user", Name: "name", Creator: "creator", IsArchived: "is_archived", Topic: "topic", Purpose: "purpose", IsChannel: "is_channel", IsGeneral: "is_general", IsMember: "is_member", Locale: "locale", CreatedAt: "created_at", }
var ChannelRels = struct {
}{}
ChannelRels is where relationship names are stored.
var ChannelWhere = struct { ID whereHelperstring IsOpen whereHelperbool LastRead whereHelperstring UnreadCount whereHelperint64 UnreadCountDisplay whereHelperint64 IsGroup whereHelperbool IsShared whereHelperbool IsIm whereHelperbool IsExtShared whereHelperbool IsOrgShared whereHelperbool IsPendingExtShared whereHelperbool IsPrivate whereHelperbool IsMpim whereHelperbool Unlinked whereHelperint64 NameNormalized whereHelperstring NumMembers whereHelperint64 User whereHelperstring Name whereHelperstring Creator whereHelperstring IsArchived whereHelperbool Topic whereHelperstring Purpose whereHelperstring IsChannel whereHelperbool IsGeneral whereHelperbool IsMember whereHelperbool Locale whereHelperstring CreatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, IsOpen: whereHelperbool{/* contains filtered or unexported fields */}, LastRead: whereHelperstring{/* contains filtered or unexported fields */}, UnreadCount: whereHelperint64{/* contains filtered or unexported fields */}, UnreadCountDisplay: whereHelperint64{/* contains filtered or unexported fields */}, IsGroup: whereHelperbool{/* contains filtered or unexported fields */}, IsShared: whereHelperbool{/* contains filtered or unexported fields */}, IsIm: whereHelperbool{/* contains filtered or unexported fields */}, IsExtShared: whereHelperbool{/* contains filtered or unexported fields */}, IsOrgShared: whereHelperbool{/* contains filtered or unexported fields */}, IsPendingExtShared: whereHelperbool{/* contains filtered or unexported fields */}, IsPrivate: whereHelperbool{/* contains filtered or unexported fields */}, IsMpim: whereHelperbool{/* contains filtered or unexported fields */}, Unlinked: whereHelperint64{/* contains filtered or unexported fields */}, NameNormalized: whereHelperstring{/* contains filtered or unexported fields */}, NumMembers: whereHelperint64{/* contains filtered or unexported fields */}, User: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Creator: whereHelperstring{/* contains filtered or unexported fields */}, IsArchived: whereHelperbool{/* contains filtered or unexported fields */}, Topic: whereHelperstring{/* contains filtered or unexported fields */}, Purpose: whereHelperstring{/* contains filtered or unexported fields */}, IsChannel: whereHelperbool{/* contains filtered or unexported fields */}, IsGeneral: whereHelperbool{/* contains filtered or unexported fields */}, IsMember: whereHelperbool{/* contains filtered or unexported fields */}, Locale: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var MessageColumns = struct { ClientMSGID string Type string Channel string User string Text string Timestamp string ThreadTimestamp string IsStarred string LastRead string Subscribed string UnreadCount string SubType string Hidden string DeletedTimestamp string EventTimestamp string BotID string UserName string Inviter string Topic string Purpose string Name string OldName string ReplyCount string ParentUserID string Upload string ItemType string ReplyTo string Team string ResponseType string ReplaceOriginal string DeleteOriginal string CreatedAt string }{ ClientMSGID: "client_msg_id", Type: "type", Channel: "channel", User: "user", Text: "text", Timestamp: "timestamp", ThreadTimestamp: "thread_timestamp", IsStarred: "is_starred", LastRead: "last_read", Subscribed: "subscribed", UnreadCount: "unread_count", SubType: "sub_type", Hidden: "hidden", DeletedTimestamp: "deleted_timestamp", EventTimestamp: "event_timestamp", BotID: "bot_id", UserName: "user_name", Inviter: "inviter", Topic: "topic", Purpose: "purpose", Name: "name", OldName: "old_name", ReplyCount: "reply_count", ParentUserID: "parent_user_id", Upload: "upload", ItemType: "item_type", ReplyTo: "reply_to", Team: "team", ResponseType: "response_type", ReplaceOriginal: "replace_original", DeleteOriginal: "delete_original", CreatedAt: "created_at", }
var MessageRels = struct {
}{}
MessageRels is where relationship names are stored.
var MessageWhere = struct { ClientMSGID whereHelperstring Type whereHelperstring Channel whereHelperstring User whereHelperstring Text whereHelperstring Timestamp whereHelperstring ThreadTimestamp whereHelperstring IsStarred whereHelperbool LastRead whereHelperstring Subscribed whereHelperbool UnreadCount whereHelperint64 SubType whereHelperstring Hidden whereHelperbool DeletedTimestamp whereHelperstring EventTimestamp whereHelperstring BotID whereHelperstring UserName whereHelperstring Inviter whereHelperstring Topic whereHelperstring Purpose whereHelperstring Name whereHelperstring OldName whereHelperstring ReplyCount whereHelperint64 ParentUserID whereHelperstring Upload whereHelperbool ItemType whereHelperstring ReplyTo whereHelperint64 Team whereHelperstring ResponseType whereHelperstring ReplaceOriginal whereHelperbool DeleteOriginal whereHelperbool CreatedAt whereHelpertime_Time }{ ClientMSGID: whereHelperstring{/* contains filtered or unexported fields */}, Type: whereHelperstring{/* contains filtered or unexported fields */}, Channel: whereHelperstring{/* contains filtered or unexported fields */}, User: whereHelperstring{/* contains filtered or unexported fields */}, Text: whereHelperstring{/* contains filtered or unexported fields */}, Timestamp: whereHelperstring{/* contains filtered or unexported fields */}, ThreadTimestamp: whereHelperstring{/* contains filtered or unexported fields */}, IsStarred: whereHelperbool{/* contains filtered or unexported fields */}, LastRead: whereHelperstring{/* contains filtered or unexported fields */}, Subscribed: whereHelperbool{/* contains filtered or unexported fields */}, UnreadCount: whereHelperint64{/* contains filtered or unexported fields */}, SubType: whereHelperstring{/* contains filtered or unexported fields */}, Hidden: whereHelperbool{/* contains filtered or unexported fields */}, DeletedTimestamp: whereHelperstring{/* contains filtered or unexported fields */}, EventTimestamp: whereHelperstring{/* contains filtered or unexported fields */}, BotID: whereHelperstring{/* contains filtered or unexported fields */}, UserName: whereHelperstring{/* contains filtered or unexported fields */}, Inviter: whereHelperstring{/* contains filtered or unexported fields */}, Topic: whereHelperstring{/* contains filtered or unexported fields */}, Purpose: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, OldName: whereHelperstring{/* contains filtered or unexported fields */}, ReplyCount: whereHelperint64{/* contains filtered or unexported fields */}, ParentUserID: whereHelperstring{/* contains filtered or unexported fields */}, Upload: whereHelperbool{/* contains filtered or unexported fields */}, ItemType: whereHelperstring{/* contains filtered or unexported fields */}, ReplyTo: whereHelperint64{/* contains filtered or unexported fields */}, Team: whereHelperstring{/* contains filtered or unexported fields */}, ResponseType: whereHelperstring{/* contains filtered or unexported fields */}, ReplaceOriginal: whereHelperbool{/* contains filtered or unexported fields */}, DeleteOriginal: whereHelperbool{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { Channel string Message string User string UserProfile string }{ Channel: "channel", Message: "message", User: "user", UserProfile: "user_profile", }
var UserColumns = struct { ID string TeamID string Name string Deleted string Color string RealName string TZ string TZLabel string TZOffset string IsBot string IsAdmin string IsOwner string IsPrimaryOwner string IsRestricted string IsUltraRestricted string IsStranger string IsAppUser string IsInvitedUser string Has2fa string HasFiles string Presence string Locale string CreatedAt string UpdatedAt string }{ ID: "id", TeamID: "team_id", Name: "name", Deleted: "deleted", Color: "color", RealName: "real_name", TZ: "tz", TZLabel: "tz_label", TZOffset: "tz_offset", IsBot: "is_bot", IsAdmin: "is_admin", IsOwner: "is_owner", IsPrimaryOwner: "is_primary_owner", IsRestricted: "is_restricted", IsUltraRestricted: "is_ultra_restricted", IsStranger: "is_stranger", IsAppUser: "is_app_user", IsInvitedUser: "is_invited_user", Has2fa: "has_2fa", HasFiles: "has_files", Presence: "presence", Locale: "locale", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var UserProfileColumns = struct { FirstName string LastName string RealName string RealNameNormalized string DisplayName string DisplayNameNormalized string Email string Skype string Phone string Image24 string Image32 string Image48 string Image72 string Image192 string Image512 string ImageOriginal string Title string BotID string APIAppID string StatusText string StatusEmoji string StatusExpiration string Team string CreatedAt string UpdatedAt string }{ FirstName: "first_name", LastName: "last_name", RealName: "real_name", RealNameNormalized: "real_name_normalized", DisplayName: "display_name", DisplayNameNormalized: "display_name_normalized", Email: "email", Skype: "skype", Phone: "phone", Image24: "image24", Image32: "image32", Image48: "image48", Image72: "image72", Image192: "image192", Image512: "image512", ImageOriginal: "image_original", Title: "title", BotID: "bot_id", APIAppID: "api_app_id", StatusText: "status_text", StatusEmoji: "status_emoji", StatusExpiration: "status_expiration", Team: "team", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var UserProfileRels = struct {
}{}
UserProfileRels is where relationship names are stored.
var UserProfileWhere = struct { FirstName whereHelperstring LastName whereHelperstring RealName whereHelperstring RealNameNormalized whereHelperstring DisplayName whereHelperstring DisplayNameNormalized whereHelperstring Email whereHelperstring Skype whereHelperstring Phone whereHelperstring Image24 whereHelperstring Image32 whereHelperstring Image48 whereHelperstring Image72 whereHelperstring Image192 whereHelperstring Image512 whereHelperstring ImageOriginal whereHelperstring Title whereHelperstring BotID whereHelperstring APIAppID whereHelperstring StatusText whereHelperstring StatusEmoji whereHelperstring StatusExpiration whereHelperint64 Team whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ FirstName: whereHelperstring{/* contains filtered or unexported fields */}, LastName: whereHelperstring{/* contains filtered or unexported fields */}, RealName: whereHelperstring{/* contains filtered or unexported fields */}, RealNameNormalized: whereHelperstring{/* contains filtered or unexported fields */}, DisplayName: whereHelperstring{/* contains filtered or unexported fields */}, DisplayNameNormalized: whereHelperstring{/* contains filtered or unexported fields */}, Email: whereHelperstring{/* contains filtered or unexported fields */}, Skype: whereHelperstring{/* contains filtered or unexported fields */}, Phone: whereHelperstring{/* contains filtered or unexported fields */}, Image24: whereHelperstring{/* contains filtered or unexported fields */}, Image32: whereHelperstring{/* contains filtered or unexported fields */}, Image48: whereHelperstring{/* contains filtered or unexported fields */}, Image72: whereHelperstring{/* contains filtered or unexported fields */}, Image192: whereHelperstring{/* contains filtered or unexported fields */}, Image512: whereHelperstring{/* contains filtered or unexported fields */}, ImageOriginal: whereHelperstring{/* contains filtered or unexported fields */}, Title: whereHelperstring{/* contains filtered or unexported fields */}, BotID: whereHelperstring{/* contains filtered or unexported fields */}, APIAppID: whereHelperstring{/* contains filtered or unexported fields */}, StatusText: whereHelperstring{/* contains filtered or unexported fields */}, StatusEmoji: whereHelperstring{/* contains filtered or unexported fields */}, StatusExpiration: whereHelperint64{/* contains filtered or unexported fields */}, Team: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var UserRels = struct {
}{}
UserRels is where relationship names are stored.
var UserWhere = struct { ID whereHelperstring TeamID whereHelperstring Name whereHelperstring Deleted whereHelperbool Color whereHelperstring RealName whereHelperstring TZ whereHelperstring TZLabel whereHelperstring TZOffset whereHelperint64 IsBot whereHelperbool IsAdmin whereHelperbool IsOwner whereHelperbool IsPrimaryOwner whereHelperbool IsRestricted whereHelperbool IsUltraRestricted whereHelperbool IsStranger whereHelperbool IsAppUser whereHelperbool IsInvitedUser whereHelperbool Has2fa whereHelperbool HasFiles whereHelperbool Presence whereHelperstring Locale whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, TeamID: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Deleted: whereHelperbool{/* contains filtered or unexported fields */}, Color: whereHelperstring{/* contains filtered or unexported fields */}, RealName: whereHelperstring{/* contains filtered or unexported fields */}, TZ: whereHelperstring{/* contains filtered or unexported fields */}, TZLabel: whereHelperstring{/* contains filtered or unexported fields */}, TZOffset: whereHelperint64{/* contains filtered or unexported fields */}, IsBot: whereHelperbool{/* contains filtered or unexported fields */}, IsAdmin: whereHelperbool{/* contains filtered or unexported fields */}, IsOwner: whereHelperbool{/* contains filtered or unexported fields */}, IsPrimaryOwner: whereHelperbool{/* contains filtered or unexported fields */}, IsRestricted: whereHelperbool{/* contains filtered or unexported fields */}, IsUltraRestricted: whereHelperbool{/* contains filtered or unexported fields */}, IsStranger: whereHelperbool{/* contains filtered or unexported fields */}, IsAppUser: whereHelperbool{/* contains filtered or unexported fields */}, IsInvitedUser: whereHelperbool{/* contains filtered or unexported fields */}, Has2fa: whereHelperbool{/* contains filtered or unexported fields */}, HasFiles: whereHelperbool{/* contains filtered or unexported fields */}, Presence: whereHelperstring{/* contains filtered or unexported fields */}, Locale: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
Functions ¶
func AddChannelHook ¶
func AddChannelHook(hookPoint boil.HookPoint, channelHook ChannelHook)
AddChannelHook registers your hook function for all future operations.
func AddMessageHook ¶
func AddMessageHook(hookPoint boil.HookPoint, messageHook MessageHook)
AddMessageHook registers your hook function for all future operations.
func AddUserHook ¶
AddUserHook registers your hook function for all future operations.
func AddUserProfileHook ¶ added in v0.2.0
func AddUserProfileHook(hookPoint boil.HookPoint, userProfileHook UserProfileHook)
AddUserProfileHook registers your hook function for all future operations.
func ChannelExists ¶
ChannelExists checks if the Channel row exists.
func MessageExists ¶
MessageExists checks if the Message row exists.
func UserExists ¶
UserExists checks if the User row exists.
func UserProfileExists ¶ added in v0.2.0
func UserProfileExists(ctx context.Context, exec boil.ContextExecutor, displayNameNormalized string) (bool, error)
UserProfileExists checks if the UserProfile row exists.
func UserProfiles ¶ added in v0.2.0
UserProfiles retrieves all the records using an executor.
Types ¶
type Channel ¶
type Channel struct {
ID string `boil:"id" json:"id" toml:"id" yaml:"id"`
IsOpen bool `boil:"is_open" json:"is_open" toml:"is_open" yaml:"is_open"`
LastRead string `boil:"last_read" json:"last_read" toml:"last_read" yaml:"last_read"`
UnreadCount int64 `boil:"unread_count" json:"unread_count" toml:"unread_count" yaml:"unread_count"`
UnreadCountDisplay int64 `boil:"unread_count_display" json:"unread_count_display" toml:"unread_count_display" yaml:"unread_count_display"`
IsGroup bool `boil:"is_group" json:"is_group" toml:"is_group" yaml:"is_group"`
IsIm bool `boil:"is_im" json:"is_im" toml:"is_im" yaml:"is_im"`
IsPrivate bool `boil:"is_private" json:"is_private" toml:"is_private" yaml:"is_private"`
IsMpim bool `boil:"is_mpim" json:"is_mpim" toml:"is_mpim" yaml:"is_mpim"`
Unlinked int64 `boil:"unlinked" json:"unlinked" toml:"unlinked" yaml:"unlinked"`
NameNormalized string `boil:"name_normalized" json:"name_normalized" toml:"name_normalized" yaml:"name_normalized"`
NumMembers int64 `boil:"num_members" json:"num_members" toml:"num_members" yaml:"num_members"`
User string `boil:"user" json:"user" toml:"user" yaml:"user"`
Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
Creator string `boil:"creator" json:"creator" toml:"creator" yaml:"creator"`
IsArchived bool `boil:"is_archived" json:"is_archived" toml:"is_archived" yaml:"is_archived"`
Topic string `boil:"topic" json:"topic" toml:"topic" yaml:"topic"`
Purpose string `boil:"purpose" json:"purpose" toml:"purpose" yaml:"purpose"`
IsChannel bool `boil:"is_channel" json:"is_channel" toml:"is_channel" yaml:"is_channel"`
IsGeneral bool `boil:"is_general" json:"is_general" toml:"is_general" yaml:"is_general"`
IsMember bool `boil:"is_member" json:"is_member" toml:"is_member" yaml:"is_member"`
Locale string `boil:"locale" json:"locale" toml:"locale" yaml:"locale"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
R *channelR `boil:"-" json:"-" toml:"-" yaml:"-"`
L channelL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Channel is an object representing the database table.
func FindChannel ¶
func FindChannel(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Channel, error)
FindChannel retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Channel) Delete ¶
Delete deletes a single Channel record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Channel) Insert ¶
func (o *Channel) 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 (*Channel) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Channel) Update ¶
func (o *Channel) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Channel. 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.
type ChannelHook ¶
ChannelHook is the signature for custom Channel hook methods
type ChannelSlice ¶
type ChannelSlice []*Channel
ChannelSlice is an alias for a slice of pointers to Channel. This should generally be used opposed to []Channel.
func (ChannelSlice) DeleteAll ¶
func (o ChannelSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*ChannelSlice) ReloadAll ¶
func (o *ChannelSlice) 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 (ChannelSlice) UpdateAll ¶
func (o ChannelSlice) 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 Message ¶
type Message struct {
ClientMSGID string `boil:"client_msg_id" json:"client_msg_id" toml:"client_msg_id" yaml:"client_msg_id"`
Type string `boil:"type" json:"type" toml:"type" yaml:"type"`
Channel string `boil:"channel" json:"channel" toml:"channel" yaml:"channel"`
User string `boil:"user" json:"user" toml:"user" yaml:"user"`
Text string `boil:"text" json:"text" toml:"text" yaml:"text"`
Timestamp string `boil:"timestamp" json:"timestamp" toml:"timestamp" yaml:"timestamp"`
ThreadTimestamp string `boil:"thread_timestamp" json:"thread_timestamp" toml:"thread_timestamp" yaml:"thread_timestamp"`
IsStarred bool `boil:"is_starred" json:"is_starred" toml:"is_starred" yaml:"is_starred"`
LastRead string `boil:"last_read" json:"last_read" toml:"last_read" yaml:"last_read"`
Subscribed bool `boil:"subscribed" json:"subscribed" toml:"subscribed" yaml:"subscribed"`
UnreadCount int64 `boil:"unread_count" json:"unread_count" toml:"unread_count" yaml:"unread_count"`
SubType string `boil:"sub_type" json:"sub_type" toml:"sub_type" yaml:"sub_type"`
Hidden bool `boil:"hidden" json:"hidden" toml:"hidden" yaml:"hidden"`
DeletedTimestamp string `boil:"deleted_timestamp" json:"deleted_timestamp" toml:"deleted_timestamp" yaml:"deleted_timestamp"`
EventTimestamp string `boil:"event_timestamp" json:"event_timestamp" toml:"event_timestamp" yaml:"event_timestamp"`
BotID string `boil:"bot_id" json:"bot_id" toml:"bot_id" yaml:"bot_id"`
UserName string `boil:"user_name" json:"user_name" toml:"user_name" yaml:"user_name"`
Inviter string `boil:"inviter" json:"inviter" toml:"inviter" yaml:"inviter"`
Topic string `boil:"topic" json:"topic" toml:"topic" yaml:"topic"`
Purpose string `boil:"purpose" json:"purpose" toml:"purpose" yaml:"purpose"`
Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
OldName string `boil:"old_name" json:"old_name" toml:"old_name" yaml:"old_name"`
ReplyCount int64 `boil:"reply_count" json:"reply_count" toml:"reply_count" yaml:"reply_count"`
ParentUserID string `boil:"parent_user_id" json:"parent_user_id" toml:"parent_user_id" yaml:"parent_user_id"`
Upload bool `boil:"upload" json:"upload" toml:"upload" yaml:"upload"`
ItemType string `boil:"item_type" json:"item_type" toml:"item_type" yaml:"item_type"`
ReplyTo int64 `boil:"reply_to" json:"reply_to" toml:"reply_to" yaml:"reply_to"`
Team string `boil:"team" json:"team" toml:"team" yaml:"team"`
ResponseType string `boil:"response_type" json:"response_type" toml:"response_type" yaml:"response_type"`
ReplaceOriginal bool `boil:"replace_original" json:"replace_original" toml:"replace_original" yaml:"replace_original"`
DeleteOriginal bool `boil:"delete_original" json:"delete_original" toml:"delete_original" yaml:"delete_original"`
CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
R *messageR `boil:"-" json:"-" toml:"-" yaml:"-"`
L messageL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
Message is an object representing the database table.
func FindMessage ¶
func FindMessage(ctx context.Context, exec boil.ContextExecutor, timestamp string, selectCols ...string) (*Message, error)
FindMessage retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Message) Delete ¶
Delete deletes a single Message record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Message) Insert ¶
func (o *Message) 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 (*Message) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Message) Update ¶
func (o *Message) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Message. 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.
type MessageHook ¶
MessageHook is the signature for custom Message hook methods
type MessageSlice ¶
type MessageSlice []*Message
MessageSlice is an alias for a slice of pointers to Message. This should generally be used opposed to []Message.
func (MessageSlice) DeleteAll ¶
func (o MessageSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*MessageSlice) ReloadAll ¶
func (o *MessageSlice) 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 (MessageSlice) UpdateAll ¶
func (o MessageSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type User ¶
type User struct {
ID string `boil:"id" json:"id" toml:"id" yaml:"id"`
TeamID string `boil:"team_id" json:"team_id" toml:"team_id" yaml:"team_id"`
Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
Deleted bool `boil:"deleted" json:"deleted" toml:"deleted" yaml:"deleted"`
Color string `boil:"color" json:"color" toml:"color" yaml:"color"`
RealName string `boil:"real_name" json:"real_name" toml:"real_name" yaml:"real_name"`
TZ string `boil:"tz" json:"tz" toml:"tz" yaml:"tz"`
TZLabel string `boil:"tz_label" json:"tz_label" toml:"tz_label" yaml:"tz_label"`
TZOffset int64 `boil:"tz_offset" json:"tz_offset" toml:"tz_offset" yaml:"tz_offset"`
IsBot bool `boil:"is_bot" json:"is_bot" toml:"is_bot" yaml:"is_bot"`
IsAdmin bool `boil:"is_admin" json:"is_admin" toml:"is_admin" yaml:"is_admin"`
IsOwner bool `boil:"is_owner" json:"is_owner" toml:"is_owner" yaml:"is_owner"`
IsPrimaryOwner bool `boil:"is_primary_owner" json:"is_primary_owner" toml:"is_primary_owner" yaml:"is_primary_owner"`
IsRestricted bool `boil:"is_restricted" json:"is_restricted" toml:"is_restricted" yaml:"is_restricted"`
IsUltraRestricted bool `boil:"is_ultra_restricted" json:"is_ultra_restricted" toml:"is_ultra_restricted" yaml:"is_ultra_restricted"`
IsStranger bool `boil:"is_stranger" json:"is_stranger" toml:"is_stranger" yaml:"is_stranger"`
IsAppUser bool `boil:"is_app_user" json:"is_app_user" toml:"is_app_user" yaml:"is_app_user"`
IsInvitedUser bool `boil:"is_invited_user" json:"is_invited_user" toml:"is_invited_user" yaml:"is_invited_user"`
Has2fa bool `boil:"has_2fa" json:"has_2fa" toml:"has_2fa" yaml:"has_2fa"`
HasFiles bool `boil:"has_files" json:"has_files" toml:"has_files" yaml:"has_files"`
Presence string `boil:"presence" json:"presence" toml:"presence" yaml:"presence"`
Locale string `boil:"locale" json:"locale" toml:"locale" yaml:"locale"`
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 string, selectCols ...string) (*User, error)
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*User) Delete ¶
Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.
func (*User) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
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.
type UserProfile ¶ added in v0.2.0
type UserProfile struct {
FirstName string `boil:"first_name" json:"first_name" toml:"first_name" yaml:"first_name"`
LastName string `boil:"last_name" json:"last_name" toml:"last_name" yaml:"last_name"`
RealName string `boil:"real_name" json:"real_name" toml:"real_name" yaml:"real_name"`
RealNameNormalized string `boil:"real_name_normalized" json:"real_name_normalized" toml:"real_name_normalized" yaml:"real_name_normalized"`
DisplayName string `boil:"display_name" json:"display_name" toml:"display_name" yaml:"display_name"`
DisplayNameNormalized string `boil:"display_name_normalized" json:"display_name_normalized" toml:"display_name_normalized" yaml:"display_name_normalized"`
Email string `boil:"email" json:"email" toml:"email" yaml:"email"`
Skype string `boil:"skype" json:"skype" toml:"skype" yaml:"skype"`
Phone string `boil:"phone" json:"phone" toml:"phone" yaml:"phone"`
Image24 string `boil:"image24" json:"image24" toml:"image24" yaml:"image24"`
Image32 string `boil:"image32" json:"image32" toml:"image32" yaml:"image32"`
Image48 string `boil:"image48" json:"image48" toml:"image48" yaml:"image48"`
Image72 string `boil:"image72" json:"image72" toml:"image72" yaml:"image72"`
Image192 string `boil:"image192" json:"image192" toml:"image192" yaml:"image192"`
Image512 string `boil:"image512" json:"image512" toml:"image512" yaml:"image512"`
ImageOriginal string `boil:"image_original" json:"image_original" toml:"image_original" yaml:"image_original"`
Title string `boil:"title" json:"title" toml:"title" yaml:"title"`
BotID string `boil:"bot_id" json:"bot_id" toml:"bot_id" yaml:"bot_id"`
APIAppID string `boil:"api_app_id" json:"api_app_id" toml:"api_app_id" yaml:"api_app_id"`
StatusText string `boil:"status_text" json:"status_text" toml:"status_text" yaml:"status_text"`
StatusEmoji string `boil:"status_emoji" json:"status_emoji" toml:"status_emoji" yaml:"status_emoji"`
StatusExpiration int64 `boil:"status_expiration" json:"status_expiration" toml:"status_expiration" yaml:"status_expiration"`
Team string `boil:"team" json:"team" toml:"team" yaml:"team"`
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 *userProfileR `boil:"-" json:"-" toml:"-" yaml:"-"`
L userProfileL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
UserProfile is an object representing the database table.
func FindUserProfile ¶ added in v0.2.0
func FindUserProfile(ctx context.Context, exec boil.ContextExecutor, displayNameNormalized string, selectCols ...string) (*UserProfile, error)
FindUserProfile retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*UserProfile) Delete ¶ added in v0.2.0
func (o *UserProfile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single UserProfile record with an executor. Delete will match against the primary key column to find the record to delete.
func (*UserProfile) Insert ¶ added in v0.2.0
func (o *UserProfile) 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 (*UserProfile) Reload ¶ added in v0.2.0
func (o *UserProfile) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*UserProfile) Update ¶ added in v0.2.0
func (o *UserProfile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the UserProfile. 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.
type UserProfileHook ¶ added in v0.2.0
type UserProfileHook func(context.Context, boil.ContextExecutor, *UserProfile) error
UserProfileHook is the signature for custom UserProfile hook methods
type UserProfileSlice ¶ added in v0.2.0
type UserProfileSlice []*UserProfile
UserProfileSlice is an alias for a slice of pointers to UserProfile. This should generally be used opposed to []UserProfile.
func (UserProfileSlice) DeleteAll ¶ added in v0.2.0
func (o UserProfileSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*UserProfileSlice) ReloadAll ¶ added in v0.2.0
func (o *UserProfileSlice) 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 (UserProfileSlice) UpdateAll ¶ added in v0.2.0
func (o UserProfileSlice) 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.