models

package
v0.0.0-...-622e4ff Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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",
}
View Source
var DownloadQueueRels = struct {
}{}

DownloadQueueRels is where relationship names are stored.

View Source
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 */},
}
View Source
var DownloadedAnimationColumns = struct {
	SN      string
	Title   string
	Episode string
	Spacial string
}{
	SN:      "sn",
	Title:   "title",
	Episode: "episode",
	Spacial: "spacial",
}
View Source
var DownloadedAnimationRels = struct {
}{}

DownloadedAnimationRels is where relationship names are stored.

View Source
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 */},
}
View Source
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.

View Source
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

func DownloadQueueExists(ctx context.Context, exec boil.ContextExecutor, sN int64) (bool, error)

DownloadQueueExists checks if the DownloadQueue row exists.

func DownloadQueues

func DownloadQueues(mods ...qm.QueryMod) downloadQueueQuery

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

func DownloadedAnimations(mods ...qm.QueryMod) downloadedAnimationQuery

DownloadedAnimations 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

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

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

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

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

func (*DownloadedAnimationSlice) ReloadAll

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.

type M

type M map[string]interface{}

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

Jump to

Keyboard shortcuts

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