short

package
v0.0.0-...-444ad2e Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the short type in the database.
	Label = "short"
	// FieldID holds the string denoting the id field in the database.
	FieldID    = "id"  // FieldKey holds the string denoting the key vertex property in the database.
	FieldKey   = "key" // FieldValue holds the string denoting the value vertex property in the database.
	FieldValue = "value"

	// Table holds the table name of the short in the database.
	Table = "shorts"
)

Variables

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

Columns holds all SQL columns for short fields.

View Source
var (
	// KeyValidator is a validator for the "key" field. It is called by the builders before save.
	KeyValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.Short) predicate.Short

And groups list of predicates with the AND operator between them.

func ID

func ID(id int) predicate.Short

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Short

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Short

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Short

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Short

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Short

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Short

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Key

func Key(v string) predicate.Short

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.Short

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.Short

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.Short

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.Short

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.Short

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.Short

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.Short

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.Short

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.Short

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.Short

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.Short

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.Short

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.Short

KeyNotIn applies the NotIn predicate on the "key" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Short) predicate.Short

Or groups list of predicates with the OR operator between them.

func Value

func Value(v uuid.UUID) predicate.Short

Value applies equality check predicate on the "value" field. It's identical to ValueEQ.

func ValueEQ

func ValueEQ(v uuid.UUID) predicate.Short

ValueEQ applies the EQ predicate on the "value" field.

func ValueGT

func ValueGT(v uuid.UUID) predicate.Short

ValueGT applies the GT predicate on the "value" field.

func ValueGTE

func ValueGTE(v uuid.UUID) predicate.Short

ValueGTE applies the GTE predicate on the "value" field.

func ValueIn

func ValueIn(vs ...uuid.UUID) predicate.Short

ValueIn applies the In predicate on the "value" field.

func ValueLT

func ValueLT(v uuid.UUID) predicate.Short

ValueLT applies the LT predicate on the "value" field.

func ValueLTE

func ValueLTE(v uuid.UUID) predicate.Short

ValueLTE applies the LTE predicate on the "value" field.

func ValueNEQ

func ValueNEQ(v uuid.UUID) predicate.Short

ValueNEQ applies the NEQ predicate on the "value" field.

func ValueNotIn

func ValueNotIn(vs ...uuid.UUID) predicate.Short

ValueNotIn applies the NotIn predicate on the "value" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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