Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Shred) predicate.Shred
- func CompletedAt(v time.Time) predicate.Shred
- func CompletedAtEQ(v time.Time) predicate.Shred
- func CompletedAtGT(v time.Time) predicate.Shred
- func CompletedAtGTE(v time.Time) predicate.Shred
- func CompletedAtIn(vs ...time.Time) predicate.Shred
- func CompletedAtIsNil() predicate.Shred
- func CompletedAtLT(v time.Time) predicate.Shred
- func CompletedAtLTE(v time.Time) predicate.Shred
- func CompletedAtNEQ(v time.Time) predicate.Shred
- func CompletedAtNotIn(vs ...time.Time) predicate.Shred
- func CompletedAtNotNil() predicate.Shred
- func Deks(v int) predicate.Shred
- func DeksEQ(v int) predicate.Shred
- func DeksGT(v int) predicate.Shred
- func DeksGTE(v int) predicate.Shred
- func DeksIn(vs ...int) predicate.Shred
- func DeksLT(v int) predicate.Shred
- func DeksLTE(v int) predicate.Shred
- func DeksNEQ(v int) predicate.Shred
- func DeksNotIn(vs ...int) predicate.Shred
- func ID(id int) predicate.Shred
- func IDEQ(id int) predicate.Shred
- func IDGT(id int) predicate.Shred
- func IDGTE(id int) predicate.Shred
- func IDIn(ids ...int) predicate.Shred
- func IDLT(id int) predicate.Shred
- func IDLTE(id int) predicate.Shred
- func IDNEQ(id int) predicate.Shred
- func IDNotIn(ids ...int) predicate.Shred
- func Not(p predicate.Shred) predicate.Shred
- func Or(predicates ...predicate.Shred) predicate.Shred
- func Purpose(v string) predicate.Shred
- func PurposeContains(v string) predicate.Shred
- func PurposeContainsFold(v string) predicate.Shred
- func PurposeEQ(v string) predicate.Shred
- func PurposeEqualFold(v string) predicate.Shred
- func PurposeGT(v string) predicate.Shred
- func PurposeGTE(v string) predicate.Shred
- func PurposeHasPrefix(v string) predicate.Shred
- func PurposeHasSuffix(v string) predicate.Shred
- func PurposeIn(vs ...string) predicate.Shred
- func PurposeLT(v string) predicate.Shred
- func PurposeLTE(v string) predicate.Shred
- func PurposeNEQ(v string) predicate.Shred
- func PurposeNotIn(vs ...string) predicate.Shred
- func RequestedAt(v time.Time) predicate.Shred
- func RequestedAtEQ(v time.Time) predicate.Shred
- func RequestedAtGT(v time.Time) predicate.Shred
- func RequestedAtGTE(v time.Time) predicate.Shred
- func RequestedAtIn(vs ...time.Time) predicate.Shred
- func RequestedAtLT(v time.Time) predicate.Shred
- func RequestedAtLTE(v time.Time) predicate.Shred
- func RequestedAtNEQ(v time.Time) predicate.Shred
- func RequestedAtNotIn(vs ...time.Time) predicate.Shred
- func Subject(v string) predicate.Shred
- func SubjectContains(v string) predicate.Shred
- func SubjectContainsFold(v string) predicate.Shred
- func SubjectEQ(v string) predicate.Shred
- func SubjectEqualFold(v string) predicate.Shred
- func SubjectGT(v string) predicate.Shred
- func SubjectGTE(v string) predicate.Shred
- func SubjectHasPrefix(v string) predicate.Shred
- func SubjectHasSuffix(v string) predicate.Shred
- func SubjectIn(vs ...string) predicate.Shred
- func SubjectLT(v string) predicate.Shred
- func SubjectLTE(v string) predicate.Shred
- func SubjectNEQ(v string) predicate.Shred
- func SubjectNotIn(vs ...string) predicate.Shred
- func ValidColumn(column string) bool
- type OrderOption
- func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeks(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPurpose(opts ...sql.OrderTermOption) OrderOption
- func ByRequestedAt(opts ...sql.OrderTermOption) OrderOption
- func BySubject(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the shred type in the database. Label = "shred" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPurpose holds the string denoting the purpose field in the database. FieldPurpose = "purpose" // FieldSubject holds the string denoting the subject field in the database. FieldSubject = "subject" // FieldRequestedAt holds the string denoting the requested_at field in the database. FieldRequestedAt = "requested_at" // FieldVersions holds the string denoting the versions field in the database. FieldVersions = "versions" // FieldDeks holds the string denoting the deks field in the database. FieldDeks = "deks" // FieldCompletedAt holds the string denoting the completed_at field in the database. FieldCompletedAt = "completed_at" // Table holds the table name of the shred in the database. Table = "shreds" )
Variables ¶
var ( // PurposeValidator is a validator for the "purpose" field. It is called by the builders before save. PurposeValidator func(string) error // SubjectValidator is a validator for the "subject" field. It is called by the builders before save. SubjectValidator func(string) error // DefaultDeks holds the default value on creation for the "deks" field. DefaultDeks int )
var Columns = []string{ FieldID, FieldPurpose, FieldSubject, FieldRequestedAt, FieldVersions, FieldDeks, FieldCompletedAt, }
Columns holds all SQL columns for shred fields.
Functions ¶
func CompletedAt ¶
CompletedAt applies equality check predicate on the "completed_at" field. It's identical to CompletedAtEQ.
func CompletedAtEQ ¶
CompletedAtEQ applies the EQ predicate on the "completed_at" field.
func CompletedAtGT ¶
CompletedAtGT applies the GT predicate on the "completed_at" field.
func CompletedAtGTE ¶
CompletedAtGTE applies the GTE predicate on the "completed_at" field.
func CompletedAtIn ¶
CompletedAtIn applies the In predicate on the "completed_at" field.
func CompletedAtIsNil ¶
CompletedAtIsNil applies the IsNil predicate on the "completed_at" field.
func CompletedAtLT ¶
CompletedAtLT applies the LT predicate on the "completed_at" field.
func CompletedAtLTE ¶
CompletedAtLTE applies the LTE predicate on the "completed_at" field.
func CompletedAtNEQ ¶
CompletedAtNEQ applies the NEQ predicate on the "completed_at" field.
func CompletedAtNotIn ¶
CompletedAtNotIn applies the NotIn predicate on the "completed_at" field.
func CompletedAtNotNil ¶
CompletedAtNotNil applies the NotNil predicate on the "completed_at" field.
func Purpose ¶
Purpose applies equality check predicate on the "purpose" field. It's identical to PurposeEQ.
func PurposeContains ¶
PurposeContains applies the Contains predicate on the "purpose" field.
func PurposeContainsFold ¶
PurposeContainsFold applies the ContainsFold predicate on the "purpose" field.
func PurposeEqualFold ¶
PurposeEqualFold applies the EqualFold predicate on the "purpose" field.
func PurposeGTE ¶
PurposeGTE applies the GTE predicate on the "purpose" field.
func PurposeHasPrefix ¶
PurposeHasPrefix applies the HasPrefix predicate on the "purpose" field.
func PurposeHasSuffix ¶
PurposeHasSuffix applies the HasSuffix predicate on the "purpose" field.
func PurposeLTE ¶
PurposeLTE applies the LTE predicate on the "purpose" field.
func PurposeNEQ ¶
PurposeNEQ applies the NEQ predicate on the "purpose" field.
func PurposeNotIn ¶
PurposeNotIn applies the NotIn predicate on the "purpose" field.
func RequestedAt ¶
RequestedAt applies equality check predicate on the "requested_at" field. It's identical to RequestedAtEQ.
func RequestedAtEQ ¶
RequestedAtEQ applies the EQ predicate on the "requested_at" field.
func RequestedAtGT ¶
RequestedAtGT applies the GT predicate on the "requested_at" field.
func RequestedAtGTE ¶
RequestedAtGTE applies the GTE predicate on the "requested_at" field.
func RequestedAtIn ¶
RequestedAtIn applies the In predicate on the "requested_at" field.
func RequestedAtLT ¶
RequestedAtLT applies the LT predicate on the "requested_at" field.
func RequestedAtLTE ¶
RequestedAtLTE applies the LTE predicate on the "requested_at" field.
func RequestedAtNEQ ¶
RequestedAtNEQ applies the NEQ predicate on the "requested_at" field.
func RequestedAtNotIn ¶
RequestedAtNotIn applies the NotIn predicate on the "requested_at" field.
func Subject ¶
Subject applies equality check predicate on the "subject" field. It's identical to SubjectEQ.
func SubjectContains ¶
SubjectContains applies the Contains predicate on the "subject" field.
func SubjectContainsFold ¶
SubjectContainsFold applies the ContainsFold predicate on the "subject" field.
func SubjectEqualFold ¶
SubjectEqualFold applies the EqualFold predicate on the "subject" field.
func SubjectGTE ¶
SubjectGTE applies the GTE predicate on the "subject" field.
func SubjectHasPrefix ¶
SubjectHasPrefix applies the HasPrefix predicate on the "subject" field.
func SubjectHasSuffix ¶
SubjectHasSuffix applies the HasSuffix predicate on the "subject" field.
func SubjectLTE ¶
SubjectLTE applies the LTE predicate on the "subject" field.
func SubjectNEQ ¶
SubjectNEQ applies the NEQ predicate on the "subject" field.
func SubjectNotIn ¶
SubjectNotIn applies the NotIn predicate on the "subject" 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 Shred queries.
func ByCompletedAt ¶
func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption
ByCompletedAt orders the results by the completed_at field.
func ByDeks ¶
func ByDeks(opts ...sql.OrderTermOption) OrderOption
ByDeks orders the results by the deks field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPurpose ¶
func ByPurpose(opts ...sql.OrderTermOption) OrderOption
ByPurpose orders the results by the purpose field.
func ByRequestedAt ¶
func ByRequestedAt(opts ...sql.OrderTermOption) OrderOption
ByRequestedAt orders the results by the requested_at field.
func BySubject ¶
func BySubject(opts ...sql.OrderTermOption) OrderOption
BySubject orders the results by the subject field.