models

package
v0.0.0-...-15884ca Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BusinessColumns = struct {
	ID        string
	Name      string
	Website   string
	Logo      string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	Name:      "name",
	Website:   "website",
	Logo:      "logo",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var BusinessRels = struct {
	BusinessStacks string
}{
	BusinessStacks: "BusinessStacks",
}

BusinessRels is where relationship names are stored.

View Source
var BusinessStackColumns = struct {
	ID         string
	BusinessID string
	StackID    string
	CreatedAt  string
	UpdatedAt  string
}{
	ID:         "id",
	BusinessID: "business_id",
	StackID:    "stack_id",
	CreatedAt:  "created_at",
	UpdatedAt:  "updated_at",
}
View Source
var BusinessStackRels = struct {
	Business string
	Stack    string
}{
	Business: "Business",
	Stack:    "Stack",
}

BusinessStackRels is where relationship names are stored.

View Source
var BusinessStackWhere = struct {
	ID         whereHelperuint64
	BusinessID whereHelperuint64
	StackID    whereHelperuint64
	CreatedAt  whereHelpernull_Time
	UpdatedAt  whereHelpernull_Time
}{
	ID:         whereHelperuint64{/* contains filtered or unexported fields */},
	BusinessID: whereHelperuint64{/* contains filtered or unexported fields */},
	StackID:    whereHelperuint64{/* contains filtered or unexported fields */},
	CreatedAt:  whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:  whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var BusinessWhere = struct {
	ID        whereHelperuint64
	Name      whereHelperstring
	Website   whereHelperstring
	Logo      whereHelpernull_String
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperuint64{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	Website:   whereHelperstring{/* contains filtered or unexported fields */},
	Logo:      whereHelpernull_String{/* 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 */},
}
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 PasswordResetColumns = struct {
	ID        string
	Email     string
	Token     string
	CreatedAt string
}{
	ID:        "id",
	Email:     "email",
	Token:     "token",
	CreatedAt: "created_at",
}
View Source
var PasswordResetRels = struct {
}{}

PasswordResetRels is where relationship names are stored.

View Source
var PasswordResetWhere = struct {
	ID        whereHelperuint64
	Email     whereHelperstring
	Token     whereHelperstring
	CreatedAt whereHelpernull_Time
}{
	ID:        whereHelperuint64{/* contains filtered or unexported fields */},
	Email:     whereHelperstring{/* contains filtered or unexported fields */},
	Token:     whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var StackColumns = struct {
	ID           string
	Name         string
	Creators     string
	Website      string
	Logo         string
	ReleasedAt   string
	DeprecatedAt string
	CreatedAt    string
	UpdatedAt    string
}{
	ID:           "id",
	Name:         "name",
	Creators:     "creators",
	Website:      "website",
	Logo:         "logo",
	ReleasedAt:   "released_at",
	DeprecatedAt: "deprecated_at",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
}
View Source
var StackRels = struct {
	BusinessStacks string
	StackTags      string
}{
	BusinessStacks: "BusinessStacks",
	StackTags:      "StackTags",
}

StackRels is where relationship names are stored.

View Source
var StackTagColumns = struct {
	ID        string
	StackID   string
	TagID     string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	StackID:   "stack_id",
	TagID:     "tag_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var StackTagRels = struct {
	Stack string
	Tag   string
}{
	Stack: "Stack",
	Tag:   "Tag",
}

StackTagRels is where relationship names are stored.

View Source
var StackTagWhere = struct {
	ID        whereHelperuint64
	StackID   whereHelperuint64
	TagID     whereHelperuint64
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
}{
	ID:        whereHelperuint64{/* contains filtered or unexported fields */},
	StackID:   whereHelperuint64{/* contains filtered or unexported fields */},
	TagID:     whereHelperuint64{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var StackWhere = struct {
	ID           whereHelperuint64
	Name         whereHelperstring
	Creators     whereHelpernull_JSON
	Website      whereHelpernull_String
	Logo         whereHelpernull_String
	ReleasedAt   whereHelpertime_Time
	DeprecatedAt whereHelpertime_Time
	CreatedAt    whereHelpernull_Time
	UpdatedAt    whereHelpernull_Time
}{
	ID:           whereHelperuint64{/* contains filtered or unexported fields */},
	Name:         whereHelperstring{/* contains filtered or unexported fields */},
	Creators:     whereHelpernull_JSON{/* contains filtered or unexported fields */},
	Website:      whereHelpernull_String{/* contains filtered or unexported fields */},
	Logo:         whereHelpernull_String{/* contains filtered or unexported fields */},
	ReleasedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeprecatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Business      string
	BusinessStack string
	PasswordReset string
	Stack         string
	StackTag      string
	Tag           string
	User          string
}{
	Business:      "business",
	BusinessStack: "business_stack",
	PasswordReset: "password_reset",
	Stack:         "stack",
	StackTag:      "stack_tag",
	Tag:           "tag",
	User:          "user",
}
View Source
var TagColumns = struct {
	ID        string
	Name      string
	CreatedAt string
	UpdatedAt string
}{
	ID:        "id",
	Name:      "name",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
}
View Source
var TagRels = struct {
	StackTags string
}{
	StackTags: "StackTags",
}

TagRels is where relationship names are stored.

View Source
var TagWhere = struct {
	ID        whereHelperuint64
	Name      whereHelperstring
	CreatedAt whereHelpernull_Time
	UpdatedAt whereHelpernull_Time
}{
	ID:        whereHelperuint64{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var UserColumns = struct {
	ID              string
	Name            string
	Email           string
	Mobile          string
	EmailVerifiedAt string
	Password        string
	RememberToken   string
	CreatedAt       string
	UpdatedAt       string
}{
	ID:              "id",
	Name:            "name",
	Email:           "email",
	Mobile:          "mobile",
	EmailVerifiedAt: "email_verified_at",
	Password:        "password",
	RememberToken:   "remember_token",
	CreatedAt:       "created_at",
	UpdatedAt:       "updated_at",
}
View Source
var UserRels = struct {
}{}

UserRels is where relationship names are stored.

View Source
var UserWhere = struct {
	ID              whereHelperuint64
	Name            whereHelperstring
	Email           whereHelperstring
	Mobile          whereHelperstring
	EmailVerifiedAt whereHelpernull_Time
	Password        whereHelperstring
	RememberToken   whereHelpernull_String
	CreatedAt       whereHelpernull_Time
	UpdatedAt       whereHelpernull_Time
}{
	ID:              whereHelperuint64{/* contains filtered or unexported fields */},
	Name:            whereHelperstring{/* contains filtered or unexported fields */},
	Email:           whereHelperstring{/* contains filtered or unexported fields */},
	Mobile:          whereHelperstring{/* contains filtered or unexported fields */},
	EmailVerifiedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
	Password:        whereHelperstring{/* contains filtered or unexported fields */},
	RememberToken:   whereHelpernull_String{/* contains filtered or unexported fields */},
	CreatedAt:       whereHelpernull_Time{/* contains filtered or unexported fields */},
	UpdatedAt:       whereHelpernull_Time{/* contains filtered or unexported fields */},
}

Functions

func AddBusinessHook

func AddBusinessHook(hookPoint boil.HookPoint, businessHook BusinessHook)

AddBusinessHook registers your hook function for all future operations.

func AddBusinessStackHook

func AddBusinessStackHook(hookPoint boil.HookPoint, businessStackHook BusinessStackHook)

AddBusinessStackHook registers your hook function for all future operations.

func AddPasswordResetHook

func AddPasswordResetHook(hookPoint boil.HookPoint, passwordResetHook PasswordResetHook)

AddPasswordResetHook registers your hook function for all future operations.

func AddStackHook

func AddStackHook(hookPoint boil.HookPoint, stackHook StackHook)

AddStackHook registers your hook function for all future operations.

func AddStackTagHook

func AddStackTagHook(hookPoint boil.HookPoint, stackTagHook StackTagHook)

AddStackTagHook registers your hook function for all future operations.

func AddTagHook

func AddTagHook(hookPoint boil.HookPoint, tagHook TagHook)

AddTagHook registers your hook function for all future operations.

func AddUserHook

func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)

AddUserHook registers your hook function for all future operations.

func BusinessExists

func BusinessExists(exec boil.Executor, iD uint64) (bool, error)

BusinessExists checks if the Business row exists.

func BusinessExistsG

func BusinessExistsG(iD uint64) (bool, error)

BusinessExistsG checks if the Business row exists.

func BusinessStackExists

func BusinessStackExists(exec boil.Executor, iD uint64) (bool, error)

BusinessStackExists checks if the BusinessStack row exists.

func BusinessStackExistsG

func BusinessStackExistsG(iD uint64) (bool, error)

BusinessStackExistsG checks if the BusinessStack row exists.

func BusinessStacks

func BusinessStacks(mods ...qm.QueryMod) businessStackQuery

BusinessStacks retrieves all the records using an executor.

func Businesses

func Businesses(mods ...qm.QueryMod) businessQuery

Businesses 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 PasswordResetExists

func PasswordResetExists(exec boil.Executor, iD uint64) (bool, error)

PasswordResetExists checks if the PasswordReset row exists.

func PasswordResetExistsG

func PasswordResetExistsG(iD uint64) (bool, error)

PasswordResetExistsG checks if the PasswordReset row exists.

func PasswordResets

func PasswordResets(mods ...qm.QueryMod) passwordResetQuery

PasswordResets retrieves all the records using an executor.

func StackExists

func StackExists(exec boil.Executor, iD uint64) (bool, error)

StackExists checks if the Stack row exists.

func StackExistsG

func StackExistsG(iD uint64) (bool, error)

StackExistsG checks if the Stack row exists.

func StackTagExists

func StackTagExists(exec boil.Executor, iD uint64) (bool, error)

StackTagExists checks if the StackTag row exists.

func StackTagExistsG

func StackTagExistsG(iD uint64) (bool, error)

StackTagExistsG checks if the StackTag row exists.

func StackTags

func StackTags(mods ...qm.QueryMod) stackTagQuery

StackTags retrieves all the records using an executor.

func Stacks

func Stacks(mods ...qm.QueryMod) stackQuery

Stacks retrieves all the records using an executor.

func TagExists

func TagExists(exec boil.Executor, iD uint64) (bool, error)

TagExists checks if the Tag row exists.

func TagExistsG

func TagExistsG(iD uint64) (bool, error)

TagExistsG checks if the Tag row exists.

func Tags

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

Tags retrieves all the records using an executor.

func UserExists

func UserExists(exec boil.Executor, iD uint64) (bool, error)

UserExists checks if the User row exists.

func UserExistsG

func UserExistsG(iD uint64) (bool, error)

UserExistsG checks if the User row exists.

func Users

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

Users retrieves all the records using an executor.

Types

type Business

type Business struct {
	ID        uint64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Website   string      `boil:"website" json:"website" toml:"website" yaml:"website"`
	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"`

	R *businessR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L businessL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Business is an object representing the database table.

func FindBusiness

func FindBusiness(exec boil.Executor, iD uint64, selectCols ...string) (*Business, error)

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

func FindBusinessG

func FindBusinessG(iD uint64, selectCols ...string) (*Business, error)

FindBusinessG retrieves a single record by ID.

func (*Business) AddBusinessStacks

func (o *Business) AddBusinessStacks(exec boil.Executor, insert bool, related ...*BusinessStack) error

AddBusinessStacks adds the given related objects to the existing relationships of the business, optionally inserting them as new records. Appends related to o.R.BusinessStacks. Sets related.R.Business appropriately.

func (*Business) AddBusinessStacksG

func (o *Business) AddBusinessStacksG(insert bool, related ...*BusinessStack) error

AddBusinessStacksG adds the given related objects to the existing relationships of the business, optionally inserting them as new records. Appends related to o.R.BusinessStacks. Sets related.R.Business appropriately. Uses the global database handle.

func (*Business) BusinessStacks

func (o *Business) BusinessStacks(mods ...qm.QueryMod) businessStackQuery

BusinessStacks retrieves all the business_stack's BusinessStacks with an executor.

func (*Business) Delete

func (o *Business) Delete(exec boil.Executor) (int64, error)

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

func (*Business) DeleteG

func (o *Business) DeleteG() (int64, error)

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

func (*Business) Insert

func (o *Business) Insert(exec boil.Executor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Business) InsertG

func (o *Business) InsertG(columns boil.Columns) error

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

func (*Business) Reload

func (o *Business) Reload(exec boil.Executor) error

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

func (*Business) ReloadG

func (o *Business) ReloadG() error

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

func (*Business) Update

func (o *Business) Update(exec boil.Executor, columns boil.Columns) (int64, error)

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

func (o *Business) UpdateG(columns boil.Columns) (int64, error)

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

func (*Business) Upsert

func (o *Business) Upsert(exec boil.Executor, 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 (*Business) UpsertG

func (o *Business) UpsertG(updateColumns, insertColumns boil.Columns) error

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

type BusinessHook

type BusinessHook func(boil.Executor, *Business) error

BusinessHook is the signature for custom Business hook methods

type BusinessSlice

type BusinessSlice []*Business

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

func (BusinessSlice) DeleteAll

func (o BusinessSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (BusinessSlice) DeleteAllG

func (o BusinessSlice) DeleteAllG() (int64, error)

DeleteAllG deletes all rows in the slice.

func (*BusinessSlice) ReloadAll

func (o *BusinessSlice) ReloadAll(exec boil.Executor) error

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

func (*BusinessSlice) ReloadAllG

func (o *BusinessSlice) ReloadAllG() error

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

func (BusinessSlice) UpdateAll

func (o BusinessSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

func (BusinessSlice) UpdateAllG

func (o BusinessSlice) UpdateAllG(cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type BusinessStack

type BusinessStack struct {
	ID         uint64    `boil:"id" json:"id" toml:"id" yaml:"id"`
	BusinessID uint64    `boil:"business_id" json:"business_id" toml:"business_id" yaml:"business_id"`
	StackID    uint64    `boil:"stack_id" json:"stack_id" toml:"stack_id" yaml:"stack_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"`

	R *businessStackR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L businessStackL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

BusinessStack is an object representing the database table.

func FindBusinessStack

func FindBusinessStack(exec boil.Executor, iD uint64, selectCols ...string) (*BusinessStack, error)

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

func FindBusinessStackG

func FindBusinessStackG(iD uint64, selectCols ...string) (*BusinessStack, error)

FindBusinessStackG retrieves a single record by ID.

func (*BusinessStack) Business

func (o *BusinessStack) Business(mods ...qm.QueryMod) businessQuery

Business pointed to by the foreign key.

func (*BusinessStack) Delete

func (o *BusinessStack) Delete(exec boil.Executor) (int64, error)

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

func (*BusinessStack) DeleteG

func (o *BusinessStack) DeleteG() (int64, error)

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

func (*BusinessStack) Insert

func (o *BusinessStack) Insert(exec boil.Executor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*BusinessStack) InsertG

func (o *BusinessStack) InsertG(columns boil.Columns) error

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

func (*BusinessStack) Reload

func (o *BusinessStack) Reload(exec boil.Executor) error

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

func (*BusinessStack) ReloadG

func (o *BusinessStack) ReloadG() error

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

func (*BusinessStack) SetBusiness

func (o *BusinessStack) SetBusiness(exec boil.Executor, insert bool, related *Business) error

SetBusiness of the businessStack to the related item. Sets o.R.Business to related. Adds o to related.R.BusinessStacks.

func (*BusinessStack) SetBusinessG

func (o *BusinessStack) SetBusinessG(insert bool, related *Business) error

SetBusinessG of the businessStack to the related item. Sets o.R.Business to related. Adds o to related.R.BusinessStacks. Uses the global database handle.

func (*BusinessStack) SetStack

func (o *BusinessStack) SetStack(exec boil.Executor, insert bool, related *Stack) error

SetStack of the businessStack to the related item. Sets o.R.Stack to related. Adds o to related.R.BusinessStacks.

func (*BusinessStack) SetStackG

func (o *BusinessStack) SetStackG(insert bool, related *Stack) error

SetStackG of the businessStack to the related item. Sets o.R.Stack to related. Adds o to related.R.BusinessStacks. Uses the global database handle.

func (*BusinessStack) Stack

func (o *BusinessStack) Stack(mods ...qm.QueryMod) stackQuery

Stack pointed to by the foreign key.

func (*BusinessStack) Update

func (o *BusinessStack) Update(exec boil.Executor, columns boil.Columns) (int64, error)

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

func (o *BusinessStack) UpdateG(columns boil.Columns) (int64, error)

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

func (*BusinessStack) Upsert

func (o *BusinessStack) Upsert(exec boil.Executor, 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 (*BusinessStack) UpsertG

func (o *BusinessStack) UpsertG(updateColumns, insertColumns boil.Columns) error

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

type BusinessStackHook

type BusinessStackHook func(boil.Executor, *BusinessStack) error

BusinessStackHook is the signature for custom BusinessStack hook methods

type BusinessStackSlice

type BusinessStackSlice []*BusinessStack

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

func (BusinessStackSlice) DeleteAll

func (o BusinessStackSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (BusinessStackSlice) DeleteAllG

func (o BusinessStackSlice) DeleteAllG() (int64, error)

DeleteAllG deletes all rows in the slice.

func (*BusinessStackSlice) ReloadAll

func (o *BusinessStackSlice) ReloadAll(exec boil.Executor) error

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

func (*BusinessStackSlice) ReloadAllG

func (o *BusinessStackSlice) ReloadAllG() error

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

func (BusinessStackSlice) UpdateAll

func (o BusinessStackSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

func (BusinessStackSlice) UpdateAllG

func (o BusinessStackSlice) UpdateAllG(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 PasswordReset

type PasswordReset struct {
	ID        uint64    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Email     string    `boil:"email" json:"email" toml:"email" yaml:"email"`
	Token     string    `boil:"token" json:"token" toml:"token" yaml:"token"`
	CreatedAt null.Time `boil:"created_at" json:"created_at,omitempty" toml:"created_at" yaml:"created_at,omitempty"`

	R *passwordResetR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L passwordResetL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PasswordReset is an object representing the database table.

func FindPasswordReset

func FindPasswordReset(exec boil.Executor, iD uint64, selectCols ...string) (*PasswordReset, error)

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

func FindPasswordResetG

func FindPasswordResetG(iD uint64, selectCols ...string) (*PasswordReset, error)

FindPasswordResetG retrieves a single record by ID.

func (*PasswordReset) Delete

func (o *PasswordReset) Delete(exec boil.Executor) (int64, error)

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

func (*PasswordReset) DeleteG

func (o *PasswordReset) DeleteG() (int64, error)

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

func (*PasswordReset) Insert

func (o *PasswordReset) Insert(exec boil.Executor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*PasswordReset) InsertG

func (o *PasswordReset) InsertG(columns boil.Columns) error

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

func (*PasswordReset) Reload

func (o *PasswordReset) Reload(exec boil.Executor) error

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

func (*PasswordReset) ReloadG

func (o *PasswordReset) ReloadG() error

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

func (*PasswordReset) Update

func (o *PasswordReset) Update(exec boil.Executor, columns boil.Columns) (int64, error)

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

func (o *PasswordReset) UpdateG(columns boil.Columns) (int64, error)

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

func (*PasswordReset) Upsert

func (o *PasswordReset) Upsert(exec boil.Executor, 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 (*PasswordReset) UpsertG

func (o *PasswordReset) UpsertG(updateColumns, insertColumns boil.Columns) error

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

type PasswordResetHook

type PasswordResetHook func(boil.Executor, *PasswordReset) error

PasswordResetHook is the signature for custom PasswordReset hook methods

type PasswordResetSlice

type PasswordResetSlice []*PasswordReset

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

func (PasswordResetSlice) DeleteAll

func (o PasswordResetSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (PasswordResetSlice) DeleteAllG

func (o PasswordResetSlice) DeleteAllG() (int64, error)

DeleteAllG deletes all rows in the slice.

func (*PasswordResetSlice) ReloadAll

func (o *PasswordResetSlice) ReloadAll(exec boil.Executor) error

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

func (*PasswordResetSlice) ReloadAllG

func (o *PasswordResetSlice) ReloadAllG() error

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

func (PasswordResetSlice) UpdateAll

func (o PasswordResetSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

func (PasswordResetSlice) UpdateAllG

func (o PasswordResetSlice) UpdateAllG(cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type Stack

type Stack struct {
	ID           uint64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name         string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Creators     null.JSON   `boil:"creators" json:"creators,omitempty" toml:"creators" yaml:"creators,omitempty"`
	Website      null.String `boil:"website" json:"website,omitempty" toml:"website" yaml:"website,omitempty"`
	ReleasedAt   time.Time   `boil:"released_at" json:"released_at" toml:"released_at" yaml:"released_at"`
	DeprecatedAt time.Time   `boil:"deprecated_at" json:"deprecated_at" toml:"deprecated_at" yaml:"deprecated_at"`
	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"`

	R *stackR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L stackL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Stack is an object representing the database table.

func FindStack

func FindStack(exec boil.Executor, iD uint64, selectCols ...string) (*Stack, error)

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

func FindStackG

func FindStackG(iD uint64, selectCols ...string) (*Stack, error)

FindStackG retrieves a single record by ID.

func (*Stack) AddBusinessStacks

func (o *Stack) AddBusinessStacks(exec boil.Executor, insert bool, related ...*BusinessStack) error

AddBusinessStacks adds the given related objects to the existing relationships of the stack, optionally inserting them as new records. Appends related to o.R.BusinessStacks. Sets related.R.Stack appropriately.

func (*Stack) AddBusinessStacksG

func (o *Stack) AddBusinessStacksG(insert bool, related ...*BusinessStack) error

AddBusinessStacksG adds the given related objects to the existing relationships of the stack, optionally inserting them as new records. Appends related to o.R.BusinessStacks. Sets related.R.Stack appropriately. Uses the global database handle.

func (*Stack) AddStackTags

func (o *Stack) AddStackTags(exec boil.Executor, insert bool, related ...*StackTag) error

AddStackTags adds the given related objects to the existing relationships of the stack, optionally inserting them as new records. Appends related to o.R.StackTags. Sets related.R.Stack appropriately.

func (*Stack) AddStackTagsG

func (o *Stack) AddStackTagsG(insert bool, related ...*StackTag) error

AddStackTagsG adds the given related objects to the existing relationships of the stack, optionally inserting them as new records. Appends related to o.R.StackTags. Sets related.R.Stack appropriately. Uses the global database handle.

func (*Stack) BusinessStacks

func (o *Stack) BusinessStacks(mods ...qm.QueryMod) businessStackQuery

BusinessStacks retrieves all the business_stack's BusinessStacks with an executor.

func (*Stack) Delete

func (o *Stack) Delete(exec boil.Executor) (int64, error)

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

func (*Stack) DeleteG

func (o *Stack) DeleteG() (int64, error)

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

func (*Stack) Insert

func (o *Stack) Insert(exec boil.Executor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Stack) InsertG

func (o *Stack) InsertG(columns boil.Columns) error

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

func (*Stack) Reload

func (o *Stack) Reload(exec boil.Executor) error

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

func (*Stack) ReloadG

func (o *Stack) ReloadG() error

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

func (*Stack) StackTags

func (o *Stack) StackTags(mods ...qm.QueryMod) stackTagQuery

StackTags retrieves all the stack_tag's StackTags with an executor.

func (*Stack) Update

func (o *Stack) Update(exec boil.Executor, columns boil.Columns) (int64, error)

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

func (o *Stack) UpdateG(columns boil.Columns) (int64, error)

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

func (*Stack) Upsert

func (o *Stack) Upsert(exec boil.Executor, 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 (*Stack) UpsertG

func (o *Stack) UpsertG(updateColumns, insertColumns boil.Columns) error

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

type StackHook

type StackHook func(boil.Executor, *Stack) error

StackHook is the signature for custom Stack hook methods

type StackSlice

type StackSlice []*Stack

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

func (StackSlice) DeleteAll

func (o StackSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (StackSlice) DeleteAllG

func (o StackSlice) DeleteAllG() (int64, error)

DeleteAllG deletes all rows in the slice.

func (*StackSlice) ReloadAll

func (o *StackSlice) ReloadAll(exec boil.Executor) error

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

func (*StackSlice) ReloadAllG

func (o *StackSlice) ReloadAllG() error

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

func (StackSlice) UpdateAll

func (o StackSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

func (StackSlice) UpdateAllG

func (o StackSlice) UpdateAllG(cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type StackTag

type StackTag struct {
	ID        uint64    `boil:"id" json:"id" toml:"id" yaml:"id"`
	StackID   uint64    `boil:"stack_id" json:"stack_id" toml:"stack_id" yaml:"stack_id"`
	TagID     uint64    `boil:"tag_id" json:"tag_id" toml:"tag_id" yaml:"tag_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"`

	R *stackTagR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L stackTagL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

StackTag is an object representing the database table.

func FindStackTag

func FindStackTag(exec boil.Executor, iD uint64, selectCols ...string) (*StackTag, error)

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

func FindStackTagG

func FindStackTagG(iD uint64, selectCols ...string) (*StackTag, error)

FindStackTagG retrieves a single record by ID.

func (*StackTag) Delete

func (o *StackTag) Delete(exec boil.Executor) (int64, error)

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

func (*StackTag) DeleteG

func (o *StackTag) DeleteG() (int64, error)

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

func (*StackTag) Insert

func (o *StackTag) Insert(exec boil.Executor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*StackTag) InsertG

func (o *StackTag) InsertG(columns boil.Columns) error

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

func (*StackTag) Reload

func (o *StackTag) Reload(exec boil.Executor) error

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

func (*StackTag) ReloadG

func (o *StackTag) ReloadG() error

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

func (*StackTag) SetStack

func (o *StackTag) SetStack(exec boil.Executor, insert bool, related *Stack) error

SetStack of the stackTag to the related item. Sets o.R.Stack to related. Adds o to related.R.StackTags.

func (*StackTag) SetStackG

func (o *StackTag) SetStackG(insert bool, related *Stack) error

SetStackG of the stackTag to the related item. Sets o.R.Stack to related. Adds o to related.R.StackTags. Uses the global database handle.

func (*StackTag) SetTag

func (o *StackTag) SetTag(exec boil.Executor, insert bool, related *Tag) error

SetTag of the stackTag to the related item. Sets o.R.Tag to related. Adds o to related.R.StackTags.

func (*StackTag) SetTagG

func (o *StackTag) SetTagG(insert bool, related *Tag) error

SetTagG of the stackTag to the related item. Sets o.R.Tag to related. Adds o to related.R.StackTags. Uses the global database handle.

func (*StackTag) Stack

func (o *StackTag) Stack(mods ...qm.QueryMod) stackQuery

Stack pointed to by the foreign key.

func (*StackTag) Tag

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

Tag pointed to by the foreign key.

func (*StackTag) Update

func (o *StackTag) Update(exec boil.Executor, columns boil.Columns) (int64, error)

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

func (o *StackTag) UpdateG(columns boil.Columns) (int64, error)

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

func (*StackTag) Upsert

func (o *StackTag) Upsert(exec boil.Executor, 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 (*StackTag) UpsertG

func (o *StackTag) UpsertG(updateColumns, insertColumns boil.Columns) error

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

type StackTagHook

type StackTagHook func(boil.Executor, *StackTag) error

StackTagHook is the signature for custom StackTag hook methods

type StackTagSlice

type StackTagSlice []*StackTag

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

func (StackTagSlice) DeleteAll

func (o StackTagSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (StackTagSlice) DeleteAllG

func (o StackTagSlice) DeleteAllG() (int64, error)

DeleteAllG deletes all rows in the slice.

func (*StackTagSlice) ReloadAll

func (o *StackTagSlice) ReloadAll(exec boil.Executor) error

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

func (*StackTagSlice) ReloadAllG

func (o *StackTagSlice) ReloadAllG() error

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

func (StackTagSlice) UpdateAll

func (o StackTagSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

func (StackTagSlice) UpdateAllG

func (o StackTagSlice) UpdateAllG(cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type Tag

type Tag struct {
	ID        uint64    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	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"`

	R *tagR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L tagL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Tag is an object representing the database table.

func FindTag

func FindTag(exec boil.Executor, iD uint64, selectCols ...string) (*Tag, error)

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

func FindTagG

func FindTagG(iD uint64, selectCols ...string) (*Tag, error)

FindTagG retrieves a single record by ID.

func (*Tag) AddStackTags

func (o *Tag) AddStackTags(exec boil.Executor, insert bool, related ...*StackTag) error

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

func (*Tag) AddStackTagsG

func (o *Tag) AddStackTagsG(insert bool, related ...*StackTag) error

AddStackTagsG adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.StackTags. Sets related.R.Tag appropriately. Uses the global database handle.

func (*Tag) Delete

func (o *Tag) Delete(exec boil.Executor) (int64, error)

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

func (*Tag) DeleteG

func (o *Tag) DeleteG() (int64, error)

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

func (*Tag) Insert

func (o *Tag) Insert(exec boil.Executor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Tag) InsertG

func (o *Tag) InsertG(columns boil.Columns) error

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

func (*Tag) Reload

func (o *Tag) Reload(exec boil.Executor) error

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

func (*Tag) ReloadG

func (o *Tag) ReloadG() error

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

func (*Tag) StackTags

func (o *Tag) StackTags(mods ...qm.QueryMod) stackTagQuery

StackTags retrieves all the stack_tag's StackTags with an executor.

func (*Tag) Update

func (o *Tag) Update(exec boil.Executor, columns boil.Columns) (int64, error)

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

func (*Tag) UpdateG

func (o *Tag) UpdateG(columns boil.Columns) (int64, error)

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

func (*Tag) Upsert

func (o *Tag) Upsert(exec boil.Executor, 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 (*Tag) UpsertG

func (o *Tag) UpsertG(updateColumns, insertColumns boil.Columns) error

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

type TagHook

type TagHook func(boil.Executor, *Tag) error

TagHook is the signature for custom Tag hook methods

type TagSlice

type TagSlice []*Tag

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

func (TagSlice) DeleteAll

func (o TagSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (TagSlice) DeleteAllG

func (o TagSlice) DeleteAllG() (int64, error)

DeleteAllG deletes all rows in the slice.

func (*TagSlice) ReloadAll

func (o *TagSlice) ReloadAll(exec boil.Executor) error

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

func (*TagSlice) ReloadAllG

func (o *TagSlice) ReloadAllG() error

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

func (TagSlice) UpdateAll

func (o TagSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

func (TagSlice) UpdateAllG

func (o TagSlice) UpdateAllG(cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type User

type User struct {
	ID              uint64      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name            string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Email           string      `boil:"email" json:"email" toml:"email" yaml:"email"`
	Mobile          string      `boil:"mobile" json:"mobile" toml:"mobile" yaml:"mobile"`
	EmailVerifiedAt null.Time   `boil:"email_verified_at" json:"email_verified_at,omitempty" toml:"email_verified_at" yaml:"email_verified_at,omitempty"`
	Password        string      `boil:"password" json:"password" toml:"password" yaml:"password"`
	RememberToken   null.String `boil:"remember_token" json:"remember_token,omitempty" toml:"remember_token" yaml:"remember_token,omitempty"`
	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"`

	R *userR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

User is an object representing the database table.

func FindUser

func FindUser(exec boil.Executor, iD uint64, selectCols ...string) (*User, error)

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

func FindUserG

func FindUserG(iD uint64, selectCols ...string) (*User, error)

FindUserG retrieves a single record by ID.

func (*User) Delete

func (o *User) Delete(exec boil.Executor) (int64, error)

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

func (*User) DeleteG

func (o *User) DeleteG() (int64, error)

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

func (*User) Insert

func (o *User) Insert(exec boil.Executor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*User) InsertG

func (o *User) InsertG(columns boil.Columns) error

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

func (*User) Reload

func (o *User) Reload(exec boil.Executor) error

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

func (*User) ReloadG

func (o *User) ReloadG() error

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

func (*User) Update

func (o *User) Update(exec boil.Executor, columns boil.Columns) (int64, error)

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

func (*User) UpdateG

func (o *User) UpdateG(columns boil.Columns) (int64, error)

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

func (*User) Upsert

func (o *User) Upsert(exec boil.Executor, updateColumns, insertColumns boil.Columns) error

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

func (*User) UpsertG

func (o *User) UpsertG(updateColumns, insertColumns boil.Columns) error

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

type UserHook

type UserHook func(boil.Executor, *User) error

UserHook is the signature for custom User hook methods

type UserSlice

type UserSlice []*User

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

func (UserSlice) DeleteAll

func (o UserSlice) DeleteAll(exec boil.Executor) (int64, error)

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

func (UserSlice) DeleteAllG

func (o UserSlice) DeleteAllG() (int64, error)

DeleteAllG deletes all rows in the slice.

func (*UserSlice) ReloadAll

func (o *UserSlice) ReloadAll(exec boil.Executor) error

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

func (*UserSlice) ReloadAllG

func (o *UserSlice) ReloadAllG() error

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

func (UserSlice) UpdateAll

func (o UserSlice) UpdateAll(exec boil.Executor, cols M) (int64, error)

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

func (UserSlice) UpdateAllG

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