Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Draft) predicate.Draft
- func HasDoc() predicate.Draft
- func HasDocWith(preds ...predicate.Doc) predicate.Draft
- func Headline(v string) predicate.Draft
- func HeadlineContains(v string) predicate.Draft
- func HeadlineContainsFold(v string) predicate.Draft
- func HeadlineEQ(v string) predicate.Draft
- func HeadlineEqualFold(v string) predicate.Draft
- func HeadlineGT(v string) predicate.Draft
- func HeadlineGTE(v string) predicate.Draft
- func HeadlineHasPrefix(v string) predicate.Draft
- func HeadlineHasSuffix(v string) predicate.Draft
- func HeadlineIn(vs ...string) predicate.Draft
- func HeadlineLT(v string) predicate.Draft
- func HeadlineLTE(v string) predicate.Draft
- func HeadlineNEQ(v string) predicate.Draft
- func HeadlineNotIn(vs ...string) predicate.Draft
- func ID(id uuid.UUID) predicate.Draft
- func IDEQ(id uuid.UUID) predicate.Draft
- func IDGT(id uuid.UUID) predicate.Draft
- func IDGTE(id uuid.UUID) predicate.Draft
- func IDIn(ids ...uuid.UUID) predicate.Draft
- func IDLT(id uuid.UUID) predicate.Draft
- func IDLTE(id uuid.UUID) predicate.Draft
- func IDNEQ(id uuid.UUID) predicate.Draft
- func IDNotIn(ids ...uuid.UUID) predicate.Draft
- func Not(p predicate.Draft) predicate.Draft
- func Or(predicates ...predicate.Draft) predicate.Draft
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the draft type in the database. Label = "draft" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldHeadline holds the string denoting the headline field in the database. FieldHeadline = "headline" // EdgeDoc holds the string denoting the doc edge name in mutations. EdgeDoc = "doc" // Table holds the table name of the draft in the database. Table = "drafts" // DocTable is the table that holds the doc relation/edge. DocTable = "drafts" // DocInverseTable is the table name for the Doc entity. // It exists in this package in order to avoid circular dependency with the "doc" package. DocInverseTable = "docs" // DocColumn is the table column denoting the doc relation/edge. DocColumn = "draft_doc" )
Variables ¶
var Columns = []string{ FieldID, FieldHeadline, }
Columns holds all SQL columns for draft fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var ForeignKeys = []string{
"draft_doc",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "drafts" table and are not defined as standalone fields in the schema.
Functions ¶
func HasDocWith ¶
HasDocWith applies the HasEdge predicate on the "doc" edge with a given conditions (other predicates).
func Headline ¶
Headline applies equality check predicate on the "headline" field. It's identical to HeadlineEQ.
func HeadlineContains ¶
HeadlineContains applies the Contains predicate on the "headline" field.
func HeadlineContainsFold ¶
HeadlineContainsFold applies the ContainsFold predicate on the "headline" field.
func HeadlineEQ ¶
HeadlineEQ applies the EQ predicate on the "headline" field.
func HeadlineEqualFold ¶
HeadlineEqualFold applies the EqualFold predicate on the "headline" field.
func HeadlineGT ¶
HeadlineGT applies the GT predicate on the "headline" field.
func HeadlineGTE ¶
HeadlineGTE applies the GTE predicate on the "headline" field.
func HeadlineHasPrefix ¶
HeadlineHasPrefix applies the HasPrefix predicate on the "headline" field.
func HeadlineHasSuffix ¶
HeadlineHasSuffix applies the HasSuffix predicate on the "headline" field.
func HeadlineIn ¶
HeadlineIn applies the In predicate on the "headline" field.
func HeadlineLT ¶
HeadlineLT applies the LT predicate on the "headline" field.
func HeadlineLTE ¶
HeadlineLTE applies the LTE predicate on the "headline" field.
func HeadlineNEQ ¶
HeadlineNEQ applies the NEQ predicate on the "headline" field.
func HeadlineNotIn ¶
HeadlineNotIn applies the NotIn predicate on the "headline" 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 Draft queries.
func ByDocField ¶
func ByDocField(field string, opts ...sql.OrderTermOption) OrderOption
ByDocField orders the results by doc field.
func ByHeadline ¶
func ByHeadline(opts ...sql.OrderTermOption) OrderOption
ByHeadline orders the results by the headline field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.