Documentation ¶
Index ¶
- Variables
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func SchemaMigrationExists(ctx context.Context, exec boil.ContextExecutor, version int64) (bool, error)
- func SchemaMigrations(mods ...qm.QueryMod) schemaMigrationQuery
- func TaskExists(ctx context.Context, exec boil.ContextExecutor, iD uint64) (bool, error)
- func Tasks(mods ...qm.QueryMod) taskQuery
- type M
- type SchemaMigration
- func (o *SchemaMigration) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SchemaMigration) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *SchemaMigration) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *SchemaMigration) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *SchemaMigration) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *SchemaMigration) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type SchemaMigrationSlice
- func (o SchemaMigrationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SchemaMigrationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o SchemaMigrationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Task
- func (o *Task) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Task) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Task) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Task) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Task) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Task) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type TaskSlice
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 SchemaMigrationColumns = struct { Version string Dirty string }{ Version: "version", Dirty: "dirty", }
var SchemaMigrationRels = struct {
}{}
SchemaMigrationRels is where relationship names are stored.
var SchemaMigrationTableColumns = struct { Version string Dirty string }{ Version: "schema_migrations.version", Dirty: "schema_migrations.dirty", }
var SchemaMigrationWhere = struct { Version whereHelperint64 Dirty whereHelperbool }{ Version: whereHelperint64{/* contains filtered or unexported fields */}, Dirty: whereHelperbool{/* contains filtered or unexported fields */}, }
var TableNames = struct { SchemaMigrations string Tasks string }{ SchemaMigrations: "schema_migrations", Tasks: "tasks", }
var TaskColumns = struct { ID string Title string Description string Color string StartsAt string DoneAt string CreatedAt string UpdatedAt string DeletedAt string }{ ID: "id", Title: "title", Description: "description", Color: "color", StartsAt: "starts_at", DoneAt: "done_at", CreatedAt: "created_at", UpdatedAt: "updated_at", DeletedAt: "deleted_at", }
var TaskRels = struct {
}{}
TaskRels is where relationship names are stored.
var TaskTableColumns = struct { ID string Title string Description string Color string StartsAt string DoneAt string CreatedAt string UpdatedAt string DeletedAt string }{ ID: "tasks.id", Title: "tasks.title", Description: "tasks.description", Color: "tasks.color", StartsAt: "tasks.starts_at", DoneAt: "tasks.done_at", CreatedAt: "tasks.created_at", UpdatedAt: "tasks.updated_at", DeletedAt: "tasks.deleted_at", }
var TaskWhere = struct { ID whereHelperuint64 Title whereHelpernull_String Description whereHelpernull_String Color whereHelpernull_String StartsAt whereHelpernull_Time DoneAt whereHelpernull_Time CreatedAt whereHelpernull_Time UpdatedAt whereHelpernull_Time DeletedAt whereHelpernull_Time }{ ID: whereHelperuint64{/* contains filtered or unexported fields */}, Title: whereHelpernull_String{/* contains filtered or unexported fields */}, Description: whereHelpernull_String{/* contains filtered or unexported fields */}, Color: whereHelpernull_String{/* contains filtered or unexported fields */}, StartsAt: whereHelpernull_Time{/* contains filtered or unexported fields */}, DoneAt: whereHelpernull_Time{/* 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 */}, }
var ViewNames = struct {
}{}
Functions ¶
func SchemaMigrationExists ¶
func SchemaMigrationExists(ctx context.Context, exec boil.ContextExecutor, version int64) (bool, error)
SchemaMigrationExists checks if the SchemaMigration row exists.
func SchemaMigrations ¶
SchemaMigrations retrieves all the records using an executor.
func TaskExists ¶
TaskExists checks if the Task row exists.
Types ¶
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type SchemaMigration ¶
type SchemaMigration struct { Version int64 `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 int64, 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 ¶
func (o *SchemaMigration) Reload(ctx context.Context, exec boil.ContextExecutor) error
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, 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 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 ¶
func (o SchemaMigrationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*SchemaMigrationSlice) ReloadAll ¶
func (o *SchemaMigrationSlice) 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 (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 Task ¶
type Task struct { ID uint64 `boil:"id" json:"id" toml:"id" yaml:"id"` Title null.String `boil:"title" json:"title,omitempty" toml:"title" yaml:"title,omitempty"` Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"` Color null.String `boil:"color" json:"color,omitempty" toml:"color" yaml:"color,omitempty"` StartsAt null.Time `boil:"starts_at" json:"starts_at,omitempty" toml:"starts_at" yaml:"starts_at,omitempty"` DoneAt null.Time `boil:"done_at" json:"done_at,omitempty" toml:"done_at" yaml:"done_at,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"` DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"` R *taskR `boil:"-" json:"-" toml:"-" yaml:"-"` L taskL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Task is an object representing the database table.
func FindTask ¶
func FindTask(ctx context.Context, exec boil.ContextExecutor, iD uint64, selectCols ...string) (*Task, error)
FindTask retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Task) Delete ¶
Delete deletes a single Task record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Task) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Task) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Task) Update ¶
func (o *Task) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Task. 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 (*Task) Upsert ¶
func (o *Task) Upsert(ctx context.Context, exec boil.ContextExecutor, 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 TaskSlice ¶
type TaskSlice []*Task
TaskSlice is an alias for a slice of pointers to Task. This should almost always be used instead of []Task.