Documentation
¶
Index ¶
- Variables
- func AddDownloadQueueHook(hookPoint boil.HookPoint, downloadQueueHook DownloadQueueHook)
- func AddDownloadedAnimationHook(hookPoint boil.HookPoint, downloadedAnimationHook DownloadedAnimationHook)
- func DownloadQueueExists(ctx context.Context, exec boil.ContextExecutor, sN int64) (bool, error)
- func DownloadQueues(mods ...qm.QueryMod) downloadQueueQuery
- func DownloadedAnimationExists(ctx context.Context, exec boil.ContextExecutor, sN int64) (bool, error)
- func DownloadedAnimations(mods ...qm.QueryMod) downloadedAnimationQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- type DownloadQueue
- func (o *DownloadQueue) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *DownloadQueue) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *DownloadQueue) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *DownloadQueue) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type DownloadQueueHook
- type DownloadQueueSlice
- func (o DownloadQueueSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *DownloadQueueSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o DownloadQueueSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type DownloadedAnimation
- func (o *DownloadedAnimation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *DownloadedAnimation) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *DownloadedAnimation) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *DownloadedAnimation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- type DownloadedAnimationHook
- type DownloadedAnimationSlice
- func (o DownloadedAnimationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *DownloadedAnimationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o DownloadedAnimationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type M
Constants ¶
This section is empty.
Variables ¶
var DownloadQueueColumns = struct { SN string Name string Ep string Sequence string Downloading string Stop string Spacial string NumberOfChunk string }{ SN: "sn", Name: "name", Ep: "ep", Sequence: "sequence", Downloading: "downloading", Stop: "stop", Spacial: "spacial", NumberOfChunk: "numberOfChunk", }
var DownloadQueueRels = struct {
}{}
DownloadQueueRels is where relationship names are stored.
var DownloadQueueWhere = struct { SN whereHelperint64 Name whereHelperstring Ep whereHelperstring Sequence whereHelperint64 Downloading whereHelperint64 Stop whereHelperint64 Spacial whereHelperint64 NumberOfChunk whereHelperint64 }{ SN: whereHelperint64{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Ep: whereHelperstring{/* contains filtered or unexported fields */}, Sequence: whereHelperint64{/* contains filtered or unexported fields */}, Downloading: whereHelperint64{/* contains filtered or unexported fields */}, Stop: whereHelperint64{/* contains filtered or unexported fields */}, Spacial: whereHelperint64{/* contains filtered or unexported fields */}, NumberOfChunk: whereHelperint64{/* contains filtered or unexported fields */}, }
var DownloadedAnimationColumns = struct { SN string Title string Episode string Spacial string }{ SN: "sn", Title: "title", Episode: "episode", Spacial: "spacial", }
var DownloadedAnimationRels = struct {
}{}
DownloadedAnimationRels is where relationship names are stored.
var DownloadedAnimationWhere = struct { SN whereHelperint64 Title whereHelperstring Episode whereHelperstring Spacial whereHelperint64 }{ SN: whereHelperint64{/* contains filtered or unexported fields */}, Title: whereHelperstring{/* contains filtered or unexported fields */}, Episode: whereHelperstring{/* contains filtered or unexported fields */}, Spacial: whereHelperint64{/* 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 TableNames = struct { DownloadQueue string DownloadedAnimations string }{ DownloadQueue: "downloadQueue", DownloadedAnimations: "downloadedAnimations", }
Functions ¶
func AddDownloadQueueHook ¶
func AddDownloadQueueHook(hookPoint boil.HookPoint, downloadQueueHook DownloadQueueHook)
AddDownloadQueueHook registers your hook function for all future operations.
func AddDownloadedAnimationHook ¶
func AddDownloadedAnimationHook(hookPoint boil.HookPoint, downloadedAnimationHook DownloadedAnimationHook)
AddDownloadedAnimationHook registers your hook function for all future operations.
func DownloadQueueExists ¶
DownloadQueueExists checks if the DownloadQueue row exists.
func DownloadQueues ¶
DownloadQueues retrieves all the records using an executor.
func DownloadedAnimationExists ¶
func DownloadedAnimationExists(ctx context.Context, exec boil.ContextExecutor, sN int64) (bool, error)
DownloadedAnimationExists checks if the DownloadedAnimation row exists.
func DownloadedAnimations ¶
DownloadedAnimations retrieves all the records using an executor.
Types ¶
type DownloadQueue ¶
type DownloadQueue struct {
SN int64 `boil:"sn" json:"sn" toml:"sn" yaml:"sn"`
Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
Ep string `boil:"ep" json:"ep" toml:"ep" yaml:"ep"`
Sequence int64 `boil:"sequence" json:"sequence" toml:"sequence" yaml:"sequence"`
Downloading int64 `boil:"downloading" json:"downloading" toml:"downloading" yaml:"downloading"`
Stop int64 `boil:"stop" json:"stop" toml:"stop" yaml:"stop"`
Spacial int64 `boil:"spacial" json:"spacial" toml:"spacial" yaml:"spacial"`
NumberOfChunk int64 `boil:"numberOfChunk" json:"numberOfChunk" toml:"numberOfChunk" yaml:"numberOfChunk"`
R *downloadQueueR `boil:"-" json:"-" toml:"-" yaml:"-"`
L downloadQueueL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
DownloadQueue is an object representing the database table.
func FindDownloadQueue ¶
func FindDownloadQueue(ctx context.Context, exec boil.ContextExecutor, sN int64, selectCols ...string) (*DownloadQueue, error)
FindDownloadQueue retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*DownloadQueue) Delete ¶
func (o *DownloadQueue) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single DownloadQueue record with an executor. Delete will match against the primary key column to find the record to delete.
func (*DownloadQueue) Insert ¶
func (o *DownloadQueue) 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 (*DownloadQueue) Reload ¶
func (o *DownloadQueue) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*DownloadQueue) Update ¶
func (o *DownloadQueue) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the DownloadQueue. 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.
type DownloadQueueHook ¶
type DownloadQueueHook func(context.Context, boil.ContextExecutor, *DownloadQueue) error
DownloadQueueHook is the signature for custom DownloadQueue hook methods
type DownloadQueueSlice ¶
type DownloadQueueSlice []*DownloadQueue
DownloadQueueSlice is an alias for a slice of pointers to DownloadQueue. This should generally be used opposed to []DownloadQueue.
func (DownloadQueueSlice) DeleteAll ¶
func (o DownloadQueueSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*DownloadQueueSlice) ReloadAll ¶
func (o *DownloadQueueSlice) 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 (DownloadQueueSlice) UpdateAll ¶
func (o DownloadQueueSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type DownloadedAnimation ¶
type DownloadedAnimation struct {
SN int64 `boil:"sn" json:"sn" toml:"sn" yaml:"sn"`
Title string `boil:"title" json:"title" toml:"title" yaml:"title"`
Episode string `boil:"episode" json:"episode" toml:"episode" yaml:"episode"`
Spacial int64 `boil:"spacial" json:"spacial" toml:"spacial" yaml:"spacial"`
R *downloadedAnimationR `boil:"-" json:"-" toml:"-" yaml:"-"`
L downloadedAnimationL `boil:"-" json:"-" toml:"-" yaml:"-"`
}
DownloadedAnimation is an object representing the database table.
func FindDownloadedAnimation ¶
func FindDownloadedAnimation(ctx context.Context, exec boil.ContextExecutor, sN int64, selectCols ...string) (*DownloadedAnimation, error)
FindDownloadedAnimation retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*DownloadedAnimation) Delete ¶
func (o *DownloadedAnimation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single DownloadedAnimation record with an executor. Delete will match against the primary key column to find the record to delete.
func (*DownloadedAnimation) Insert ¶
func (o *DownloadedAnimation) 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 (*DownloadedAnimation) Reload ¶
func (o *DownloadedAnimation) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*DownloadedAnimation) Update ¶
func (o *DownloadedAnimation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the DownloadedAnimation. 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.
type DownloadedAnimationHook ¶
type DownloadedAnimationHook func(context.Context, boil.ContextExecutor, *DownloadedAnimation) error
DownloadedAnimationHook is the signature for custom DownloadedAnimation hook methods
type DownloadedAnimationSlice ¶
type DownloadedAnimationSlice []*DownloadedAnimation
DownloadedAnimationSlice is an alias for a slice of pointers to DownloadedAnimation. This should generally be used opposed to []DownloadedAnimation.
func (DownloadedAnimationSlice) DeleteAll ¶
func (o DownloadedAnimationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*DownloadedAnimationSlice) ReloadAll ¶
func (o *DownloadedAnimationSlice) 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 (DownloadedAnimationSlice) UpdateAll ¶
func (o DownloadedAnimationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.