models

package
v1.24.19 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var GuildLoggingConfigColumns = struct {
	GuildID                      string
	CreatedAt                    string
	UpdatedAt                    string
	UsernameLoggingEnabled       string
	NicknameLoggingEnabled       string
	BlacklistedChannels          string
	ManageMessagesCanViewDeleted string
	EveryoneCanViewDeleted       string
	MessageLogsAllowedRoles      string
}{
	GuildID:                      "guild_id",
	CreatedAt:                    "created_at",
	UpdatedAt:                    "updated_at",
	UsernameLoggingEnabled:       "username_logging_enabled",
	NicknameLoggingEnabled:       "nickname_logging_enabled",
	BlacklistedChannels:          "blacklisted_channels",
	ManageMessagesCanViewDeleted: "manage_messages_can_view_deleted",
	EveryoneCanViewDeleted:       "everyone_can_view_deleted",
	MessageLogsAllowedRoles:      "message_logs_allowed_roles",
}
View Source
var GuildLoggingConfigRels = struct {
}{}

GuildLoggingConfigRels is where relationship names are stored.

View Source
var GuildLoggingConfigWhere = struct {
	GuildID                      whereHelperint64
	CreatedAt                    whereHelpernull_Time
	UpdatedAt                    whereHelpernull_Time
	UsernameLoggingEnabled       whereHelpernull_Bool
	NicknameLoggingEnabled       whereHelpernull_Bool
	BlacklistedChannels          whereHelpernull_String
	ManageMessagesCanViewDeleted whereHelpernull_Bool
	EveryoneCanViewDeleted       whereHelpernull_Bool
	MessageLogsAllowedRoles      whereHelpertypes_Int64Array
}{
	GuildID:                      whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:                    whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:                    whereHelpernull_Time{/* contains filtered or unexported fields */},
	UsernameLoggingEnabled:       whereHelpernull_Bool{/* contains filtered or unexported fields */},
	NicknameLoggingEnabled:       whereHelpernull_Bool{/* contains filtered or unexported fields */},
	BlacklistedChannels:          whereHelpernull_String{/* contains filtered or unexported fields */},
	ManageMessagesCanViewDeleted: whereHelpernull_Bool{/* contains filtered or unexported fields */},
	EveryoneCanViewDeleted:       whereHelpernull_Bool{/* contains filtered or unexported fields */},
	MessageLogsAllowedRoles:      whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
}
View Source
var MessageColumns = struct {
	ID             string
	CreatedAt      string
	UpdatedAt      string
	MessageLogID   string
	MessageID      string
	AuthorUsername string
	AuthorDiscrim  string
	AuthorID       string
	Deleted        string
	Content        string
	Timestamp      string
}{
	ID:             "id",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
	MessageLogID:   "message_log_id",
	MessageID:      "message_id",
	AuthorUsername: "author_username",
	AuthorDiscrim:  "author_discrim",
	AuthorID:       "author_id",
	Deleted:        "deleted",
	Content:        "content",
	Timestamp:      "timestamp",
}
View Source
var MessageLogColumns = struct {
	ID          string
	CreatedAt   string
	UpdatedAt   string
	DeletedAt   string
	ChannelName string
	ChannelID   string
	GuildID     string
	Author      string
	AuthorID    string
}{
	ID:          "id",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
	DeletedAt:   "deleted_at",
	ChannelName: "channel_name",
	ChannelID:   "channel_id",
	GuildID:     "guild_id",
	Author:      "author",
	AuthorID:    "author_id",
}
View Source
var MessageLogRels = struct {
	Messages string
}{
	Messages: "Messages",
}

MessageLogRels is where relationship names are stored.

View Source
var MessageLogWhere = struct {
	ID          whereHelperint
	CreatedAt   whereHelpernull_Time
	UpdatedAt   whereHelpernull_Time
	DeletedAt   whereHelpernull_Time
	ChannelName whereHelpernull_String
	ChannelID   whereHelpernull_String
	GuildID     whereHelpernull_String
	Author      whereHelpernull_String
	AuthorID    whereHelpernull_String
}{
	ID:          whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	ChannelName: whereHelpernull_String{/* contains filtered or unexported fields */},
	ChannelID:   whereHelpernull_String{/* contains filtered or unexported fields */},
	GuildID:     whereHelpernull_String{/* contains filtered or unexported fields */},
	Author:      whereHelpernull_String{/* contains filtered or unexported fields */},
	AuthorID:    whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var MessageLogs2Columns = struct {
	ID             string
	LegacyID       string
	GuildID        string
	CreatedAt      string
	UpdatedAt      string
	ChannelName    string
	ChannelID      string
	AuthorID       string
	AuthorUsername string
	Messages       string
}{
	ID:             "id",
	LegacyID:       "legacy_id",
	GuildID:        "guild_id",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
	ChannelName:    "channel_name",
	ChannelID:      "channel_id",
	AuthorID:       "author_id",
	AuthorUsername: "author_username",
	Messages:       "messages",
}
View Source
var MessageLogs2Rels = struct {
}{}

MessageLogs2Rels is where relationship names are stored.

View Source
var MessageLogs2Where = struct {
	ID             whereHelperint
	LegacyID       whereHelperint
	GuildID        whereHelperint64
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
	ChannelName    whereHelperstring
	ChannelID      whereHelperint64
	AuthorID       whereHelperint64
	AuthorUsername whereHelperstring
	Messages       whereHelpertypes_Int64Array
}{
	ID:             whereHelperint{/* contains filtered or unexported fields */},
	LegacyID:       whereHelperint{/* contains filtered or unexported fields */},
	GuildID:        whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	ChannelName:    whereHelperstring{/* contains filtered or unexported fields */},
	ChannelID:      whereHelperint64{/* contains filtered or unexported fields */},
	AuthorID:       whereHelperint64{/* contains filtered or unexported fields */},
	AuthorUsername: whereHelperstring{/* contains filtered or unexported fields */},
	Messages:       whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
}
View Source
var MessageRels = struct {
	MessageLog string
}{
	MessageLog: "MessageLog",
}

MessageRels is where relationship names are stored.

View Source
var MessageWhere = struct {
	ID             whereHelperint
	CreatedAt      whereHelpernull_Time
	UpdatedAt      whereHelpernull_Time
	MessageLogID   whereHelpernull_Int
	MessageID      whereHelpernull_String
	AuthorUsername whereHelpernull_String
	AuthorDiscrim  whereHelpernull_String
	AuthorID       whereHelpernull_String
	Deleted        whereHelpernull_Bool
	Content        whereHelpernull_String
	Timestamp      whereHelpernull_String
}{
	ID:             whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpernull_Time{/* contains filtered or unexported fields */},
	MessageLogID:   whereHelpernull_Int{/* contains filtered or unexported fields */},
	MessageID:      whereHelpernull_String{/* contains filtered or unexported fields */},
	AuthorUsername: whereHelpernull_String{/* contains filtered or unexported fields */},
	AuthorDiscrim:  whereHelpernull_String{/* contains filtered or unexported fields */},
	AuthorID:       whereHelpernull_String{/* contains filtered or unexported fields */},
	Deleted:        whereHelpernull_Bool{/* contains filtered or unexported fields */},
	Content:        whereHelpernull_String{/* contains filtered or unexported fields */},
	Timestamp:      whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var Messages2Columns = struct {
	ID             string
	CreatedAt      string
	UpdatedAt      string
	Deleted        string
	AuthorUsername string
	AuthorID       string
	Content        string
	GuildID        string
}{
	ID:             "id",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
	Deleted:        "deleted",
	AuthorUsername: "author_username",
	AuthorID:       "author_id",
	Content:        "content",
	GuildID:        "guild_id",
}
View Source
var Messages2Rels = struct {
}{}

Messages2Rels is where relationship names are stored.

View Source
var Messages2Where = struct {
	ID             whereHelperint64
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
	Deleted        whereHelperbool
	AuthorUsername whereHelperstring
	AuthorID       whereHelperint64
	Content        whereHelperstring
	GuildID        whereHelperint64
}{
	ID:             whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	Deleted:        whereHelperbool{/* contains filtered or unexported fields */},
	AuthorUsername: whereHelperstring{/* contains filtered or unexported fields */},
	AuthorID:       whereHelperint64{/* contains filtered or unexported fields */},
	Content:        whereHelperstring{/* contains filtered or unexported fields */},
	GuildID:        whereHelperint64{/* contains filtered or unexported fields */},
}
View Source
var NicknameListingColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	UserID    string
	GuildID   string
	Nickname  string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
	UserID:    "user_id",
	GuildID:   "guild_id",
	Nickname:  "nickname",
}
View Source
var NicknameListingRels = struct {
}{}

NicknameListingRels is where relationship names are stored.

View Source
var NicknameListingWhere = struct {
	ID        whereHelperint
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
	DeletedAt whereHelpernull_Time
	UserID    whereHelpernull_Int64
	GuildID   whereHelpernull_String
	Nickname  whereHelpernull_String
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UserID:    whereHelpernull_Int64{/* contains filtered or unexported fields */},
	GuildID:   whereHelpernull_String{/* contains filtered or unexported fields */},
	Nickname:  whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	GuildLoggingConfigs string
	MessageLogs         string
	MessageLogs2        string
	Messages            string
	Messages2           string
	NicknameListings    string
	UsernameListings    string
}{
	GuildLoggingConfigs: "guild_logging_configs",
	MessageLogs:         "message_logs",
	MessageLogs2:        "message_logs2",
	Messages:            "messages",
	Messages2:           "messages2",
	NicknameListings:    "nickname_listings",
	UsernameListings:    "username_listings",
}
View Source
var UsernameListingColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
	UserID    string
	Username  string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
	UserID:    "user_id",
	Username:  "username",
}
View Source
var UsernameListingRels = struct {
}{}

UsernameListingRels is where relationship names are stored.

View Source
var UsernameListingWhere = struct {
	ID        whereHelperint
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
	DeletedAt whereHelpernull_Time
	UserID    whereHelpernull_Int64
	Username  whereHelpernull_String
}{
	ID:        whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UserID:    whereHelpernull_Int64{/* contains filtered or unexported fields */},
	Username:  whereHelpernull_String{/* contains filtered or unexported fields */},
}

Functions

func GuildLoggingConfigExists

func GuildLoggingConfigExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)

GuildLoggingConfigExists checks if the GuildLoggingConfig row exists.

func GuildLoggingConfigExistsG

func GuildLoggingConfigExistsG(ctx context.Context, guildID int64) (bool, error)

GuildLoggingConfigExistsG checks if the GuildLoggingConfig row exists.

func GuildLoggingConfigs

func GuildLoggingConfigs(mods ...qm.QueryMod) guildLoggingConfigQuery

GuildLoggingConfigs retrieves all the records using an executor.

func MessageExists

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

MessageExists checks if the Message row exists.

func MessageExistsG

func MessageExistsG(ctx context.Context, iD int) (bool, error)

MessageExistsG checks if the Message row exists.

func MessageLogExists

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

MessageLogExists checks if the MessageLog row exists.

func MessageLogExistsG

func MessageLogExistsG(ctx context.Context, iD int) (bool, error)

MessageLogExistsG checks if the MessageLog row exists.

func MessageLogs

func MessageLogs(mods ...qm.QueryMod) messageLogQuery

MessageLogs retrieves all the records using an executor.

func MessageLogs2Exists

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

MessageLogs2Exists checks if the MessageLogs2 row exists.

func MessageLogs2ExistsG

func MessageLogs2ExistsG(ctx context.Context, iD int) (bool, error)

MessageLogs2ExistsG checks if the MessageLogs2 row exists.

func MessageLogs2s

func MessageLogs2s(mods ...qm.QueryMod) messageLogs2Query

MessageLogs2s retrieves all the records using an executor.

func Messages

func Messages(mods ...qm.QueryMod) messageQuery

Messages retrieves all the records using an executor.

func Messages2Exists

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

Messages2Exists checks if the Messages2 row exists.

func Messages2ExistsG

func Messages2ExistsG(ctx context.Context, iD int64) (bool, error)

Messages2ExistsG checks if the Messages2 row exists.

func Messages2s

func Messages2s(mods ...qm.QueryMod) messages2Query

Messages2s retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func NicknameListingExists

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

NicknameListingExists checks if the NicknameListing row exists.

func NicknameListingExistsG

func NicknameListingExistsG(ctx context.Context, iD int) (bool, error)

NicknameListingExistsG checks if the NicknameListing row exists.

func NicknameListings

func NicknameListings(mods ...qm.QueryMod) nicknameListingQuery

NicknameListings retrieves all the records using an executor.

func UsernameListingExists

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

UsernameListingExists checks if the UsernameListing row exists.

func UsernameListingExistsG

func UsernameListingExistsG(ctx context.Context, iD int) (bool, error)

UsernameListingExistsG checks if the UsernameListing row exists.

func UsernameListings

func UsernameListings(mods ...qm.QueryMod) usernameListingQuery

UsernameListings retrieves all the records using an executor.

Types

type GuildLoggingConfig

type GuildLoggingConfig struct {
	GuildID                      int64            `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	CreatedAt                    null.Time        `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt                    null.Time        `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	UsernameLoggingEnabled       null.Bool        `` /* 147-byte string literal not displayed */
	NicknameLoggingEnabled       null.Bool        `` /* 147-byte string literal not displayed */
	BlacklistedChannels          null.String      `` /* 131-byte string literal not displayed */
	ManageMessagesCanViewDeleted null.Bool        `` /* 179-byte string literal not displayed */
	EveryoneCanViewDeleted       null.Bool        `` /* 151-byte string literal not displayed */
	MessageLogsAllowedRoles      types.Int64Array `` /* 155-byte string literal not displayed */

	R *guildLoggingConfigR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L guildLoggingConfigL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GuildLoggingConfig is an object representing the database table.

func FindGuildLoggingConfig

func FindGuildLoggingConfig(ctx context.Context, exec boil.ContextExecutor, guildID int64, selectCols ...string) (*GuildLoggingConfig, error)

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

func FindGuildLoggingConfigG

func FindGuildLoggingConfigG(ctx context.Context, guildID int64, selectCols ...string) (*GuildLoggingConfig, error)

FindGuildLoggingConfigG retrieves a single record by ID.

func (*GuildLoggingConfig) Delete

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

func (*GuildLoggingConfig) DeleteG

func (o *GuildLoggingConfig) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single GuildLoggingConfig record. DeleteG will match against the primary key column to find the record to delete.

func (*GuildLoggingConfig) Insert

func (o *GuildLoggingConfig) 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 (*GuildLoggingConfig) InsertG

func (o *GuildLoggingConfig) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*GuildLoggingConfig) Reload

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

func (*GuildLoggingConfig) ReloadG

func (o *GuildLoggingConfig) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*GuildLoggingConfig) Update

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

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

func (o *GuildLoggingConfig) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single GuildLoggingConfig record using the global executor. See Update for more documentation.

func (*GuildLoggingConfig) Upsert

func (o *GuildLoggingConfig) 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 (*GuildLoggingConfig) UpsertG

func (o *GuildLoggingConfig) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type GuildLoggingConfigSlice

type GuildLoggingConfigSlice []*GuildLoggingConfig

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

func (GuildLoggingConfigSlice) DeleteAll

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

func (GuildLoggingConfigSlice) DeleteAllG

func (o GuildLoggingConfigSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*GuildLoggingConfigSlice) ReloadAll

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

func (*GuildLoggingConfigSlice) ReloadAllG

func (o *GuildLoggingConfigSlice) ReloadAllG(ctx context.Context) error

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

func (GuildLoggingConfigSlice) UpdateAll

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

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

func (GuildLoggingConfigSlice) UpdateAllG

func (o GuildLoggingConfigSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type Message

type Message struct {
	ID             int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt      null.Time   `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt      null.Time   `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	MessageLogID   null.Int    `boil:"message_log_id" json:"message_log_id,omitempty" toml:"message_log_id" yaml:"message_log_id,omitempty"`
	MessageID      null.String `boil:"message_id" json:"message_id,omitempty" toml:"message_id" yaml:"message_id,omitempty"`
	AuthorUsername null.String `boil:"author_username" json:"author_username,omitempty" toml:"author_username" yaml:"author_username,omitempty"`
	AuthorDiscrim  null.String `boil:"author_discrim" json:"author_discrim,omitempty" toml:"author_discrim" yaml:"author_discrim,omitempty"`
	AuthorID       null.String `boil:"author_id" json:"author_id,omitempty" toml:"author_id" yaml:"author_id,omitempty"`
	Deleted        null.Bool   `boil:"deleted" json:"deleted,omitempty" toml:"deleted" yaml:"deleted,omitempty"`
	Content        null.String `boil:"content" json:"content,omitempty" toml:"content" yaml:"content,omitempty"`
	Timestamp      null.String `boil:"timestamp" json:"timestamp,omitempty" toml:"timestamp" yaml:"timestamp,omitempty"`

	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, iD int, selectCols ...string) (*Message, error)

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

func FindMessageG

func FindMessageG(ctx context.Context, iD int, selectCols ...string) (*Message, error)

FindMessageG retrieves a single record by ID.

func (*Message) Delete

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

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

func (o *Message) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single Message record. DeleteG 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) InsertG

func (o *Message) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Message) MessageLog

func (o *Message) MessageLog(mods ...qm.QueryMod) messageLogQuery

MessageLog pointed to by the foreign key.

func (*Message) Reload

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

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

func (*Message) ReloadG

func (o *Message) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*Message) RemoveMessageLog

func (o *Message) RemoveMessageLog(ctx context.Context, exec boil.ContextExecutor, related *MessageLog) error

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

func (*Message) RemoveMessageLogG

func (o *Message) RemoveMessageLogG(ctx context.Context, related *MessageLog) error

RemoveMessageLogG relationship. Sets o.R.MessageLog to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*Message) SetMessageLog

func (o *Message) SetMessageLog(ctx context.Context, exec boil.ContextExecutor, insert bool, related *MessageLog) error

SetMessageLog of the message to the related item. Sets o.R.MessageLog to related. Adds o to related.R.Messages.

func (*Message) SetMessageLogG

func (o *Message) SetMessageLogG(ctx context.Context, insert bool, related *MessageLog) error

SetMessageLogG of the message to the related item. Sets o.R.MessageLog to related. Adds o to related.R.Messages. Uses the global database handle.

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.

func (*Message) UpdateG

func (o *Message) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Message record using the global executor. See Update for more documentation.

func (*Message) Upsert

func (o *Message) 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 (*Message) UpsertG

func (o *Message) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type MessageLog

type MessageLog struct {
	ID          int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt   null.Time   `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt   null.Time   `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt   null.Time   `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	ChannelName null.String `boil:"channel_name" json:"channel_name,omitempty" toml:"channel_name" yaml:"channel_name,omitempty"`
	ChannelID   null.String `boil:"channel_id" json:"channel_id,omitempty" toml:"channel_id" yaml:"channel_id,omitempty"`
	GuildID     null.String `boil:"guild_id" json:"guild_id,omitempty" toml:"guild_id" yaml:"guild_id,omitempty"`
	Author      null.String `boil:"author" json:"author,omitempty" toml:"author" yaml:"author,omitempty"`
	AuthorID    null.String `boil:"author_id" json:"author_id,omitempty" toml:"author_id" yaml:"author_id,omitempty"`

	R *messageLogR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L messageLogL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MessageLog is an object representing the database table.

func FindMessageLog

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

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

func FindMessageLogG

func FindMessageLogG(ctx context.Context, iD int, selectCols ...string) (*MessageLog, error)

FindMessageLogG retrieves a single record by ID.

func (*MessageLog) AddMessages

func (o *MessageLog) AddMessages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Message) error

AddMessages adds the given related objects to the existing relationships of the message_log, optionally inserting them as new records. Appends related to o.R.Messages. Sets related.R.MessageLog appropriately.

func (*MessageLog) AddMessagesG

func (o *MessageLog) AddMessagesG(ctx context.Context, insert bool, related ...*Message) error

AddMessagesG adds the given related objects to the existing relationships of the message_log, optionally inserting them as new records. Appends related to o.R.Messages. Sets related.R.MessageLog appropriately. Uses the global database handle.

func (*MessageLog) Delete

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

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

func (*MessageLog) DeleteG

func (o *MessageLog) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single MessageLog record. DeleteG will match against the primary key column to find the record to delete.

func (*MessageLog) Insert

func (o *MessageLog) 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 (*MessageLog) InsertG

func (o *MessageLog) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*MessageLog) Messages

func (o *MessageLog) Messages(mods ...qm.QueryMod) messageQuery

Messages retrieves all the message's Messages with an executor.

func (*MessageLog) Reload

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

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

func (*MessageLog) ReloadG

func (o *MessageLog) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*MessageLog) RemoveMessages

func (o *MessageLog) RemoveMessages(ctx context.Context, exec boil.ContextExecutor, related ...*Message) error

RemoveMessages relationships from objects passed in. Removes related items from R.Messages (uses pointer comparison, removal does not keep order) Sets related.R.MessageLog.

func (*MessageLog) RemoveMessagesG

func (o *MessageLog) RemoveMessagesG(ctx context.Context, related ...*Message) error

RemoveMessagesG relationships from objects passed in. Removes related items from R.Messages (uses pointer comparison, removal does not keep order) Sets related.R.MessageLog. Uses the global database handle.

func (*MessageLog) SetMessages

func (o *MessageLog) SetMessages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Message) error

SetMessages removes all previously related items of the message_log replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.MessageLog's Messages accordingly. Replaces o.R.Messages with related. Sets related.R.MessageLog's Messages accordingly.

func (*MessageLog) SetMessagesG

func (o *MessageLog) SetMessagesG(ctx context.Context, insert bool, related ...*Message) error

SetMessagesG removes all previously related items of the message_log replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.MessageLog's Messages accordingly. Replaces o.R.Messages with related. Sets related.R.MessageLog's Messages accordingly. Uses the global database handle.

func (*MessageLog) Update

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

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

func (o *MessageLog) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single MessageLog record using the global executor. See Update for more documentation.

func (*MessageLog) Upsert

func (o *MessageLog) 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 (*MessageLog) UpsertG

func (o *MessageLog) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type MessageLogSlice

type MessageLogSlice []*MessageLog

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

func (MessageLogSlice) DeleteAll

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

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

func (MessageLogSlice) DeleteAllG

func (o MessageLogSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*MessageLogSlice) ReloadAll

func (o *MessageLogSlice) 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 (*MessageLogSlice) ReloadAllG

func (o *MessageLogSlice) ReloadAllG(ctx context.Context) error

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

func (MessageLogSlice) UpdateAll

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

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

func (MessageLogSlice) UpdateAllG

func (o MessageLogSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type MessageLogs2

type MessageLogs2 struct {
	ID             int              `boil:"id" json:"id" toml:"id" yaml:"id"`
	LegacyID       int              `boil:"legacy_id" json:"legacy_id" toml:"legacy_id" yaml:"legacy_id"`
	GuildID        int64            `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_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"`
	ChannelName    string           `boil:"channel_name" json:"channel_name" toml:"channel_name" yaml:"channel_name"`
	ChannelID      int64            `boil:"channel_id" json:"channel_id" toml:"channel_id" yaml:"channel_id"`
	AuthorID       int64            `boil:"author_id" json:"author_id" toml:"author_id" yaml:"author_id"`
	AuthorUsername string           `boil:"author_username" json:"author_username" toml:"author_username" yaml:"author_username"`
	Messages       types.Int64Array `boil:"messages" json:"messages,omitempty" toml:"messages" yaml:"messages,omitempty"`

	R *messageLogs2R `boil:"-" json:"-" toml:"-" yaml:"-"`
	L messageLogs2L  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MessageLogs2 is an object representing the database table.

func FindMessageLogs2

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

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

func FindMessageLogs2G

func FindMessageLogs2G(ctx context.Context, iD int, selectCols ...string) (*MessageLogs2, error)

FindMessageLogs2G retrieves a single record by ID.

func (*MessageLogs2) Delete

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

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

func (*MessageLogs2) DeleteG

func (o *MessageLogs2) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single MessageLogs2 record. DeleteG will match against the primary key column to find the record to delete.

func (*MessageLogs2) Insert

func (o *MessageLogs2) 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 (*MessageLogs2) InsertG

func (o *MessageLogs2) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*MessageLogs2) Reload

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

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

func (*MessageLogs2) ReloadG

func (o *MessageLogs2) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*MessageLogs2) Update

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

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

func (o *MessageLogs2) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single MessageLogs2 record using the global executor. See Update for more documentation.

func (*MessageLogs2) Upsert

func (o *MessageLogs2) 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 (*MessageLogs2) UpsertG

func (o *MessageLogs2) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type MessageLogs2Slice

type MessageLogs2Slice []*MessageLogs2

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

func (MessageLogs2Slice) DeleteAll

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

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

func (MessageLogs2Slice) DeleteAllG

func (o MessageLogs2Slice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*MessageLogs2Slice) ReloadAll

func (o *MessageLogs2Slice) 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 (*MessageLogs2Slice) ReloadAllG

func (o *MessageLogs2Slice) ReloadAllG(ctx context.Context) error

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

func (MessageLogs2Slice) UpdateAll

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

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

func (MessageLogs2Slice) UpdateAllG

func (o MessageLogs2Slice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

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

func (o MessageSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

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

func (o *MessageSlice) ReloadAllG(ctx context.Context) error

ReloadAllG 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.

func (MessageSlice) UpdateAllG

func (o MessageSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type Messages2

type Messages2 struct {
	ID             int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt      time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	Deleted        bool      `boil:"deleted" json:"deleted" toml:"deleted" yaml:"deleted"`
	AuthorUsername string    `boil:"author_username" json:"author_username" toml:"author_username" yaml:"author_username"`
	AuthorID       int64     `boil:"author_id" json:"author_id" toml:"author_id" yaml:"author_id"`
	Content        string    `boil:"content" json:"content" toml:"content" yaml:"content"`
	GuildID        int64     `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`

	R *messages2R `boil:"-" json:"-" toml:"-" yaml:"-"`
	L messages2L  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Messages2 is an object representing the database table.

func FindMessages2

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

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

func FindMessages2G

func FindMessages2G(ctx context.Context, iD int64, selectCols ...string) (*Messages2, error)

FindMessages2G retrieves a single record by ID.

func (*Messages2) Delete

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

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

func (*Messages2) DeleteG

func (o *Messages2) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single Messages2 record. DeleteG will match against the primary key column to find the record to delete.

func (*Messages2) Insert

func (o *Messages2) 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 (*Messages2) InsertG

func (o *Messages2) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Messages2) Reload

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

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

func (*Messages2) ReloadG

func (o *Messages2) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*Messages2) Update

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

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

func (o *Messages2) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single Messages2 record using the global executor. See Update for more documentation.

func (*Messages2) Upsert

func (o *Messages2) 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 (*Messages2) UpsertG

func (o *Messages2) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type Messages2Slice

type Messages2Slice []*Messages2

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

func (Messages2Slice) DeleteAll

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

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

func (Messages2Slice) DeleteAllG

func (o Messages2Slice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*Messages2Slice) ReloadAll

func (o *Messages2Slice) 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 (*Messages2Slice) ReloadAllG

func (o *Messages2Slice) ReloadAllG(ctx context.Context) error

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

func (Messages2Slice) UpdateAll

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

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

func (Messages2Slice) UpdateAllG

func (o Messages2Slice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type NicknameListing

type NicknameListing struct {
	ID        int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt null.Time   `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time   `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt null.Time   `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	UserID    null.Int64  `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"`
	GuildID   null.String `boil:"guild_id" json:"guild_id,omitempty" toml:"guild_id" yaml:"guild_id,omitempty"`
	Nickname  null.String `boil:"nickname" json:"nickname,omitempty" toml:"nickname" yaml:"nickname,omitempty"`

	R *nicknameListingR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L nicknameListingL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

NicknameListing is an object representing the database table.

func FindNicknameListing

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

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

func FindNicknameListingG

func FindNicknameListingG(ctx context.Context, iD int, selectCols ...string) (*NicknameListing, error)

FindNicknameListingG retrieves a single record by ID.

func (*NicknameListing) Delete

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

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

func (*NicknameListing) DeleteG

func (o *NicknameListing) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single NicknameListing record. DeleteG will match against the primary key column to find the record to delete.

func (*NicknameListing) Insert

func (o *NicknameListing) 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 (*NicknameListing) InsertG

func (o *NicknameListing) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*NicknameListing) Reload

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

func (*NicknameListing) ReloadG

func (o *NicknameListing) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*NicknameListing) Update

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

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

func (o *NicknameListing) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single NicknameListing record using the global executor. See Update for more documentation.

func (*NicknameListing) Upsert

func (o *NicknameListing) 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 (*NicknameListing) UpsertG

func (o *NicknameListing) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type NicknameListingSlice

type NicknameListingSlice []*NicknameListing

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

func (NicknameListingSlice) DeleteAll

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

func (NicknameListingSlice) DeleteAllG

func (o NicknameListingSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*NicknameListingSlice) ReloadAll

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

func (*NicknameListingSlice) ReloadAllG

func (o *NicknameListingSlice) ReloadAllG(ctx context.Context) error

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

func (NicknameListingSlice) UpdateAll

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

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

func (NicknameListingSlice) UpdateAllG

func (o NicknameListingSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type UsernameListing

type UsernameListing struct {
	ID        int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt null.Time   `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`
	UpdatedAt null.Time   `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt null.Time   `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	UserID    null.Int64  `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"`
	Username  null.String `boil:"username" json:"username,omitempty" toml:"username" yaml:"username,omitempty"`

	R *usernameListingR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L usernameListingL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

UsernameListing is an object representing the database table.

func FindUsernameListing

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

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

func FindUsernameListingG

func FindUsernameListingG(ctx context.Context, iD int, selectCols ...string) (*UsernameListing, error)

FindUsernameListingG retrieves a single record by ID.

func (*UsernameListing) Delete

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

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

func (*UsernameListing) DeleteG

func (o *UsernameListing) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single UsernameListing record. DeleteG will match against the primary key column to find the record to delete.

func (*UsernameListing) Insert

func (o *UsernameListing) 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 (*UsernameListing) InsertG

func (o *UsernameListing) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*UsernameListing) Reload

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

func (*UsernameListing) ReloadG

func (o *UsernameListing) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*UsernameListing) Update

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

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

func (o *UsernameListing) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single UsernameListing record using the global executor. See Update for more documentation.

func (*UsernameListing) Upsert

func (o *UsernameListing) 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 (*UsernameListing) UpsertG

func (o *UsernameListing) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type UsernameListingSlice

type UsernameListingSlice []*UsernameListing

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

func (UsernameListingSlice) DeleteAll

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

func (UsernameListingSlice) DeleteAllG

func (o UsernameListingSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*UsernameListingSlice) ReloadAll

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

func (*UsernameListingSlice) ReloadAllG

func (o *UsernameListingSlice) ReloadAllG(ctx context.Context) error

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

func (UsernameListingSlice) UpdateAll

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

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

func (UsernameListingSlice) UpdateAllG

func (o UsernameListingSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

Jump to

Keyboard shortcuts

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