status

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the status type in the database.
	Label = "status"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldValue holds the string denoting the value field in the database.
	FieldValue = "value"
	// Table holds the table name of the status in the database.
	Table = "status"
)

Variables

Columns holds all SQL columns for status fields.

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

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

Functions

func And

func And(predicates ...predicate.Status) predicate.Status

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.Status

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Status

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Status

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Status

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Status

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Status

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Status

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Status

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

func NameContains

func NameContains(v string) predicate.Status

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

func NameContainsFold

func NameContainsFold(v string) predicate.Status

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

func NameEQ

func NameEQ(v string) predicate.Status

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

func NameEqualFold

func NameEqualFold(v string) predicate.Status

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

func NameGT

func NameGT(v string) predicate.Status

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

func NameGTE

func NameGTE(v string) predicate.Status

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Status

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Status

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Status

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

func NameLTE

func NameLTE(v string) predicate.Status

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

func NameNEQ

func NameNEQ(v string) predicate.Status

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

func NameNotIn

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

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.Status) predicate.Status

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).

func Value

func Value(v string) predicate.Status

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

func ValueContains

func ValueContains(v string) predicate.Status

ValueContains applies the Contains predicate on the "Value" field.

func ValueContainsFold

func ValueContainsFold(v string) predicate.Status

ValueContainsFold applies the ContainsFold predicate on the "Value" field.

func ValueEQ

func ValueEQ(v string) predicate.Status

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

func ValueEqualFold

func ValueEqualFold(v string) predicate.Status

ValueEqualFold applies the EqualFold predicate on the "Value" field.

func ValueGT

func ValueGT(v string) predicate.Status

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

func ValueGTE

func ValueGTE(v string) predicate.Status

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

func ValueHasPrefix

func ValueHasPrefix(v string) predicate.Status

ValueHasPrefix applies the HasPrefix predicate on the "Value" field.

func ValueHasSuffix

func ValueHasSuffix(v string) predicate.Status

ValueHasSuffix applies the HasSuffix predicate on the "Value" field.

func ValueIn

func ValueIn(vs ...string) predicate.Status

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

func ValueLT

func ValueLT(v string) predicate.Status

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

func ValueLTE

func ValueLTE(v string) predicate.Status

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

func ValueNEQ

func ValueNEQ(v string) predicate.Status

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

func ValueNotIn

func ValueNotIn(vs ...string) predicate.Status

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

Types

type OrderOption added in v0.14.0

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Status queries.

func ByID added in v0.14.0

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByName added in v0.14.0

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the Name field.

func ByValue added in v0.14.0

func ByValue(opts ...sql.OrderTermOption) OrderOption

ByValue orders the results by the Value field.

Jump to

Keyboard shortcuts

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