Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Proof) predicate.Proof
- func Content(v string) predicate.Proof
- func ContentContains(v string) predicate.Proof
- func ContentContainsFold(v string) predicate.Proof
- func ContentEQ(v string) predicate.Proof
- func ContentEqualFold(v string) predicate.Proof
- func ContentGT(v string) predicate.Proof
- func ContentGTE(v string) predicate.Proof
- func ContentHasPrefix(v string) predicate.Proof
- func ContentHasSuffix(v string) predicate.Proof
- func ContentIn(vs ...string) predicate.Proof
- func ContentLT(v string) predicate.Proof
- func ContentLTE(v string) predicate.Proof
- func ContentNEQ(v string) predicate.Proof
- func ContentNotIn(vs ...string) predicate.Proof
- func CreateTime(v time.Time) predicate.Proof
- func CreateTimeEQ(v time.Time) predicate.Proof
- func CreateTimeGT(v time.Time) predicate.Proof
- func CreateTimeGTE(v time.Time) predicate.Proof
- func CreateTimeIn(vs ...time.Time) predicate.Proof
- func CreateTimeLT(v time.Time) predicate.Proof
- func CreateTimeLTE(v time.Time) predicate.Proof
- func CreateTimeNEQ(v time.Time) predicate.Proof
- func CreateTimeNotIn(vs ...time.Time) predicate.Proof
- func HasChallenge() predicate.Proof
- func HasChallengeWith(preds ...predicate.Challenge) predicate.Proof
- func ID(id uuid.UUID) predicate.Proof
- func IDEQ(id uuid.UUID) predicate.Proof
- func IDGT(id uuid.UUID) predicate.Proof
- func IDGTE(id uuid.UUID) predicate.Proof
- func IDIn(ids ...uuid.UUID) predicate.Proof
- func IDLT(id uuid.UUID) predicate.Proof
- func IDLTE(id uuid.UUID) predicate.Proof
- func IDNEQ(id uuid.UUID) predicate.Proof
- func IDNotIn(ids ...uuid.UUID) predicate.Proof
- func Link(v string) predicate.Proof
- func LinkContains(v string) predicate.Proof
- func LinkContainsFold(v string) predicate.Proof
- func LinkEQ(v string) predicate.Proof
- func LinkEqualFold(v string) predicate.Proof
- func LinkGT(v string) predicate.Proof
- func LinkGTE(v string) predicate.Proof
- func LinkHasPrefix(v string) predicate.Proof
- func LinkHasSuffix(v string) predicate.Proof
- func LinkIn(vs ...string) predicate.Proof
- func LinkLT(v string) predicate.Proof
- func LinkLTE(v string) predicate.Proof
- func LinkNEQ(v string) predicate.Proof
- func LinkNotIn(vs ...string) predicate.Proof
- func MetaIsNil() predicate.Proof
- func MetaNotNil() predicate.Proof
- func Not(p predicate.Proof) predicate.Proof
- func Or(predicates ...predicate.Proof) predicate.Proof
- func UpdateTime(v time.Time) predicate.Proof
- func UpdateTimeEQ(v time.Time) predicate.Proof
- func UpdateTimeGT(v time.Time) predicate.Proof
- func UpdateTimeGTE(v time.Time) predicate.Proof
- func UpdateTimeIn(vs ...time.Time) predicate.Proof
- func UpdateTimeLT(v time.Time) predicate.Proof
- func UpdateTimeLTE(v time.Time) predicate.Proof
- func UpdateTimeNEQ(v time.Time) predicate.Proof
- func UpdateTimeNotIn(vs ...time.Time) predicate.Proof
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the proof type in the database. Label = "proof" // 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" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldLink holds the string denoting the link field in the database. FieldLink = "link" // FieldMeta holds the string denoting the meta field in the database. FieldMeta = "meta" // EdgeChallenge holds the string denoting the challenge edge name in mutations. EdgeChallenge = "challenge" // Table holds the table name of the proof in the database. Table = "proofs" // ChallengeTable is the table that holds the challenge relation/edge. ChallengeTable = "proofs" // ChallengeInverseTable is the table name for the Challenge entity. // It exists in this package in order to avoid circular dependency with the "challenge" package. ChallengeInverseTable = "challenges" // ChallengeColumn is the table column denoting the challenge relation/edge. ChallengeColumn = "challenge_proofs" )
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 // ContentValidator is a validator for the "content" field. It is called by the builders before save. ContentValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldContent, FieldLink, FieldMeta, }
Columns holds all SQL columns for proof fields.
var ForeignKeys = []string{
"challenge_proofs",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "proofs" table and are not defined as standalone fields in the schema.
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasChallenge ¶
HasChallenge applies the HasEdge predicate on the "challenge" edge.
func HasChallengeWith ¶
HasChallengeWith applies the HasEdge predicate on the "challenge" edge with a given conditions (other predicates).
func LinkContains ¶
LinkContains applies the Contains predicate on the "link" field.
func LinkContainsFold ¶
LinkContainsFold applies the ContainsFold predicate on the "link" field.
func LinkEqualFold ¶
LinkEqualFold applies the EqualFold predicate on the "link" field.
func LinkHasPrefix ¶
LinkHasPrefix applies the HasPrefix predicate on the "link" field.
func LinkHasSuffix ¶
LinkHasSuffix applies the HasSuffix predicate on the "link" field.
func MetaNotNil ¶
MetaNotNil applies the NotNil predicate on the "meta" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
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 ¶
This section is empty.