alignment

package
v0.0.0-...-67bf1eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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 AbbrEQ

func AbbrEQ(v Abbr) predicate.Alignment

AbbrEQ applies the EQ predicate on the "abbr" field.

func AbbrIn

func AbbrIn(vs ...Abbr) predicate.Alignment

AbbrIn applies the In predicate on the "abbr" field.

func AbbrNEQ

func AbbrNEQ(v Abbr) predicate.Alignment

AbbrNEQ applies the NEQ predicate on the "abbr" field.

func AbbrNotIn

func AbbrNotIn(vs ...Abbr) predicate.Alignment

AbbrNotIn applies the NotIn predicate on the "abbr" field.

func AbbrValidator

func AbbrValidator(a Abbr) error

AbbrValidator is a validator for the "abbr" field enum values. It is called by the builders before save.

func And

func And(predicates ...predicate.Alignment) predicate.Alignment

And groups predicates with the AND operator between them.

func DescIsNil

func DescIsNil() predicate.Alignment

DescIsNil applies the IsNil predicate on the "desc" field.

func DescNotNil

func DescNotNil() predicate.Alignment

DescNotNil applies the NotNil predicate on the "desc" field.

func ID

func ID(id int) predicate.Alignment

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Alignment

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Alignment

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Alignment

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Alignment

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Alignment

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Alignment

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Alignment

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Alignment

IDNotIn applies the NotIn predicate on the ID field.

func Indx

func Indx(v string) predicate.Alignment

Indx applies equality check predicate on the "indx" field. It's identical to IndxEQ.

func IndxContains

func IndxContains(v string) predicate.Alignment

IndxContains applies the Contains predicate on the "indx" field.

func IndxContainsFold

func IndxContainsFold(v string) predicate.Alignment

IndxContainsFold applies the ContainsFold predicate on the "indx" field.

func IndxEQ

func IndxEQ(v string) predicate.Alignment

IndxEQ applies the EQ predicate on the "indx" field.

func IndxEqualFold

func IndxEqualFold(v string) predicate.Alignment

IndxEqualFold applies the EqualFold predicate on the "indx" field.

func IndxGT

func IndxGT(v string) predicate.Alignment

IndxGT applies the GT predicate on the "indx" field.

func IndxGTE

func IndxGTE(v string) predicate.Alignment

IndxGTE applies the GTE predicate on the "indx" field.

func IndxHasPrefix

func IndxHasPrefix(v string) predicate.Alignment

IndxHasPrefix applies the HasPrefix predicate on the "indx" field.

func IndxHasSuffix

func IndxHasSuffix(v string) predicate.Alignment

IndxHasSuffix applies the HasSuffix predicate on the "indx" field.

func IndxIn

func IndxIn(vs ...string) predicate.Alignment

IndxIn applies the In predicate on the "indx" field.

func IndxLT

func IndxLT(v string) predicate.Alignment

IndxLT applies the LT predicate on the "indx" field.

func IndxLTE

func IndxLTE(v string) predicate.Alignment

IndxLTE applies the LTE predicate on the "indx" field.

func IndxNEQ

func IndxNEQ(v string) predicate.Alignment

IndxNEQ applies the NEQ predicate on the "indx" field.

func IndxNotIn

func IndxNotIn(vs ...string) predicate.Alignment

IndxNotIn applies the NotIn predicate on the "indx" field.

func Name

func Name(v string) predicate.Alignment

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Alignment

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Alignment

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Alignment

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Alignment

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Alignment

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Alignment

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Alignment

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Alignment

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Alignment

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Alignment

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Alignment

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Alignment

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Alignment

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Alignment) predicate.Alignment

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

func (e Abbr) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Abbr) String

func (a Abbr) String() string

func (*Abbr) UnmarshalGQL

func (e *Abbr) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL