dm

package
v0.0.0-...-0129bd7 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountColumns = struct {
	ID        string
	Email     string
	Password  string
	CreatedAt string
	CreatedBy string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	Email:     "email",
	Password:  "password",
	CreatedAt: "created_at",
	CreatedBy: "created_by",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var AccountRels = struct {
	CreatedByCauser string
	Causers         string
}{
	CreatedByCauser: "CreatedByCauser",
	Causers:         "Causers",
}

AccountRels is where relationship names are stored.

View Source
var AccountTableColumns = struct {
	ID        string
	Email     string
	Password  string
	CreatedAt string
	CreatedBy string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "account.id",
	Email:     "account.email",
	Password:  "account.password",
	CreatedAt: "account.created_at",
	CreatedBy: "account.created_by",
	UpdatedAt: "account.updated_at",
	DeletedAt: "account.deleted_at",
}
View Source
var AccountWhere = struct {
	ID        whereHelperstring
	Email     whereHelperstring
	Password  whereHelperstring
	CreatedAt whereHelpertime_Time
	CreatedBy whereHelperstring
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	Email:     whereHelperstring{/* contains filtered or unexported fields */},
	Password:  whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	CreatedBy: whereHelperstring{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var CauserColumns = struct {
	ID              string
	AccountID       string
	SystemAccountID string
	CauserType      string
}{
	ID:              "id",
	AccountID:       "account_id",
	SystemAccountID: "system_account_id",
	CauserType:      "causer_type",
}
View Source
var CauserRels = struct {
	Account           string
	SystemAccount     string
	CreatedByAccounts string
}{
	Account:           "Account",
	SystemAccount:     "SystemAccount",
	CreatedByAccounts: "CreatedByAccounts",
}

CauserRels is where relationship names are stored.

View Source
var CauserTableColumns = struct {
	ID              string
	AccountID       string
	SystemAccountID string
	CauserType      string
}{
	ID:              "causer.id",
	AccountID:       "causer.account_id",
	SystemAccountID: "causer.system_account_id",
	CauserType:      "causer.causer_type",
}
View Source
var CauserWhere = struct {
	ID              whereHelperstring
	AccountID       whereHelpernull_String
	SystemAccountID whereHelpernull_String
	CauserType      whereHelperstring
}{
	ID:              whereHelperstring{/* contains filtered or unexported fields */},
	AccountID:       whereHelpernull_String{/* contains filtered or unexported fields */},
	SystemAccountID: whereHelpernull_String{/* contains filtered or unexported fields */},
	CauserType:      whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("dm: 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 SchemaMigrationColumns = struct {
	Version string
	Dirty   string
}{
	Version: "version",
	Dirty:   "dirty",
}
View Source
var SchemaMigrationRels = struct {
}{}

SchemaMigrationRels is where relationship names are stored.

View Source
var SchemaMigrationTableColumns = struct {
	Version string
	Dirty   string
}{
	Version: "schema_migrations.version",
	Dirty:   "schema_migrations.dirty",
}
View Source
var SchemaMigrationWhere = struct {
	Version whereHelperstring
	Dirty   whereHelperbool
}{
	Version: whereHelperstring{/* contains filtered or unexported fields */},
	Dirty:   whereHelperbool{/* contains filtered or unexported fields */},
}
View Source
var SystemAccountColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}
View Source
var SystemAccountRels = struct {
	Causers string
}{
	Causers: "Causers",
}

SystemAccountRels is where relationship names are stored.

View Source
var SystemAccountTableColumns = struct {
	ID        string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "system_account.id",
	CreatedAt: "system_account.created_at",
	UpdatedAt: "system_account.updated_at",
	DeletedAt: "system_account.deleted_at",
}
View Source
var SystemAccountWhere = struct {
	ID        whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	Account          string
	Causer           string
	SchemaMigrations string
	SystemAccount    string
}{
	Account:          "account",
	Causer:           "causer",
	SchemaMigrations: "schema_migrations",
	SystemAccount:    "system_account",
}
View Source
var ViewNames = struct {
}{}

Functions

func AccountExists

func AccountExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

AccountExists checks if the Account row exists.

func Accounts

func Accounts(mods ...qm.QueryMod) accountQuery

Accounts retrieves all the records using an executor.

func AddAccountHook

func AddAccountHook(hookPoint boil.HookPoint, accountHook AccountHook)

AddAccountHook registers your hook function for all future operations.

func AddCauserHook

func AddCauserHook(hookPoint boil.HookPoint, causerHook CauserHook)

AddCauserHook registers your hook function for all future operations.

func AddSchemaMigrationHook

func AddSchemaMigrationHook(hookPoint boil.HookPoint, schemaMigrationHook SchemaMigrationHook)

AddSchemaMigrationHook registers your hook function for all future operations.

func AddSystemAccountHook

func AddSystemAccountHook(hookPoint boil.HookPoint, systemAccountHook SystemAccountHook)

AddSystemAccountHook registers your hook function for all future operations.

func CauserExists

func CauserExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

CauserExists checks if the Causer row exists.

func Causers

func Causers(mods ...qm.QueryMod) causerQuery

Causers 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 SchemaMigrationExists

func SchemaMigrationExists(ctx context.Context, exec boil.ContextExecutor, version string) (bool, error)

SchemaMigrationExists checks if the SchemaMigration row exists.

func SchemaMigrations

func SchemaMigrations(mods ...qm.QueryMod) schemaMigrationQuery

SchemaMigrations retrieves all the records using an executor.

func SystemAccountExists

func SystemAccountExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

SystemAccountExists checks if the SystemAccount row exists.

func SystemAccounts

func SystemAccounts(mods ...qm.QueryMod) systemAccountQuery

SystemAccounts retrieves all the records using an executor.

Types

type Account

type Account struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Email     string    `boil:"email" json:"email" toml:"email" yaml:"email"`
	Password  string    `boil:"password" json:"password" toml:"password" yaml:"password"`
	CreatedAt time.Time `boil:"created_at" json:"createdAt" toml:"created_at" yaml:"created_at"`
	CreatedBy string    `boil:"created_by" json:"createdBy" toml:"created_by" yaml:"created_by"`
	UpdatedAt time.Time `boil:"updated_at" json:"updatedAt" toml:"updated_at" yaml:"updated_at"`
	DeletedAt null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *accountR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L accountL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Account is an object representing the database table.

func FindAccount

func FindAccount(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Account, error)

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

func (*Account) AddCausers

func (o *Account) AddCausers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Causer) error

AddCausers adds the given related objects to the existing relationships of the account, optionally inserting them as new records. Appends related to o.R.Causers. Sets related.R.Account appropriately.

func (*Account) Causers

func (o *Account) Causers(mods ...qm.QueryMod) causerQuery

Causers retrieves all the causer's Causers with an executor.

func (*Account) CreatedByCauser

func (o *Account) CreatedByCauser(mods ...qm.QueryMod) causerQuery

CreatedByCauser pointed to by the foreign key.

func (*Account) Delete

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

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

func (*Account) Exists

func (o *Account) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Account row exists.

func (*Account) Insert

func (o *Account) 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 (*Account) Reload

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

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

func (*Account) RemoveCausers

func (o *Account) RemoveCausers(ctx context.Context, exec boil.ContextExecutor, related ...*Causer) error

RemoveCausers relationships from objects passed in. Removes related items from R.Causers (uses pointer comparison, removal does not keep order) Sets related.R.Account.

func (*Account) SetCausers

func (o *Account) SetCausers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Causer) error

SetCausers removes all previously related items of the account replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Account's Causers accordingly. Replaces o.R.Causers with related. Sets related.R.Account's Causers accordingly.

func (*Account) SetCreatedByCauser

func (o *Account) SetCreatedByCauser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Causer) error

SetCreatedByCauser of the account to the related item. Sets o.R.CreatedByCauser to related. Adds o to related.R.CreatedByAccounts.

func (*Account) Update

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

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

func (o *Account) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

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

type AccountHook

type AccountHook func(context.Context, boil.ContextExecutor, *Account) error

AccountHook is the signature for custom Account hook methods

type AccountSlice

type AccountSlice []*Account

AccountSlice is an alias for a slice of pointers to Account. This should almost always be used instead of []Account.

func (AccountSlice) DeleteAll

func (o AccountSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*AccountSlice) ReloadAll

func (o *AccountSlice) 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 (AccountSlice) UpdateAll

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

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

type Causer

type Causer struct {
	ID              string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	AccountID       null.String `boil:"account_id" json:"accountID,omitempty" toml:"account_id" yaml:"account_id,omitempty"`
	SystemAccountID null.String `boil:"system_account_id" json:"systemAccountID,omitempty" toml:"system_account_id" yaml:"system_account_id,omitempty"`
	CauserType      string      `boil:"causer_type" json:"causerType" toml:"causer_type" yaml:"causer_type"`

	R *causerR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L causerL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Causer is an object representing the database table.

func FindCauser

func FindCauser(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Causer, error)

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

func (*Causer) Account

func (o *Causer) Account(mods ...qm.QueryMod) accountQuery

Account pointed to by the foreign key.

func (*Causer) AddCreatedByAccounts

func (o *Causer) AddCreatedByAccounts(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Account) error

AddCreatedByAccounts adds the given related objects to the existing relationships of the causer, optionally inserting them as new records. Appends related to o.R.CreatedByAccounts. Sets related.R.CreatedByCauser appropriately.

func (*Causer) CreatedByAccounts

func (o *Causer) CreatedByAccounts(mods ...qm.QueryMod) accountQuery

CreatedByAccounts retrieves all the account's Accounts with an executor via created_by column.

func (*Causer) Delete

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

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

func (*Causer) Exists

func (o *Causer) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Causer row exists.

func (*Causer) Insert

func (o *Causer) 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 (*Causer) Reload

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

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

func (*Causer) RemoveAccount

func (o *Causer) RemoveAccount(ctx context.Context, exec boil.ContextExecutor, related *Account) error

RemoveAccount relationship. Sets o.R.Account to nil. Removes o from all passed in related items' relationships struct.

func (*Causer) RemoveSystemAccount

func (o *Causer) RemoveSystemAccount(ctx context.Context, exec boil.ContextExecutor, related *SystemAccount) error

RemoveSystemAccount relationship. Sets o.R.SystemAccount to nil. Removes o from all passed in related items' relationships struct.

func (*Causer) SetAccount

func (o *Causer) SetAccount(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Account) error

SetAccount of the causer to the related item. Sets o.R.Account to related. Adds o to related.R.Causers.

func (*Causer) SetSystemAccount

func (o *Causer) SetSystemAccount(ctx context.Context, exec boil.ContextExecutor, insert bool, related *SystemAccount) error

SetSystemAccount of the causer to the related item. Sets o.R.SystemAccount to related. Adds o to related.R.Causers.

func (*Causer) SystemAccount

func (o *Causer) SystemAccount(mods ...qm.QueryMod) systemAccountQuery

SystemAccount pointed to by the foreign key.

func (*Causer) Update

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

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

func (o *Causer) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

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

type CauserHook

type CauserHook func(context.Context, boil.ContextExecutor, *Causer) error

CauserHook is the signature for custom Causer hook methods

type CauserSlice

type CauserSlice []*Causer

CauserSlice is an alias for a slice of pointers to Causer. This should almost always be used instead of []Causer.

func (CauserSlice) DeleteAll

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

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

func (*CauserSlice) ReloadAll

func (o *CauserSlice) 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 (CauserSlice) UpdateAll

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

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

type M

type M map[string]interface{}

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

type SchemaMigration

type SchemaMigration struct {
	Version string `boil:"version" json:"version" toml:"version" yaml:"version"`
	Dirty   bool   `boil:"dirty" json:"dirty" toml:"dirty" yaml:"dirty"`

	R *schemaMigrationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L schemaMigrationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

SchemaMigration is an object representing the database table.

func FindSchemaMigration

func FindSchemaMigration(ctx context.Context, exec boil.ContextExecutor, version string, selectCols ...string) (*SchemaMigration, error)

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

func (*SchemaMigration) Delete

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

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

func (*SchemaMigration) Exists

func (o *SchemaMigration) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the SchemaMigration row exists.

func (*SchemaMigration) Insert

func (o *SchemaMigration) 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 (*SchemaMigration) Reload

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

func (*SchemaMigration) Update

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

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

func (o *SchemaMigration) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

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

type SchemaMigrationHook

type SchemaMigrationHook func(context.Context, boil.ContextExecutor, *SchemaMigration) error

SchemaMigrationHook is the signature for custom SchemaMigration hook methods

type SchemaMigrationSlice

type SchemaMigrationSlice []*SchemaMigration

SchemaMigrationSlice is an alias for a slice of pointers to SchemaMigration. This should almost always be used instead of []SchemaMigration.

func (SchemaMigrationSlice) DeleteAll

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

func (*SchemaMigrationSlice) ReloadAll

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

func (SchemaMigrationSlice) UpdateAll

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

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

type SystemAccount

type SystemAccount struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt time.Time `boil:"created_at" json:"createdAt" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updatedAt" toml:"updated_at" yaml:"updated_at"`
	DeletedAt null.Time `boil:"deleted_at" json:"deletedAt,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *systemAccountR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L systemAccountL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

SystemAccount is an object representing the database table.

func FindSystemAccount

func FindSystemAccount(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*SystemAccount, error)

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

func (*SystemAccount) AddCausers

func (o *SystemAccount) AddCausers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Causer) error

AddCausers adds the given related objects to the existing relationships of the system_account, optionally inserting them as new records. Appends related to o.R.Causers. Sets related.R.SystemAccount appropriately.

func (*SystemAccount) Causers

func (o *SystemAccount) Causers(mods ...qm.QueryMod) causerQuery

Causers retrieves all the causer's Causers with an executor.

func (*SystemAccount) Delete

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

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

func (*SystemAccount) Exists

func (o *SystemAccount) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the SystemAccount row exists.

func (*SystemAccount) Insert

func (o *SystemAccount) 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 (*SystemAccount) Reload

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

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

func (*SystemAccount) RemoveCausers

func (o *SystemAccount) RemoveCausers(ctx context.Context, exec boil.ContextExecutor, related ...*Causer) error

RemoveCausers relationships from objects passed in. Removes related items from R.Causers (uses pointer comparison, removal does not keep order) Sets related.R.SystemAccount.

func (*SystemAccount) SetCausers

func (o *SystemAccount) SetCausers(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Causer) error

SetCausers removes all previously related items of the system_account replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.SystemAccount's Causers accordingly. Replaces o.R.Causers with related. Sets related.R.SystemAccount's Causers accordingly.

func (*SystemAccount) Update

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

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

func (o *SystemAccount) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

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

type SystemAccountHook

type SystemAccountHook func(context.Context, boil.ContextExecutor, *SystemAccount) error

SystemAccountHook is the signature for custom SystemAccount hook methods

type SystemAccountSlice

type SystemAccountSlice []*SystemAccount

SystemAccountSlice is an alias for a slice of pointers to SystemAccount. This should almost always be used instead of []SystemAccount.

func (SystemAccountSlice) DeleteAll

func (o SystemAccountSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*SystemAccountSlice) ReloadAll

func (o *SystemAccountSlice) 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 (SystemAccountSlice) UpdateAll

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

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

type UpsertOptionFunc

type UpsertOptionFunc func(o *UpsertOptions)

func UpsertConflictTarget

func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc

func UpsertUpdateSet

func UpsertUpdateSet(updateSet string) UpsertOptionFunc

type UpsertOptions

type UpsertOptions struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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