models

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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
	AccessMode                   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",
	AccessMode:                   "access_mode",
}
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
	AccessMode                   whereHelperint16
}{
	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 */},
	AccessMode:                   whereHelperint16{/* contains filtered or unexported fields */},
}
View Source
var MessageLogs2Columns = struct {
	ID             string
	GuildID        string
	LegacyID       string
	CreatedAt      string
	UpdatedAt      string
	ChannelName    string
	ChannelID      string
	AuthorID       string
	AuthorUsername string
	Messages       string
}{
	ID:             "id",
	GuildID:        "guild_id",
	LegacyID:       "legacy_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
	GuildID        whereHelperint64
	LegacyID       whereHelperint
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
	ChannelName    whereHelperstring
	ChannelID      whereHelperint64
	AuthorID       whereHelperint64
	AuthorUsername whereHelperstring
	Messages       whereHelpertypes_Int64Array
}{
	ID:             whereHelperint{/* contains filtered or unexported fields */},
	GuildID:        whereHelperint64{/* contains filtered or unexported fields */},
	LegacyID:       whereHelperint{/* 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 Messages2Columns = struct {
	ID             string
	GuildID        string
	CreatedAt      string
	UpdatedAt      string
	Deleted        string
	AuthorUsername string
	AuthorID       string
	Content        string
}{
	ID:             "id",
	GuildID:        "guild_id",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
	Deleted:        "deleted",
	AuthorUsername: "author_username",
	AuthorID:       "author_id",
	Content:        "content",
}
View Source
var Messages2Rels = struct {
}{}

Messages2Rels is where relationship names are stored.

View Source
var Messages2Where = struct {
	ID             whereHelperint64
	GuildID        whereHelperint64
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
	Deleted        whereHelperbool
	AuthorUsername whereHelperstring
	AuthorID       whereHelperint64
	Content        whereHelperstring
}{
	ID:             whereHelperint64{/* 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 */},
	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 */},
}
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
	MessageLogs2        string
	Messages2           string
	NicknameListings    string
	UsernameListings    string
}{
	GuildLoggingConfigs: "guild_logging_configs",
	MessageLogs2:        "message_logs2",
	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 MessageLogs2Exists

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

MessageLogs2Exists checks if the MessageLogs2 row exists.

func MessageLogs2ExistsG

func MessageLogs2ExistsG(ctx context.Context, guildID int64, 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 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 */
	AccessMode                   int16            `boil:"access_mode" json:"access_mode" toml:"access_mode" yaml:"access_mode"`

	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 MessageLogs2

type MessageLogs2 struct {
	ID             int              `boil:"id" json:"id" toml:"id" yaml:"id"`
	GuildID        int64            `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	LegacyID       int              `boil:"legacy_id" json:"legacy_id" toml:"legacy_id" yaml:"legacy_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, guildID int64, 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, guildID int64, 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 Messages2

type Messages2 struct {
	ID             int64     `boil:"id" json:"id" toml:"id" yaml:"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"`
	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"`

	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