package
0.0.0-20240808151852-3363955b67b3
Repository: https://github.com/sethcurry/stax.git
Documentation: pkg.go.dev
# Functions
And groups predicates with the AND operator between them.
ByCardField orders the results by card field.
ByDate orders the results by the date field.
ByID orders the results by the id field.
ByText orders the results by the text field.
Date applies equality check predicate on the "date" field.
DateEQ applies the EQ predicate on the "date" field.
DateGT applies the GT predicate on the "date" field.
DateGTE applies the GTE predicate on the "date" field.
DateIn applies the In predicate on the "date" field.
DateLT applies the LT predicate on the "date" field.
DateLTE applies the LTE predicate on the "date" field.
DateNEQ applies the NEQ predicate on the "date" field.
DateNotIn applies the NotIn predicate on the "date" field.
HasCard applies the HasEdge predicate on the "card" edge.
HasCardWith applies the HasEdge predicate on the "card" edge with a given conditions (other predicates).
ID filters vertices based on their ID field.
IDEQ applies the EQ predicate on the ID field.
IDGT applies the GT predicate on the ID field.
IDGTE applies the GTE predicate on the ID field.
IDIn applies the In predicate on the ID field.
IDLT applies the LT predicate on the ID field.
IDLTE applies the LTE predicate on the ID field.
IDNEQ applies the NEQ predicate on the ID field.
IDNotIn applies the NotIn predicate on the ID field.
Not applies the not operator on the given predicate.
Or groups predicates with the OR operator between them.
Text applies equality check predicate on the "text" field.
TextContains applies the Contains predicate on the "text" field.
TextContainsFold applies the ContainsFold predicate on the "text" field.
TextEQ applies the EQ predicate on the "text" field.
TextEqualFold applies the EqualFold predicate on the "text" field.
TextGT applies the GT predicate on the "text" field.
TextGTE applies the GTE predicate on the "text" field.
TextHasPrefix applies the HasPrefix predicate on the "text" field.
TextHasSuffix applies the HasSuffix predicate on the "text" field.
TextIn applies the In predicate on the "text" field.
TextLT applies the LT predicate on the "text" field.
TextLTE applies the LTE predicate on the "text" field.
TextNEQ applies the NEQ predicate on the "text" field.
TextNotIn applies the NotIn predicate on the "text" field.
ValidColumn reports if the column name is valid (part of the table columns).
# Constants
CardColumn is the table column denoting the card relation/edge.
CardInverseTable is the table name for the Card entity.
CardTable is the table that holds the card relation/edge.
EdgeCard holds the string denoting the card edge name in mutations.
FieldDate holds the string denoting the date field in the database.
FieldID holds the string denoting the id field in the database.
FieldText holds the string denoting the text field in the database.
Label holds the string label denoting the ruling type in the database.
Table holds the table name of the ruling in the database.
# Variables
Columns holds all SQL columns for ruling fields.
ForeignKeys holds the SQL foreign-keys that are owned by the "rulings" table and are not defined as standalone fields in the schema.
TextValidator is a validator for the "text" field.
# Type aliases
OrderOption defines the ordering options for the Ruling queries.