Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Job) predicate.Job
- func CreatedAt(v int64) predicate.Job
- func CreatedAtEQ(v int64) predicate.Job
- func CreatedAtGT(v int64) predicate.Job
- func CreatedAtGTE(v int64) predicate.Job
- func CreatedAtIn(vs ...int64) predicate.Job
- func CreatedAtLT(v int64) predicate.Job
- func CreatedAtLTE(v int64) predicate.Job
- func CreatedAtNEQ(v int64) predicate.Job
- func CreatedAtNotIn(vs ...int64) predicate.Job
- func Description(v string) predicate.Job
- func DescriptionContains(v string) predicate.Job
- func DescriptionContainsFold(v string) predicate.Job
- func DescriptionEQ(v string) predicate.Job
- func DescriptionEqualFold(v string) predicate.Job
- func DescriptionGT(v string) predicate.Job
- func DescriptionGTE(v string) predicate.Job
- func DescriptionHasPrefix(v string) predicate.Job
- func DescriptionHasSuffix(v string) predicate.Job
- func DescriptionIn(vs ...string) predicate.Job
- func DescriptionLT(v string) predicate.Job
- func DescriptionLTE(v string) predicate.Job
- func DescriptionNEQ(v string) predicate.Job
- func DescriptionNotIn(vs ...string) predicate.Job
- func HasOwner() predicate.Job
- func HasOwnerWith(preds ...predicate.Container) predicate.Job
- func ID(id int) predicate.Job
- func IDEQ(id int) predicate.Job
- func IDGT(id int) predicate.Job
- func IDGTE(id int) predicate.Job
- func IDIn(ids ...int) predicate.Job
- func IDLT(id int) predicate.Job
- func IDLTE(id int) predicate.Job
- func IDNEQ(id int) predicate.Job
- func IDNotIn(ids ...int) predicate.Job
- func JobType(v int) predicate.Job
- func JobTypeEQ(v int) predicate.Job
- func JobTypeGT(v int) predicate.Job
- func JobTypeGTE(v int) predicate.Job
- func JobTypeIn(vs ...int) predicate.Job
- func JobTypeLT(v int) predicate.Job
- func JobTypeLTE(v int) predicate.Job
- func JobTypeNEQ(v int) predicate.Job
- func JobTypeNotIn(vs ...int) predicate.Job
- func Name(v string) predicate.Job
- func NameContains(v string) predicate.Job
- func NameContainsFold(v string) predicate.Job
- func NameEQ(v string) predicate.Job
- func NameEqualFold(v string) predicate.Job
- func NameGT(v string) predicate.Job
- func NameGTE(v string) predicate.Job
- func NameHasPrefix(v string) predicate.Job
- func NameHasSuffix(v string) predicate.Job
- func NameIn(vs ...string) predicate.Job
- func NameLT(v string) predicate.Job
- func NameLTE(v string) predicate.Job
- func NameNEQ(v string) predicate.Job
- func NameNotIn(vs ...string) predicate.Job
- func Not(p predicate.Job) predicate.Job
- func Or(predicates ...predicate.Job) predicate.Job
- func UpdatedAt(v int64) predicate.Job
- func UpdatedAtEQ(v int64) predicate.Job
- func UpdatedAtGT(v int64) predicate.Job
- func UpdatedAtGTE(v int64) predicate.Job
- func UpdatedAtIn(vs ...int64) predicate.Job
- func UpdatedAtLT(v int64) predicate.Job
- func UpdatedAtLTE(v int64) predicate.Job
- func UpdatedAtNEQ(v int64) predicate.Job
- func UpdatedAtNotIn(vs ...int64) predicate.Job
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByJobType(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwner(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOwnerCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the job type in the database. Label = "job" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldJobType holds the string denoting the job_type field in the database. FieldJobType = "job_type" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the job in the database. Table = "jobs" // OwnerTable is the table that holds the owner relation/edge. The primary key declared below. OwnerTable = "container_jobs" // OwnerInverseTable is the table name for the Container entity. // It exists in this package in order to avoid circular dependency with the "container" package. OwnerInverseTable = "containers" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() int64 // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() int64 // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() int64 )
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldJobType, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for job fields.
var ( // OwnerPrimaryKey and OwnerColumn2 are the table columns denoting the // primary key for the owner relation (M2M). OwnerPrimaryKey = []string{"container_id", "job_id"} )
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func JobType ¶
JobType applies equality check predicate on the "job_type" field. It's identical to JobTypeEQ.
func JobTypeGTE ¶
JobTypeGTE applies the GTE predicate on the "job_type" field.
func JobTypeLTE ¶
JobTypeLTE applies the LTE predicate on the "job_type" field.
func JobTypeNEQ ¶
JobTypeNEQ applies the NEQ predicate on the "job_type" field.
func JobTypeNotIn ¶
JobTypeNotIn applies the NotIn predicate on the "job_type" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Job queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByJobType ¶
func ByJobType(opts ...sql.OrderTermOption) OrderOption
ByJobType orders the results by the job_type field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOwner ¶
func ByOwner(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOwner orders the results by owner terms.
func ByOwnerCount ¶
func ByOwnerCount(opts ...sql.OrderTermOption) OrderOption
ByOwnerCount orders the results by owner count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.