Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TorrentSession) predicate.TorrentSession
- func CompletedAt(v time.Time) predicate.TorrentSession
- func CompletedAtEQ(v time.Time) predicate.TorrentSession
- func CompletedAtGT(v time.Time) predicate.TorrentSession
- func CompletedAtGTE(v time.Time) predicate.TorrentSession
- func CompletedAtIn(vs ...time.Time) predicate.TorrentSession
- func CompletedAtIsNil() predicate.TorrentSession
- func CompletedAtLT(v time.Time) predicate.TorrentSession
- func CompletedAtLTE(v time.Time) predicate.TorrentSession
- func CompletedAtNEQ(v time.Time) predicate.TorrentSession
- func CompletedAtNotIn(vs ...time.Time) predicate.TorrentSession
- func CompletedAtNotNil() predicate.TorrentSession
- func CreateTime(v time.Time) predicate.TorrentSession
- func CreateTimeEQ(v time.Time) predicate.TorrentSession
- func CreateTimeGT(v time.Time) predicate.TorrentSession
- func CreateTimeGTE(v time.Time) predicate.TorrentSession
- func CreateTimeIn(vs ...time.Time) predicate.TorrentSession
- func CreateTimeLT(v time.Time) predicate.TorrentSession
- func CreateTimeLTE(v time.Time) predicate.TorrentSession
- func CreateTimeNEQ(v time.Time) predicate.TorrentSession
- func CreateTimeNotIn(vs ...time.Time) predicate.TorrentSession
- func ID(id uint32) predicate.TorrentSession
- func IDEQ(id uint32) predicate.TorrentSession
- func IDGT(id uint32) predicate.TorrentSession
- func IDGTE(id uint32) predicate.TorrentSession
- func IDIn(ids ...uint32) predicate.TorrentSession
- func IDLT(id uint32) predicate.TorrentSession
- func IDLTE(id uint32) predicate.TorrentSession
- func IDNEQ(id uint32) predicate.TorrentSession
- func IDNotIn(ids ...uint32) predicate.TorrentSession
- func InfoHash(v string) predicate.TorrentSession
- func InfoHashContains(v string) predicate.TorrentSession
- func InfoHashContainsFold(v string) predicate.TorrentSession
- func InfoHashEQ(v string) predicate.TorrentSession
- func InfoHashEqualFold(v string) predicate.TorrentSession
- func InfoHashGT(v string) predicate.TorrentSession
- func InfoHashGTE(v string) predicate.TorrentSession
- func InfoHashHasPrefix(v string) predicate.TorrentSession
- func InfoHashHasSuffix(v string) predicate.TorrentSession
- func InfoHashIn(vs ...string) predicate.TorrentSession
- func InfoHashLT(v string) predicate.TorrentSession
- func InfoHashLTE(v string) predicate.TorrentSession
- func InfoHashNEQ(v string) predicate.TorrentSession
- func InfoHashNotIn(vs ...string) predicate.TorrentSession
- func Name(v string) predicate.TorrentSession
- func NameContains(v string) predicate.TorrentSession
- func NameContainsFold(v string) predicate.TorrentSession
- func NameEQ(v string) predicate.TorrentSession
- func NameEqualFold(v string) predicate.TorrentSession
- func NameGT(v string) predicate.TorrentSession
- func NameGTE(v string) predicate.TorrentSession
- func NameHasPrefix(v string) predicate.TorrentSession
- func NameHasSuffix(v string) predicate.TorrentSession
- func NameIn(vs ...string) predicate.TorrentSession
- func NameIsNil() predicate.TorrentSession
- func NameLT(v string) predicate.TorrentSession
- func NameLTE(v string) predicate.TorrentSession
- func NameNEQ(v string) predicate.TorrentSession
- func NameNotIn(vs ...string) predicate.TorrentSession
- func NameNotNil() predicate.TorrentSession
- func Not(p predicate.TorrentSession) predicate.TorrentSession
- func Or(predicates ...predicate.TorrentSession) predicate.TorrentSession
- func Paused(v bool) predicate.TorrentSession
- func PausedEQ(v bool) predicate.TorrentSession
- func PausedNEQ(v bool) predicate.TorrentSession
- func SavePath(v string) predicate.TorrentSession
- func SavePathContains(v string) predicate.TorrentSession
- func SavePathContainsFold(v string) predicate.TorrentSession
- func SavePathEQ(v string) predicate.TorrentSession
- func SavePathEqualFold(v string) predicate.TorrentSession
- func SavePathGT(v string) predicate.TorrentSession
- func SavePathGTE(v string) predicate.TorrentSession
- func SavePathHasPrefix(v string) predicate.TorrentSession
- func SavePathHasSuffix(v string) predicate.TorrentSession
- func SavePathIn(vs ...string) predicate.TorrentSession
- func SavePathLT(v string) predicate.TorrentSession
- func SavePathLTE(v string) predicate.TorrentSession
- func SavePathNEQ(v string) predicate.TorrentSession
- func SavePathNotIn(vs ...string) predicate.TorrentSession
- func SeedStopped(v bool) predicate.TorrentSession
- func SeedStoppedEQ(v bool) predicate.TorrentSession
- func SeedStoppedNEQ(v bool) predicate.TorrentSession
- func SourceMagnet(v string) predicate.TorrentSession
- func SourceMagnetContains(v string) predicate.TorrentSession
- func SourceMagnetContainsFold(v string) predicate.TorrentSession
- func SourceMagnetEQ(v string) predicate.TorrentSession
- func SourceMagnetEqualFold(v string) predicate.TorrentSession
- func SourceMagnetGT(v string) predicate.TorrentSession
- func SourceMagnetGTE(v string) predicate.TorrentSession
- func SourceMagnetHasPrefix(v string) predicate.TorrentSession
- func SourceMagnetHasSuffix(v string) predicate.TorrentSession
- func SourceMagnetIn(vs ...string) predicate.TorrentSession
- func SourceMagnetIsNil() predicate.TorrentSession
- func SourceMagnetLT(v string) predicate.TorrentSession
- func SourceMagnetLTE(v string) predicate.TorrentSession
- func SourceMagnetNEQ(v string) predicate.TorrentSession
- func SourceMagnetNotIn(vs ...string) predicate.TorrentSession
- func SourceMagnetNotNil() predicate.TorrentSession
- func SourceTorrent(v []byte) predicate.TorrentSession
- func SourceTorrentEQ(v []byte) predicate.TorrentSession
- func SourceTorrentGT(v []byte) predicate.TorrentSession
- func SourceTorrentGTE(v []byte) predicate.TorrentSession
- func SourceTorrentIn(vs ...[]byte) predicate.TorrentSession
- func SourceTorrentIsNil() predicate.TorrentSession
- func SourceTorrentLT(v []byte) predicate.TorrentSession
- func SourceTorrentLTE(v []byte) predicate.TorrentSession
- func SourceTorrentNEQ(v []byte) predicate.TorrentSession
- func SourceTorrentNotIn(vs ...[]byte) predicate.TorrentSession
- func SourceTorrentNotNil() predicate.TorrentSession
- func UpdateTime(v time.Time) predicate.TorrentSession
- func UpdateTimeEQ(v time.Time) predicate.TorrentSession
- func UpdateTimeGT(v time.Time) predicate.TorrentSession
- func UpdateTimeGTE(v time.Time) predicate.TorrentSession
- func UpdateTimeIn(vs ...time.Time) predicate.TorrentSession
- func UpdateTimeLT(v time.Time) predicate.TorrentSession
- func UpdateTimeLTE(v time.Time) predicate.TorrentSession
- func UpdateTimeNEQ(v time.Time) predicate.TorrentSession
- func UpdateTimeNotIn(vs ...time.Time) predicate.TorrentSession
- func ValidColumn(column string) bool
- type OrderOption
- func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInfoHash(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPaused(opts ...sql.OrderTermOption) OrderOption
- func BySavePath(opts ...sql.OrderTermOption) OrderOption
- func BySeedStopped(opts ...sql.OrderTermOption) OrderOption
- func BySourceMagnet(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the torrentsession type in the database. Label = "torrent_session" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldInfoHash holds the string denoting the info_hash field in the database. FieldInfoHash = "info_hash" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSavePath holds the string denoting the save_path field in the database. FieldSavePath = "save_path" // FieldSourceMagnet holds the string denoting the source_magnet field in the database. FieldSourceMagnet = "source_magnet" // FieldSourceTorrent holds the string denoting the source_torrent field in the database. FieldSourceTorrent = "source_torrent" // FieldPaused holds the string denoting the paused field in the database. FieldPaused = "paused" // FieldCompletedAt holds the string denoting the completed_at field in the database. FieldCompletedAt = "completed_at" // FieldSeedStopped holds the string denoting the seed_stopped field in the database. FieldSeedStopped = "seed_stopped" // Table holds the table name of the torrentsession in the database. Table = "torrent_sessions" )
Variables ¶
var ( // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // InfoHashValidator is a validator for the "info_hash" field. It is called by the builders before save. InfoHashValidator func(string) error // SavePathValidator is a validator for the "save_path" field. It is called by the builders before save. SavePathValidator func(string) error // DefaultPaused holds the default value on creation for the "paused" field. DefaultPaused bool // DefaultSeedStopped holds the default value on creation for the "seed_stopped" field. DefaultSeedStopped bool )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldInfoHash, FieldName, FieldSavePath, FieldSourceMagnet, FieldSourceTorrent, FieldPaused, FieldCompletedAt, FieldSeedStopped, }
Columns holds all SQL columns for torrentsession fields.
Functions ¶
func And ¶
func And(predicates ...predicate.TorrentSession) predicate.TorrentSession
And groups predicates with the AND operator between them.
func CompletedAt ¶
func CompletedAt(v time.Time) predicate.TorrentSession
CompletedAt applies equality check predicate on the "completed_at" field. It's identical to CompletedAtEQ.
func CompletedAtEQ ¶
func CompletedAtEQ(v time.Time) predicate.TorrentSession
CompletedAtEQ applies the EQ predicate on the "completed_at" field.
func CompletedAtGT ¶
func CompletedAtGT(v time.Time) predicate.TorrentSession
CompletedAtGT applies the GT predicate on the "completed_at" field.
func CompletedAtGTE ¶
func CompletedAtGTE(v time.Time) predicate.TorrentSession
CompletedAtGTE applies the GTE predicate on the "completed_at" field.
func CompletedAtIn ¶
func CompletedAtIn(vs ...time.Time) predicate.TorrentSession
CompletedAtIn applies the In predicate on the "completed_at" field.
func CompletedAtIsNil ¶
func CompletedAtIsNil() predicate.TorrentSession
CompletedAtIsNil applies the IsNil predicate on the "completed_at" field.
func CompletedAtLT ¶
func CompletedAtLT(v time.Time) predicate.TorrentSession
CompletedAtLT applies the LT predicate on the "completed_at" field.
func CompletedAtLTE ¶
func CompletedAtLTE(v time.Time) predicate.TorrentSession
CompletedAtLTE applies the LTE predicate on the "completed_at" field.
func CompletedAtNEQ ¶
func CompletedAtNEQ(v time.Time) predicate.TorrentSession
CompletedAtNEQ applies the NEQ predicate on the "completed_at" field.
func CompletedAtNotIn ¶
func CompletedAtNotIn(vs ...time.Time) predicate.TorrentSession
CompletedAtNotIn applies the NotIn predicate on the "completed_at" field.
func CompletedAtNotNil ¶
func CompletedAtNotNil() predicate.TorrentSession
CompletedAtNotNil applies the NotNil predicate on the "completed_at" field.
func CreateTime ¶
func CreateTime(v time.Time) predicate.TorrentSession
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.TorrentSession
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.TorrentSession
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.TorrentSession
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.TorrentSession
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.TorrentSession
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.TorrentSession
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.TorrentSession
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.TorrentSession
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func IDEQ ¶
func IDEQ(id uint32) predicate.TorrentSession
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uint32) predicate.TorrentSession
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uint32) predicate.TorrentSession
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uint32) predicate.TorrentSession
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uint32) predicate.TorrentSession
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uint32) predicate.TorrentSession
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uint32) predicate.TorrentSession
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uint32) predicate.TorrentSession
IDNotIn applies the NotIn predicate on the ID field.
func InfoHash ¶
func InfoHash(v string) predicate.TorrentSession
InfoHash applies equality check predicate on the "info_hash" field. It's identical to InfoHashEQ.
func InfoHashContains ¶
func InfoHashContains(v string) predicate.TorrentSession
InfoHashContains applies the Contains predicate on the "info_hash" field.
func InfoHashContainsFold ¶
func InfoHashContainsFold(v string) predicate.TorrentSession
InfoHashContainsFold applies the ContainsFold predicate on the "info_hash" field.
func InfoHashEQ ¶
func InfoHashEQ(v string) predicate.TorrentSession
InfoHashEQ applies the EQ predicate on the "info_hash" field.
func InfoHashEqualFold ¶
func InfoHashEqualFold(v string) predicate.TorrentSession
InfoHashEqualFold applies the EqualFold predicate on the "info_hash" field.
func InfoHashGT ¶
func InfoHashGT(v string) predicate.TorrentSession
InfoHashGT applies the GT predicate on the "info_hash" field.
func InfoHashGTE ¶
func InfoHashGTE(v string) predicate.TorrentSession
InfoHashGTE applies the GTE predicate on the "info_hash" field.
func InfoHashHasPrefix ¶
func InfoHashHasPrefix(v string) predicate.TorrentSession
InfoHashHasPrefix applies the HasPrefix predicate on the "info_hash" field.
func InfoHashHasSuffix ¶
func InfoHashHasSuffix(v string) predicate.TorrentSession
InfoHashHasSuffix applies the HasSuffix predicate on the "info_hash" field.
func InfoHashIn ¶
func InfoHashIn(vs ...string) predicate.TorrentSession
InfoHashIn applies the In predicate on the "info_hash" field.
func InfoHashLT ¶
func InfoHashLT(v string) predicate.TorrentSession
InfoHashLT applies the LT predicate on the "info_hash" field.
func InfoHashLTE ¶
func InfoHashLTE(v string) predicate.TorrentSession
InfoHashLTE applies the LTE predicate on the "info_hash" field.
func InfoHashNEQ ¶
func InfoHashNEQ(v string) predicate.TorrentSession
InfoHashNEQ applies the NEQ predicate on the "info_hash" field.
func InfoHashNotIn ¶
func InfoHashNotIn(vs ...string) predicate.TorrentSession
InfoHashNotIn applies the NotIn predicate on the "info_hash" field.
func Name ¶
func Name(v string) predicate.TorrentSession
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.TorrentSession
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.TorrentSession
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.TorrentSession
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.TorrentSession
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.TorrentSession
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.TorrentSession
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.TorrentSession
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.TorrentSession
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.TorrentSession
NameIn applies the In predicate on the "name" field.
func NameIsNil ¶
func NameIsNil() predicate.TorrentSession
NameIsNil applies the IsNil predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.TorrentSession
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.TorrentSession
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.TorrentSession
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.TorrentSession
NameNotIn applies the NotIn predicate on the "name" field.
func NameNotNil ¶
func NameNotNil() predicate.TorrentSession
NameNotNil applies the NotNil predicate on the "name" field.
func Not ¶
func Not(p predicate.TorrentSession) predicate.TorrentSession
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TorrentSession) predicate.TorrentSession
Or groups predicates with the OR operator between them.
func Paused ¶
func Paused(v bool) predicate.TorrentSession
Paused applies equality check predicate on the "paused" field. It's identical to PausedEQ.
func PausedEQ ¶
func PausedEQ(v bool) predicate.TorrentSession
PausedEQ applies the EQ predicate on the "paused" field.
func PausedNEQ ¶
func PausedNEQ(v bool) predicate.TorrentSession
PausedNEQ applies the NEQ predicate on the "paused" field.
func SavePath ¶
func SavePath(v string) predicate.TorrentSession
SavePath applies equality check predicate on the "save_path" field. It's identical to SavePathEQ.
func SavePathContains ¶
func SavePathContains(v string) predicate.TorrentSession
SavePathContains applies the Contains predicate on the "save_path" field.
func SavePathContainsFold ¶
func SavePathContainsFold(v string) predicate.TorrentSession
SavePathContainsFold applies the ContainsFold predicate on the "save_path" field.
func SavePathEQ ¶
func SavePathEQ(v string) predicate.TorrentSession
SavePathEQ applies the EQ predicate on the "save_path" field.
func SavePathEqualFold ¶
func SavePathEqualFold(v string) predicate.TorrentSession
SavePathEqualFold applies the EqualFold predicate on the "save_path" field.
func SavePathGT ¶
func SavePathGT(v string) predicate.TorrentSession
SavePathGT applies the GT predicate on the "save_path" field.
func SavePathGTE ¶
func SavePathGTE(v string) predicate.TorrentSession
SavePathGTE applies the GTE predicate on the "save_path" field.
func SavePathHasPrefix ¶
func SavePathHasPrefix(v string) predicate.TorrentSession
SavePathHasPrefix applies the HasPrefix predicate on the "save_path" field.
func SavePathHasSuffix ¶
func SavePathHasSuffix(v string) predicate.TorrentSession
SavePathHasSuffix applies the HasSuffix predicate on the "save_path" field.
func SavePathIn ¶
func SavePathIn(vs ...string) predicate.TorrentSession
SavePathIn applies the In predicate on the "save_path" field.
func SavePathLT ¶
func SavePathLT(v string) predicate.TorrentSession
SavePathLT applies the LT predicate on the "save_path" field.
func SavePathLTE ¶
func SavePathLTE(v string) predicate.TorrentSession
SavePathLTE applies the LTE predicate on the "save_path" field.
func SavePathNEQ ¶
func SavePathNEQ(v string) predicate.TorrentSession
SavePathNEQ applies the NEQ predicate on the "save_path" field.
func SavePathNotIn ¶
func SavePathNotIn(vs ...string) predicate.TorrentSession
SavePathNotIn applies the NotIn predicate on the "save_path" field.
func SeedStopped ¶
func SeedStopped(v bool) predicate.TorrentSession
SeedStopped applies equality check predicate on the "seed_stopped" field. It's identical to SeedStoppedEQ.
func SeedStoppedEQ ¶
func SeedStoppedEQ(v bool) predicate.TorrentSession
SeedStoppedEQ applies the EQ predicate on the "seed_stopped" field.
func SeedStoppedNEQ ¶
func SeedStoppedNEQ(v bool) predicate.TorrentSession
SeedStoppedNEQ applies the NEQ predicate on the "seed_stopped" field.
func SourceMagnet ¶
func SourceMagnet(v string) predicate.TorrentSession
SourceMagnet applies equality check predicate on the "source_magnet" field. It's identical to SourceMagnetEQ.
func SourceMagnetContains ¶
func SourceMagnetContains(v string) predicate.TorrentSession
SourceMagnetContains applies the Contains predicate on the "source_magnet" field.
func SourceMagnetContainsFold ¶
func SourceMagnetContainsFold(v string) predicate.TorrentSession
SourceMagnetContainsFold applies the ContainsFold predicate on the "source_magnet" field.
func SourceMagnetEQ ¶
func SourceMagnetEQ(v string) predicate.TorrentSession
SourceMagnetEQ applies the EQ predicate on the "source_magnet" field.
func SourceMagnetEqualFold ¶
func SourceMagnetEqualFold(v string) predicate.TorrentSession
SourceMagnetEqualFold applies the EqualFold predicate on the "source_magnet" field.
func SourceMagnetGT ¶
func SourceMagnetGT(v string) predicate.TorrentSession
SourceMagnetGT applies the GT predicate on the "source_magnet" field.
func SourceMagnetGTE ¶
func SourceMagnetGTE(v string) predicate.TorrentSession
SourceMagnetGTE applies the GTE predicate on the "source_magnet" field.
func SourceMagnetHasPrefix ¶
func SourceMagnetHasPrefix(v string) predicate.TorrentSession
SourceMagnetHasPrefix applies the HasPrefix predicate on the "source_magnet" field.
func SourceMagnetHasSuffix ¶
func SourceMagnetHasSuffix(v string) predicate.TorrentSession
SourceMagnetHasSuffix applies the HasSuffix predicate on the "source_magnet" field.
func SourceMagnetIn ¶
func SourceMagnetIn(vs ...string) predicate.TorrentSession
SourceMagnetIn applies the In predicate on the "source_magnet" field.
func SourceMagnetIsNil ¶
func SourceMagnetIsNil() predicate.TorrentSession
SourceMagnetIsNil applies the IsNil predicate on the "source_magnet" field.
func SourceMagnetLT ¶
func SourceMagnetLT(v string) predicate.TorrentSession
SourceMagnetLT applies the LT predicate on the "source_magnet" field.
func SourceMagnetLTE ¶
func SourceMagnetLTE(v string) predicate.TorrentSession
SourceMagnetLTE applies the LTE predicate on the "source_magnet" field.
func SourceMagnetNEQ ¶
func SourceMagnetNEQ(v string) predicate.TorrentSession
SourceMagnetNEQ applies the NEQ predicate on the "source_magnet" field.
func SourceMagnetNotIn ¶
func SourceMagnetNotIn(vs ...string) predicate.TorrentSession
SourceMagnetNotIn applies the NotIn predicate on the "source_magnet" field.
func SourceMagnetNotNil ¶
func SourceMagnetNotNil() predicate.TorrentSession
SourceMagnetNotNil applies the NotNil predicate on the "source_magnet" field.
func SourceTorrent ¶
func SourceTorrent(v []byte) predicate.TorrentSession
SourceTorrent applies equality check predicate on the "source_torrent" field. It's identical to SourceTorrentEQ.
func SourceTorrentEQ ¶
func SourceTorrentEQ(v []byte) predicate.TorrentSession
SourceTorrentEQ applies the EQ predicate on the "source_torrent" field.
func SourceTorrentGT ¶
func SourceTorrentGT(v []byte) predicate.TorrentSession
SourceTorrentGT applies the GT predicate on the "source_torrent" field.
func SourceTorrentGTE ¶
func SourceTorrentGTE(v []byte) predicate.TorrentSession
SourceTorrentGTE applies the GTE predicate on the "source_torrent" field.
func SourceTorrentIn ¶
func SourceTorrentIn(vs ...[]byte) predicate.TorrentSession
SourceTorrentIn applies the In predicate on the "source_torrent" field.
func SourceTorrentIsNil ¶
func SourceTorrentIsNil() predicate.TorrentSession
SourceTorrentIsNil applies the IsNil predicate on the "source_torrent" field.
func SourceTorrentLT ¶
func SourceTorrentLT(v []byte) predicate.TorrentSession
SourceTorrentLT applies the LT predicate on the "source_torrent" field.
func SourceTorrentLTE ¶
func SourceTorrentLTE(v []byte) predicate.TorrentSession
SourceTorrentLTE applies the LTE predicate on the "source_torrent" field.
func SourceTorrentNEQ ¶
func SourceTorrentNEQ(v []byte) predicate.TorrentSession
SourceTorrentNEQ applies the NEQ predicate on the "source_torrent" field.
func SourceTorrentNotIn ¶
func SourceTorrentNotIn(vs ...[]byte) predicate.TorrentSession
SourceTorrentNotIn applies the NotIn predicate on the "source_torrent" field.
func SourceTorrentNotNil ¶
func SourceTorrentNotNil() predicate.TorrentSession
SourceTorrentNotNil applies the NotNil predicate on the "source_torrent" field.
func UpdateTime ¶
func UpdateTime(v time.Time) predicate.TorrentSession
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
func UpdateTimeEQ(v time.Time) predicate.TorrentSession
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
func UpdateTimeGT(v time.Time) predicate.TorrentSession
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
func UpdateTimeGTE(v time.Time) predicate.TorrentSession
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
func UpdateTimeIn(vs ...time.Time) predicate.TorrentSession
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
func UpdateTimeLT(v time.Time) predicate.TorrentSession
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
func UpdateTimeLTE(v time.Time) predicate.TorrentSession
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
func UpdateTimeNEQ(v time.Time) predicate.TorrentSession
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
func UpdateTimeNotIn(vs ...time.Time) predicate.TorrentSession
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the TorrentSession queries.
func ByCompletedAt ¶
func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption
ByCompletedAt orders the results by the completed_at field.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInfoHash ¶
func ByInfoHash(opts ...sql.OrderTermOption) OrderOption
ByInfoHash orders the results by the info_hash field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPaused ¶
func ByPaused(opts ...sql.OrderTermOption) OrderOption
ByPaused orders the results by the paused field.
func BySavePath ¶
func BySavePath(opts ...sql.OrderTermOption) OrderOption
BySavePath orders the results by the save_path field.
func BySeedStopped ¶
func BySeedStopped(opts ...sql.OrderTermOption) OrderOption
BySeedStopped orders the results by the seed_stopped field.
func BySourceMagnet ¶
func BySourceMagnet(opts ...sql.OrderTermOption) OrderOption
BySourceMagnet orders the results by the source_magnet field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.