multiwordschema

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the multiwordschema type in the database.
	Label = "multi_word_schema"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUnit holds the string denoting the unit field in the database.
	FieldUnit = "unit"
	// Table holds the table name of the multiwordschema in the database.
	Table = "multi_word_schemas"
)
View Source
const DefaultUnit = UnitM

UnitM is the default value of the Unit enum.

Variables

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

Columns holds all SQL columns for multiwordschema fields.

Functions

func And

And groups predicates with the AND operator between them.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.MultiWordSchema

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.MultiWordSchema

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.MultiWordSchema

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.MultiWordSchema

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.MultiWordSchema

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.MultiWordSchema

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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 UnitEQ

func UnitEQ(v Unit) predicate.MultiWordSchema

UnitEQ applies the EQ predicate on the "unit" field.

func UnitIn

func UnitIn(vs ...Unit) predicate.MultiWordSchema

UnitIn applies the In predicate on the "unit" field.

func UnitNEQ

func UnitNEQ(v Unit) predicate.MultiWordSchema

UnitNEQ applies the NEQ predicate on the "unit" field.

func UnitNotIn

func UnitNotIn(vs ...Unit) predicate.MultiWordSchema

UnitNotIn applies the NotIn predicate on the "unit" field.

func UnitValidator

func UnitValidator(u Unit) error

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

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type Unit

type Unit string

Unit defines the type for the "unit" enum field.

const (
	UnitM  Unit = "m"
	UnitFt Unit = "ft"
)

Unit values.

func (Unit) String

func (u Unit) String() string

Jump to

Keyboard shortcuts

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