Documentation ¶
Index ¶
- Variables
- func AddGorpMigrationHook(hookPoint boil.HookPoint, gorpMigrationHook GorpMigrationHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func GorpMigrationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)
- func GorpMigrationExistsG(ctx context.Context, iD string) (bool, error)
- func GorpMigrations(mods ...qm.QueryMod) gorpMigrationQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func UserExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)
- func UserExistsG(ctx context.Context, iD int) (bool, error)
- func Users(mods ...qm.QueryMod) userQuery
- type GorpMigration
- func (o *GorpMigration) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *GorpMigration) DeleteG(ctx context.Context) (int64, error)
- func (o *GorpMigration) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *GorpMigration) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *GorpMigration) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *GorpMigration) ReloadG(ctx context.Context) error
- func (o *GorpMigration) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *GorpMigration) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *GorpMigration) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *GorpMigration) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type GorpMigrationHook
- type GorpMigrationSlice
- func (o GorpMigrationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o GorpMigrationSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *GorpMigrationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *GorpMigrationSlice) ReloadAllG(ctx context.Context) error
- func (o GorpMigrationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o GorpMigrationSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
- type M
- type User
- func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *User) DeleteG(ctx context.Context) (int64, error)
- func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *User) InsertG(ctx context.Context, columns boil.Columns) error
- func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *User) ReloadG(ctx context.Context) error
- func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *User) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)
- func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, ...) error
- func (o *User) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, ...) error
- type UserHook
- type UserSlice
- func (o UserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o UserSlice) DeleteAllG(ctx context.Context) (int64, error)
- func (o *UserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserSlice) ReloadAllG(ctx context.Context) error
- func (o UserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- func (o UserSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)
Constants ¶
This section is empty.
Variables ¶
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 GorpMigrationColumns = struct { ID string AppliedAt string }{ ID: "id", AppliedAt: "applied_at", }
var GorpMigrationRels = struct {
}{}
GorpMigrationRels is where relationship names are stored.
var GorpMigrationWhere = struct { ID whereHelperstring AppliedAt whereHelpernull_Time }{ ID: whereHelperstring{/* contains filtered or unexported fields */}, AppliedAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, }
var TableNames = struct { GorpMigrations string Users string }{ GorpMigrations: "gorp_migrations", Users: "users", }
var UserColumns = struct { ID string Created string AuthToken string IsIdentityVerified string HasVerifiedEmail string SDKAccountID string PrivateKey string PublicKey string Seed string }{ ID: "id", Created: "created", AuthToken: "auth_token", IsIdentityVerified: "is_identity_verified", HasVerifiedEmail: "has_verified_email", SDKAccountID: "sdk_account_id", PrivateKey: "private_key", PublicKey: "public_key", Seed: "seed", }
var UserRels = struct {
}{}
UserRels is where relationship names are stored.
var UserWhere = struct { ID whereHelperint Created whereHelpertime_Time AuthToken whereHelpernull_String IsIdentityVerified whereHelpernull_Bool HasVerifiedEmail whereHelpernull_Bool SDKAccountID whereHelpernull_String PrivateKey whereHelpernull_String PublicKey whereHelpernull_String Seed whereHelpernull_String }{ ID: whereHelperint{/* contains filtered or unexported fields */}, Created: whereHelpertime_Time{/* contains filtered or unexported fields */}, AuthToken: whereHelpernull_String{/* contains filtered or unexported fields */}, IsIdentityVerified: whereHelpernull_Bool{/* contains filtered or unexported fields */}, HasVerifiedEmail: whereHelpernull_Bool{/* contains filtered or unexported fields */}, SDKAccountID: whereHelpernull_String{/* contains filtered or unexported fields */}, PrivateKey: whereHelpernull_String{/* contains filtered or unexported fields */}, PublicKey: whereHelpernull_String{/* contains filtered or unexported fields */}, Seed: whereHelpernull_String{/* contains filtered or unexported fields */}, }
Functions ¶
func AddGorpMigrationHook ¶
func AddGorpMigrationHook(hookPoint boil.HookPoint, gorpMigrationHook GorpMigrationHook)
AddGorpMigrationHook registers your hook function for all future operations.
func AddUserHook ¶
AddUserHook registers your hook function for all future operations.
func GorpMigrationExists ¶
GorpMigrationExists checks if the GorpMigration row exists.
func GorpMigrationExistsG ¶
GorpMigrationExistsG checks if the GorpMigration row exists.
func GorpMigrations ¶
GorpMigrations retrieves all the records using an executor.
func UserExists ¶
UserExists checks if the User row exists.
func UserExistsG ¶
UserExistsG checks if the User row exists.
Types ¶
type GorpMigration ¶
type GorpMigration struct { ID string `boil:"id" json:"id" toml:"id" yaml:"id"` AppliedAt null.Time `boil:"applied_at" json:"applied_at,omitempty" toml:"applied_at" yaml:"applied_at,omitempty"` R *gorpMigrationR `boil:"-" json:"-" toml:"-" yaml:"-"` L gorpMigrationL `boil:"-" json:"-" toml:"-" yaml:"-"` }
GorpMigration is an object representing the database table.
func FindGorpMigration ¶
func FindGorpMigration(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*GorpMigration, error)
FindGorpMigration retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func FindGorpMigrationG ¶
func FindGorpMigrationG(ctx context.Context, iD string, selectCols ...string) (*GorpMigration, error)
FindGorpMigrationG retrieves a single record by ID.
func (*GorpMigration) Delete ¶
func (o *GorpMigration) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single GorpMigration record with an executor. Delete will match against the primary key column to find the record to delete.
func (*GorpMigration) DeleteG ¶
func (o *GorpMigration) DeleteG(ctx context.Context) (int64, error)
DeleteG deletes a single GorpMigration record. DeleteG will match against the primary key column to find the record to delete.
func (*GorpMigration) Insert ¶
func (o *GorpMigration) 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 (*GorpMigration) InsertG ¶
InsertG a single record. See Insert for whitelist behavior description.
func (*GorpMigration) Reload ¶
func (o *GorpMigration) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*GorpMigration) ReloadG ¶
func (o *GorpMigration) ReloadG(ctx context.Context) error
ReloadG refetches the object from the database using the primary keys.
func (*GorpMigration) Update ¶
func (o *GorpMigration) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the GorpMigration. 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 (*GorpMigration) UpdateG ¶
UpdateG a single GorpMigration record using the global executor. See Update for more documentation.
func (*GorpMigration) Upsert ¶
func (o *GorpMigration) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type GorpMigrationHook ¶
type GorpMigrationHook func(context.Context, boil.ContextExecutor, *GorpMigration) error
GorpMigrationHook is the signature for custom GorpMigration hook methods
type GorpMigrationSlice ¶
type GorpMigrationSlice []*GorpMigration
GorpMigrationSlice is an alias for a slice of pointers to GorpMigration. This should generally be used opposed to []GorpMigration.
func (GorpMigrationSlice) DeleteAll ¶
func (o GorpMigrationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (GorpMigrationSlice) DeleteAllG ¶
func (o GorpMigrationSlice) DeleteAllG(ctx context.Context) (int64, error)
DeleteAllG deletes all rows in the slice.
func (*GorpMigrationSlice) ReloadAll ¶
func (o *GorpMigrationSlice) 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 (*GorpMigrationSlice) ReloadAllG ¶
func (o *GorpMigrationSlice) ReloadAllG(ctx context.Context) error
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (GorpMigrationSlice) UpdateAll ¶
func (o GorpMigrationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
func (GorpMigrationSlice) UpdateAllG ¶
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 User ¶
type User struct { ID int `boil:"id" json:"id" toml:"id" yaml:"id"` Created time.Time `boil:"created" json:"created" toml:"created" yaml:"created"` AuthToken null.String `boil:"auth_token" json:"auth_token,omitempty" toml:"auth_token" yaml:"auth_token,omitempty"` IsIdentityVerified null.Bool `` /* 131-byte string literal not displayed */ HasVerifiedEmail null.Bool `boil:"has_verified_email" json:"has_verified_email,omitempty" toml:"has_verified_email" yaml:"has_verified_email,omitempty"` SDKAccountID null.String `boil:"sdk_account_id" json:"sdk_account_id,omitempty" toml:"sdk_account_id" yaml:"sdk_account_id,omitempty"` PrivateKey null.String `boil:"private_key" json:"private_key,omitempty" toml:"private_key" yaml:"private_key,omitempty"` PublicKey null.String `boil:"public_key" json:"public_key,omitempty" toml:"public_key" yaml:"public_key,omitempty"` Seed null.String `boil:"seed" json:"seed,omitempty" toml:"seed" yaml:"seed,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(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*User, error)
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
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) DeleteG ¶
DeleteG deletes a single User record. DeleteG 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 ¶
func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, 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 ¶
UpdateG a single User record using the global executor. See Update for more documentation.
func (*User) Upsert ¶
func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
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) DeleteAllG ¶
DeleteAllG deletes all rows in the slice.
func (*UserSlice) ReloadAll ¶
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (*UserSlice) ReloadAllG ¶
ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.