Documentation
¶
Index ¶
- Variables
- func AccountExists(exec boil.Executor, iD int) (bool, error)
- func Accounts(mods ...qm.QueryMod) accountQuery
- func AddAccountHook(hookPoint boil.HookPoint, accountHook AccountHook)
- func AddSnapRuleHook(hookPoint boil.HookPoint, snapRuleHook SnapRuleHook)
- func AddSnapshotHook(hookPoint boil.HookPoint, snapshotHook SnapshotHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func SnapRuleExists(exec boil.Executor, iD int) (bool, error)
- func SnapRules(mods ...qm.QueryMod) snapRuleQuery
- func SnapshotExists(exec boil.Executor, iD int) (bool, error)
- func Snapshots(mods ...qm.QueryMod) snapshotQuery
- func UserExists(exec boil.Executor, iD int) (bool, error)
- func Users(mods ...qm.QueryMod) userQuery
- type Account
- func (o *Account) AddSnapRules(exec boil.Executor, insert bool, related ...*SnapRule) error
- func (o *Account) Delete(exec boil.Executor) (int64, error)
- func (o *Account) Insert(exec boil.Executor, columns boil.Columns) error
- func (o *Account) Reload(exec boil.Executor) error
- func (o *Account) SetUser(exec boil.Executor, insert bool, related *User) error
- func (o *Account) SnapRules(mods ...qm.QueryMod) snapRuleQuery
- func (o *Account) Update(exec boil.Executor, columns boil.Columns) (int64, error)
- func (o *Account) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...) error
- func (o *Account) User(mods ...qm.QueryMod) userQuery
- type AccountHook
- type AccountSlice
- type M
- type SnapRule
- func (o *SnapRule) Account(mods ...qm.QueryMod) accountQuery
- func (o *SnapRule) AddSnapshots(exec boil.Executor, insert bool, related ...*Snapshot) error
- func (o *SnapRule) Delete(exec boil.Executor) (int64, error)
- func (o *SnapRule) Insert(exec boil.Executor, columns boil.Columns) error
- func (o *SnapRule) Reload(exec boil.Executor) error
- func (o *SnapRule) SetAccount(exec boil.Executor, insert bool, related *Account) error
- func (o *SnapRule) Snapshots(mods ...qm.QueryMod) snapshotQuery
- func (o *SnapRule) Update(exec boil.Executor, columns boil.Columns) (int64, error)
- func (o *SnapRule) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...) error
- type SnapRuleHook
- type SnapRuleSlice
- type Snapshot
- func (o *Snapshot) Delete(exec boil.Executor) (int64, error)
- func (o *Snapshot) Insert(exec boil.Executor, columns boil.Columns) error
- func (o *Snapshot) Reload(exec boil.Executor) error
- func (o *Snapshot) SetSnapRule(exec boil.Executor, insert bool, related *SnapRule) error
- func (o *Snapshot) SnapRule(mods ...qm.QueryMod) snapRuleQuery
- func (o *Snapshot) Update(exec boil.Executor, columns boil.Columns) (int64, error)
- func (o *Snapshot) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...) error
- type SnapshotHook
- type SnapshotSlice
- type User
- func (o *User) Accounts(mods ...qm.QueryMod) accountQuery
- func (o *User) AddAccounts(exec boil.Executor, insert bool, related ...*Account) error
- func (o *User) Delete(exec boil.Executor) (int64, error)
- func (o *User) Insert(exec boil.Executor, columns boil.Columns) error
- func (o *User) Reload(exec boil.Executor) error
- func (o *User) Update(exec boil.Executor, columns boil.Columns) (int64, error)
- func (o *User) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, ...) error
- type UserHook
- type UserSlice
Constants ¶
This section is empty.
Variables ¶
var AccountColumns = struct { ID string CreatedAt string UpdatedAt string Name string Provider string Token string UserID string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", Name: "name", Provider: "provider", Token: "token", UserID: "user_id", }
var AccountRels = struct { User string SnapRules string }{ User: "User", SnapRules: "SnapRules", }
AccountRels is where relationship names are stored.
var AccountWhere = struct { ID whereHelperint CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time Name whereHelperstring Provider whereHelperstring Token whereHelperstring UserID whereHelperint }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Provider: whereHelperstring{/* contains filtered or unexported fields */}, Token: whereHelperstring{/* contains filtered or unexported fields */}, UserID: whereHelperint{/* contains filtered or unexported fields */}, }
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var SnapRuleColumns = struct { ID string CreatedAt string UpdatedAt string Frequency string VolumeID string VolumeName string VolumeRegion string AccountID string VolumeOrganization string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", Frequency: "frequency", VolumeID: "volume_id", VolumeName: "volume_name", VolumeRegion: "volume_region", AccountID: "account_id", VolumeOrganization: "volume_organization", }
var SnapRuleRels = struct { Account string Snapshots string }{ Account: "Account", Snapshots: "Snapshots", }
SnapRuleRels is where relationship names are stored.
var SnapRuleWhere = struct { ID whereHelperint CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time Frequency whereHelperint VolumeID whereHelperstring VolumeName whereHelperstring VolumeRegion whereHelperstring AccountID whereHelperint VolumeOrganization whereHelperstring }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, Frequency: whereHelperint{/* contains filtered or unexported fields */}, VolumeID: whereHelperstring{/* contains filtered or unexported fields */}, VolumeName: whereHelperstring{/* contains filtered or unexported fields */}, VolumeRegion: whereHelperstring{/* contains filtered or unexported fields */}, AccountID: whereHelperint{/* contains filtered or unexported fields */}, VolumeOrganization: whereHelperstring{/* contains filtered or unexported fields */}, }
var SnapshotColumns = struct { ID string CreatedAt string UpdatedAt string ProviderSnapshotID string SnapRuleID string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", ProviderSnapshotID: "provider_snapshot_id", SnapRuleID: "snap_rule_id", }
var SnapshotRels = struct { SnapRule string }{ SnapRule: "SnapRule", }
SnapshotRels is where relationship names are stored.
var SnapshotWhere = struct { ID whereHelperint CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time ProviderSnapshotID whereHelperstring SnapRuleID whereHelperint }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, ProviderSnapshotID: whereHelperstring{/* contains filtered or unexported fields */}, SnapRuleID: whereHelperint{/* contains filtered or unexported fields */}, }
var TableNames = struct { Accounts string SnapRules string Snapshots string Users string }{ Accounts: "accounts", SnapRules: "snap_rules", Snapshots: "snapshots", Users: "users", }
var UserColumns = struct { ID string CreatedAt string UpdatedAt string Email string Password string }{ ID: "id", CreatedAt: "created_at", UpdatedAt: "updated_at", Email: "email", Password: "password", }
var UserRels = struct { Accounts string }{ Accounts: "Accounts", }
UserRels is where relationship names are stored.
var UserWhere = struct { ID whereHelperint CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time Email whereHelperstring Password whereHelperstring }{ ID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, Email: whereHelperstring{/* contains filtered or unexported fields */}, Password: whereHelperstring{/* contains filtered or unexported fields */}, }
Functions ¶
func AccountExists ¶
AccountExists checks if the Account row exists.
func AddAccountHook ¶
func AddAccountHook(hookPoint boil.HookPoint, accountHook AccountHook)
AddAccountHook registers your hook function for all future operations.
func AddSnapRuleHook ¶
func AddSnapRuleHook(hookPoint boil.HookPoint, snapRuleHook SnapRuleHook)
AddSnapRuleHook registers your hook function for all future operations.
func AddSnapshotHook ¶
func AddSnapshotHook(hookPoint boil.HookPoint, snapshotHook SnapshotHook)
AddSnapshotHook registers your hook function for all future operations.
func AddUserHook ¶
AddUserHook registers your hook function for all future operations.
func SnapRuleExists ¶
SnapRuleExists checks if the SnapRule row exists.
func SnapshotExists ¶
SnapshotExists checks if the Snapshot row exists.
func UserExists ¶
UserExists checks if the User row exists.
Types ¶
type Account ¶
type Account 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"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Provider string `boil:"provider" json:"provider" toml:"provider" yaml:"provider"` Token string `boil:"token" json:"token" toml:"token" yaml:"token"` UserID int `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` R *accountR `boil:"-" json:"-" toml:"-" yaml:"-"` L accountL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Account is an object representing the database table.
func FindAccount ¶
FindAccount retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Account) AddSnapRules ¶
AddSnapRules adds the given related objects to the existing relationships of the account, optionally inserting them as new records. Appends related to o.R.SnapRules. Sets related.R.Account appropriately.
func (*Account) Delete ¶
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) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Account) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Account) SetUser ¶
SetUser of the account to the related item. Sets o.R.User to related. Adds o to related.R.Accounts.
func (*Account) Update ¶
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(exec boil.Executor, 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.
type AccountHook ¶
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 generally be used opposed to []Account.
func (AccountSlice) DeleteAll ¶
func (o AccountSlice) DeleteAll(exec boil.Executor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type SnapRule ¶
type SnapRule 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"` Frequency int `boil:"frequency" json:"frequency" toml:"frequency" yaml:"frequency"` VolumeID string `boil:"volume_id" json:"volume_id" toml:"volume_id" yaml:"volume_id"` VolumeName string `boil:"volume_name" json:"volume_name" toml:"volume_name" yaml:"volume_name"` VolumeRegion string `boil:"volume_region" json:"volume_region" toml:"volume_region" yaml:"volume_region"` AccountID int `boil:"account_id" json:"account_id" toml:"account_id" yaml:"account_id"` VolumeOrganization string `boil:"volume_organization" json:"volume_organization" toml:"volume_organization" yaml:"volume_organization"` R *snapRuleR `boil:"-" json:"-" toml:"-" yaml:"-"` L snapRuleL `boil:"-" json:"-" toml:"-" yaml:"-"` }
SnapRule is an object representing the database table.
func FindSnapRule ¶
FindSnapRule retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*SnapRule) AddSnapshots ¶
AddSnapshots adds the given related objects to the existing relationships of the snap_rule, optionally inserting them as new records. Appends related to o.R.Snapshots. Sets related.R.SnapRule appropriately.
func (*SnapRule) Delete ¶
Delete deletes a single SnapRule record with an executor. Delete will match against the primary key column to find the record to delete.
func (*SnapRule) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*SnapRule) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*SnapRule) SetAccount ¶
SetAccount of the snapRule to the related item. Sets o.R.Account to related. Adds o to related.R.SnapRules.
func (*SnapRule) Update ¶
Update uses an executor to update the SnapRule. 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 (*SnapRule) Upsert ¶
func (o *SnapRule) Upsert(exec boil.Executor, 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.
type SnapRuleHook ¶
SnapRuleHook is the signature for custom SnapRule hook methods
type SnapRuleSlice ¶
type SnapRuleSlice []*SnapRule
SnapRuleSlice is an alias for a slice of pointers to SnapRule. This should generally be used opposed to []SnapRule.
func (SnapRuleSlice) DeleteAll ¶
func (o SnapRuleSlice) DeleteAll(exec boil.Executor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
type Snapshot ¶
type Snapshot 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"` ProviderSnapshotID string `boil:"provider_snapshot_id" json:"provider_snapshot_id" toml:"provider_snapshot_id" yaml:"provider_snapshot_id"` SnapRuleID int `boil:"snap_rule_id" json:"snap_rule_id" toml:"snap_rule_id" yaml:"snap_rule_id"` R *snapshotR `boil:"-" json:"-" toml:"-" yaml:"-"` L snapshotL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Snapshot is an object representing the database table.
func FindSnapshot ¶
FindSnapshot retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Snapshot) Delete ¶
Delete deletes a single Snapshot record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Snapshot) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Snapshot) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Snapshot) SetSnapRule ¶
SetSnapRule of the snapshot to the related item. Sets o.R.SnapRule to related. Adds o to related.R.Snapshots.
func (*Snapshot) Update ¶
Update uses an executor to update the Snapshot. 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 (*Snapshot) Upsert ¶
func (o *Snapshot) Upsert(exec boil.Executor, 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.
type SnapshotHook ¶
SnapshotHook is the signature for custom Snapshot hook methods
type SnapshotSlice ¶
type SnapshotSlice []*Snapshot
SnapshotSlice is an alias for a slice of pointers to Snapshot. This should generally be used opposed to []Snapshot.
func (SnapshotSlice) DeleteAll ¶
func (o SnapshotSlice) DeleteAll(exec boil.Executor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
type User ¶
type User 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"` Email string `boil:"email" json:"email" toml:"email" yaml:"email"` Password string `boil:"password" json:"password" toml:"password" yaml:"password"` R *userR `boil:"-" json:"-" toml:"-" yaml:"-"` L userL `boil:"-" json:"-" toml:"-" yaml:"-"` }
User is an object representing the database table.
func FindUser ¶
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*User) AddAccounts ¶
AddAccounts adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Accounts. Sets related.R.User appropriately.
func (*User) Delete ¶
Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.
func (*User) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*User) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*User) Update ¶
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) Upsert ¶
func (o *User) Upsert(exec boil.Executor, 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.
type UserSlice ¶
type UserSlice []*User
UserSlice is an alias for a slice of pointers to User. This should generally be used opposed to []User.