Documentation
¶
Index ¶
- Constants
- Variables
- func AbbrEQ(v Abbr) predicate.Alignment
- func AbbrIn(vs ...Abbr) predicate.Alignment
- func AbbrNEQ(v Abbr) predicate.Alignment
- func AbbrNotIn(vs ...Abbr) predicate.Alignment
- func AbbrValidator(a Abbr) error
- func And(predicates ...predicate.Alignment) predicate.Alignment
- func DescIsNil() predicate.Alignment
- func DescNotNil() predicate.Alignment
- func ID(id int) predicate.Alignment
- func IDEQ(id int) predicate.Alignment
- func IDGT(id int) predicate.Alignment
- func IDGTE(id int) predicate.Alignment
- func IDIn(ids ...int) predicate.Alignment
- func IDLT(id int) predicate.Alignment
- func IDLTE(id int) predicate.Alignment
- func IDNEQ(id int) predicate.Alignment
- func IDNotIn(ids ...int) predicate.Alignment
- func Indx(v string) predicate.Alignment
- func IndxContains(v string) predicate.Alignment
- func IndxContainsFold(v string) predicate.Alignment
- func IndxEQ(v string) predicate.Alignment
- func IndxEqualFold(v string) predicate.Alignment
- func IndxGT(v string) predicate.Alignment
- func IndxGTE(v string) predicate.Alignment
- func IndxHasPrefix(v string) predicate.Alignment
- func IndxHasSuffix(v string) predicate.Alignment
- func IndxIn(vs ...string) predicate.Alignment
- func IndxLT(v string) predicate.Alignment
- func IndxLTE(v string) predicate.Alignment
- func IndxNEQ(v string) predicate.Alignment
- func IndxNotIn(vs ...string) predicate.Alignment
- func Name(v string) predicate.Alignment
- func NameContains(v string) predicate.Alignment
- func NameContainsFold(v string) predicate.Alignment
- func NameEQ(v string) predicate.Alignment
- func NameEqualFold(v string) predicate.Alignment
- func NameGT(v string) predicate.Alignment
- func NameGTE(v string) predicate.Alignment
- func NameHasPrefix(v string) predicate.Alignment
- func NameHasSuffix(v string) predicate.Alignment
- func NameIn(vs ...string) predicate.Alignment
- func NameLT(v string) predicate.Alignment
- func NameLTE(v string) predicate.Alignment
- func NameNEQ(v string) predicate.Alignment
- func NameNotIn(vs ...string) predicate.Alignment
- func Not(p predicate.Alignment) predicate.Alignment
- func Or(predicates ...predicate.Alignment) predicate.Alignment
- func ValidColumn(column string) bool
- type Abbr
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the alignment type in the database. Label = "alignment" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldIndx holds the string denoting the indx field in the database. FieldIndx = "indx" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // FieldAbbr holds the string denoting the abbr field in the database. FieldAbbr = "abbr" // Table holds the table name of the alignment in the database. Table = "alignments" )
Variables ¶
var ( // IndxValidator is a validator for the "indx" field. It is called by the builders before save. IndxValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
Columns holds all SQL columns for alignment fields.
Functions ¶
func AbbrValidator ¶
AbbrValidator is a validator for the "abbr" field enum values. It is called by the builders before save.
func DescNotNil ¶
DescNotNil applies the NotNil predicate on the "desc" field.
func IndxContains ¶
IndxContains applies the Contains predicate on the "indx" field.
func IndxContainsFold ¶
IndxContainsFold applies the ContainsFold predicate on the "indx" field.
func IndxEqualFold ¶
IndxEqualFold applies the EqualFold predicate on the "indx" field.
func IndxHasPrefix ¶
IndxHasPrefix applies the HasPrefix predicate on the "indx" field.
func IndxHasSuffix ¶
IndxHasSuffix applies the HasSuffix predicate on the "indx" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Abbr ¶
type Abbr string
Abbr defines the type for the "abbr" enum field.
const ( AbbrLG Abbr = "LG" AbbrNG Abbr = "NG" AbbrCG Abbr = "CG" AbbrLN Abbr = "LN" AbbrN Abbr = "N" AbbrCN Abbr = "CN" AbbrLE Abbr = "LE" AbbrNE Abbr = "NE" AbbrCE Abbr = "CE" )
Abbr values.
func (Abbr) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Abbr) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.
type OrderOption ¶
OrderOption defines the ordering options for the Alignment queries.
func ByAbbr ¶
func ByAbbr(opts ...sql.OrderTermOption) OrderOption
ByAbbr orders the results by the abbr field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIndx ¶
func ByIndx(opts ...sql.OrderTermOption) OrderOption
ByIndx orders the results by the indx field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.