incomebracket

package
v0.0.0-...-c419b53 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the incomebracket type in the database.
	Label = "income_bracket"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldClass holds the string denoting the class field in the database.
	FieldClass = "class"
	// EdgePerson holds the string denoting the person edge name in mutations.
	EdgePerson = "person"
	// Table holds the table name of the incomebracket in the database.
	Table = "income_brackets"
	// PersonTable is the table that holds the person relation/edge.
	PersonTable = "income_brackets"
	// PersonInverseTable is the table name for the Individual entity.
	// It exists in this package in order to avoid circular dependency with the "individual" package.
	PersonInverseTable = "individuals"
	// PersonColumn is the table column denoting the person relation/edge.
	PersonColumn = "individual_bracket"
)
View Source
const DefaultClass = ClassLte50K

ClassLte50K is the default value of the Class enum.

Variables

View Source
var Columns = []string{
	FieldID,
	FieldClass,
}

Columns holds all SQL columns for incomebracket fields.

View Source
var ForeignKeys = []string{
	"individual_bracket",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "income_brackets" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func ClassEQ

func ClassEQ(v Class) predicate.IncomeBracket

ClassEQ applies the EQ predicate on the "class" field.

func ClassIn

func ClassIn(vs ...Class) predicate.IncomeBracket

ClassIn applies the In predicate on the "class" field.

func ClassNEQ

func ClassNEQ(v Class) predicate.IncomeBracket

ClassNEQ applies the NEQ predicate on the "class" field.

func ClassNotIn

func ClassNotIn(vs ...Class) predicate.IncomeBracket

ClassNotIn applies the NotIn predicate on the "class" field.

func ClassValidator

func ClassValidator(c Class) error

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

func HasPerson

func HasPerson() predicate.IncomeBracket

HasPerson applies the HasEdge predicate on the "person" edge.

func HasPersonWith

func HasPersonWith(preds ...predicate.Individual) predicate.IncomeBracket

HasPersonWith applies the HasEdge predicate on the "person" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.IncomeBracket

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.IncomeBracket

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.IncomeBracket

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.IncomeBracket

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.IncomeBracket

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.IncomeBracket

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

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 Class

type Class string

Class defines the type for the "class" enum field.

const (
	ClassLte50K Class = "lte_50K"
	ClassGt50K  Class = "gt_50K"
)

Class values.

func (Class) String

func (c Class) String() string

Jump to

Keyboard shortcuts

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