osnmap

package
v0.0.0-...-a77d1df Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the osnmap type in the database.
	Label = "osn_map"
	// 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"
	// FieldShortname holds the string denoting the shortname field in the database.
	FieldShortname = "shortname"
	// FieldRoleCount holds the string denoting the role_count field in the database.
	FieldRoleCount = "role_count"
	// EdgeMatches holds the string denoting the matches edge name in mutations.
	EdgeMatches = "matches"
	// Table holds the table name of the osnmap in the database.
	Table = "osn_maps"
	// MatchesTable is the table that holds the matches relation/edge.
	MatchesTable = "matches"
	// MatchesInverseTable is the table name for the Match entity.
	// It exists in this package in order to avoid circular dependency with the "match" package.
	MatchesInverseTable = "matches"
	// MatchesColumn is the table column denoting the matches relation/edge.
	MatchesColumn = "osn_map_matches"
)

Variables

Columns holds all SQL columns for osnmap fields.

View Source
var (
	// RoleCountValidator is a validator for the "role_count" field. It is called by the builders before save.
	RoleCountValidator func(int) error
)

Functions

func And

func And(predicates ...predicate.OsnMap) predicate.OsnMap

And groups predicates with the AND operator between them.

func HasMatches

func HasMatches() predicate.OsnMap

HasMatches applies the HasEdge predicate on the "matches" edge.

func HasMatchesWith

func HasMatchesWith(preds ...predicate.Match) predicate.OsnMap

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

func ID

func ID(id int) predicate.OsnMap

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.OsnMap

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.OsnMap

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.OsnMap

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.OsnMap

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.OsnMap

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.OsnMap

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.OsnMap

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

func NameContains

func NameContains(v string) predicate.OsnMap

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

func NameContainsFold

func NameContainsFold(v string) predicate.OsnMap

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

func NameEQ

func NameEQ(v string) predicate.OsnMap

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

func NameEqualFold

func NameEqualFold(v string) predicate.OsnMap

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

func NameGT

func NameGT(v string) predicate.OsnMap

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

func NameGTE

func NameGTE(v string) predicate.OsnMap

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.OsnMap

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.OsnMap

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.OsnMap

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

func NameLTE

func NameLTE(v string) predicate.OsnMap

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

func NameNEQ

func NameNEQ(v string) predicate.OsnMap

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func RoleCount

func RoleCount(v int) predicate.OsnMap

RoleCount applies equality check predicate on the "role_count" field. It's identical to RoleCountEQ.

func RoleCountEQ

func RoleCountEQ(v int) predicate.OsnMap

RoleCountEQ applies the EQ predicate on the "role_count" field.

func RoleCountGT

func RoleCountGT(v int) predicate.OsnMap

RoleCountGT applies the GT predicate on the "role_count" field.

func RoleCountGTE

func RoleCountGTE(v int) predicate.OsnMap

RoleCountGTE applies the GTE predicate on the "role_count" field.

func RoleCountIn

func RoleCountIn(vs ...int) predicate.OsnMap

RoleCountIn applies the In predicate on the "role_count" field.

func RoleCountLT

func RoleCountLT(v int) predicate.OsnMap

RoleCountLT applies the LT predicate on the "role_count" field.

func RoleCountLTE

func RoleCountLTE(v int) predicate.OsnMap

RoleCountLTE applies the LTE predicate on the "role_count" field.

func RoleCountNEQ

func RoleCountNEQ(v int) predicate.OsnMap

RoleCountNEQ applies the NEQ predicate on the "role_count" field.

func RoleCountNotIn

func RoleCountNotIn(vs ...int) predicate.OsnMap

RoleCountNotIn applies the NotIn predicate on the "role_count" field.

func Shortname

func Shortname(v string) predicate.OsnMap

Shortname applies equality check predicate on the "shortname" field. It's identical to ShortnameEQ.

func ShortnameContains

func ShortnameContains(v string) predicate.OsnMap

ShortnameContains applies the Contains predicate on the "shortname" field.

func ShortnameContainsFold

func ShortnameContainsFold(v string) predicate.OsnMap

ShortnameContainsFold applies the ContainsFold predicate on the "shortname" field.

func ShortnameEQ

func ShortnameEQ(v string) predicate.OsnMap

ShortnameEQ applies the EQ predicate on the "shortname" field.

func ShortnameEqualFold

func ShortnameEqualFold(v string) predicate.OsnMap

ShortnameEqualFold applies the EqualFold predicate on the "shortname" field.

func ShortnameGT

func ShortnameGT(v string) predicate.OsnMap

ShortnameGT applies the GT predicate on the "shortname" field.

func ShortnameGTE

func ShortnameGTE(v string) predicate.OsnMap

ShortnameGTE applies the GTE predicate on the "shortname" field.

func ShortnameHasPrefix

func ShortnameHasPrefix(v string) predicate.OsnMap

ShortnameHasPrefix applies the HasPrefix predicate on the "shortname" field.

func ShortnameHasSuffix

func ShortnameHasSuffix(v string) predicate.OsnMap

ShortnameHasSuffix applies the HasSuffix predicate on the "shortname" field.

func ShortnameIn

func ShortnameIn(vs ...string) predicate.OsnMap

ShortnameIn applies the In predicate on the "shortname" field.

func ShortnameLT

func ShortnameLT(v string) predicate.OsnMap

ShortnameLT applies the LT predicate on the "shortname" field.

func ShortnameLTE

func ShortnameLTE(v string) predicate.OsnMap

ShortnameLTE applies the LTE predicate on the "shortname" field.

func ShortnameNEQ

func ShortnameNEQ(v string) predicate.OsnMap

ShortnameNEQ applies the NEQ predicate on the "shortname" field.

func ShortnameNotIn

func ShortnameNotIn(vs ...string) predicate.OsnMap

ShortnameNotIn applies the NotIn predicate on the "shortname" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the OsnMap queries.

func ByID

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

ByID orders the results by the id field.

func ByMatches

func ByMatches(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByMatches orders the results by matches terms.

func ByMatchesCount

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

ByMatchesCount orders the results by matches count.

func ByName

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

ByName orders the results by the name field.

func ByRoleCount

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

ByRoleCount orders the results by the role_count field.

func ByShortname

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

ByShortname orders the results by the shortname field.

Jump to

Keyboard shortcuts

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