Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OsnMap) predicate.OsnMap
- func HasMatches() predicate.OsnMap
- func HasMatchesWith(preds ...predicate.Match) predicate.OsnMap
- func ID(id int) predicate.OsnMap
- func IDEQ(id int) predicate.OsnMap
- func IDGT(id int) predicate.OsnMap
- func IDGTE(id int) predicate.OsnMap
- func IDIn(ids ...int) predicate.OsnMap
- func IDLT(id int) predicate.OsnMap
- func IDLTE(id int) predicate.OsnMap
- func IDNEQ(id int) predicate.OsnMap
- func IDNotIn(ids ...int) predicate.OsnMap
- func Name(v string) predicate.OsnMap
- func NameContains(v string) predicate.OsnMap
- func NameContainsFold(v string) predicate.OsnMap
- func NameEQ(v string) predicate.OsnMap
- func NameEqualFold(v string) predicate.OsnMap
- func NameGT(v string) predicate.OsnMap
- func NameGTE(v string) predicate.OsnMap
- func NameHasPrefix(v string) predicate.OsnMap
- func NameHasSuffix(v string) predicate.OsnMap
- func NameIn(vs ...string) predicate.OsnMap
- func NameLT(v string) predicate.OsnMap
- func NameLTE(v string) predicate.OsnMap
- func NameNEQ(v string) predicate.OsnMap
- func NameNotIn(vs ...string) predicate.OsnMap
- func Not(p predicate.OsnMap) predicate.OsnMap
- func Or(predicates ...predicate.OsnMap) predicate.OsnMap
- func RoleCount(v int) predicate.OsnMap
- func RoleCountEQ(v int) predicate.OsnMap
- func RoleCountGT(v int) predicate.OsnMap
- func RoleCountGTE(v int) predicate.OsnMap
- func RoleCountIn(vs ...int) predicate.OsnMap
- func RoleCountLT(v int) predicate.OsnMap
- func RoleCountLTE(v int) predicate.OsnMap
- func RoleCountNEQ(v int) predicate.OsnMap
- func RoleCountNotIn(vs ...int) predicate.OsnMap
- func Shortname(v string) predicate.OsnMap
- func ShortnameContains(v string) predicate.OsnMap
- func ShortnameContainsFold(v string) predicate.OsnMap
- func ShortnameEQ(v string) predicate.OsnMap
- func ShortnameEqualFold(v string) predicate.OsnMap
- func ShortnameGT(v string) predicate.OsnMap
- func ShortnameGTE(v string) predicate.OsnMap
- func ShortnameHasPrefix(v string) predicate.OsnMap
- func ShortnameHasSuffix(v string) predicate.OsnMap
- func ShortnameIn(vs ...string) predicate.OsnMap
- func ShortnameLT(v string) predicate.OsnMap
- func ShortnameLTE(v string) predicate.OsnMap
- func ShortnameNEQ(v string) predicate.OsnMap
- func ShortnameNotIn(vs ...string) predicate.OsnMap
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMatches(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMatchesCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByRoleCount(opts ...sql.OrderTermOption) OrderOption
- func ByShortname(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var Columns = []string{ FieldID, FieldName, FieldShortname, FieldRoleCount, }
Columns holds all SQL columns for osnmap fields.
var ( // RoleCountValidator is a validator for the "role_count" field. It is called by the builders before save. RoleCountValidator func(int) error )
Functions ¶
func HasMatches ¶
HasMatches applies the HasEdge predicate on the "matches" edge.
func HasMatchesWith ¶
HasMatchesWith applies the HasEdge predicate on the "matches" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func RoleCount ¶
RoleCount applies equality check predicate on the "role_count" field. It's identical to RoleCountEQ.
func RoleCountEQ ¶
RoleCountEQ applies the EQ predicate on the "role_count" field.
func RoleCountGT ¶
RoleCountGT applies the GT predicate on the "role_count" field.
func RoleCountGTE ¶
RoleCountGTE applies the GTE predicate on the "role_count" field.
func RoleCountIn ¶
RoleCountIn applies the In predicate on the "role_count" field.
func RoleCountLT ¶
RoleCountLT applies the LT predicate on the "role_count" field.
func RoleCountLTE ¶
RoleCountLTE applies the LTE predicate on the "role_count" field.
func RoleCountNEQ ¶
RoleCountNEQ applies the NEQ predicate on the "role_count" field.
func RoleCountNotIn ¶
RoleCountNotIn applies the NotIn predicate on the "role_count" field.
func Shortname ¶
Shortname applies equality check predicate on the "shortname" field. It's identical to ShortnameEQ.
func ShortnameContains ¶
ShortnameContains applies the Contains predicate on the "shortname" field.
func ShortnameContainsFold ¶
ShortnameContainsFold applies the ContainsFold predicate on the "shortname" field.
func ShortnameEQ ¶
ShortnameEQ applies the EQ predicate on the "shortname" field.
func ShortnameEqualFold ¶
ShortnameEqualFold applies the EqualFold predicate on the "shortname" field.
func ShortnameGT ¶
ShortnameGT applies the GT predicate on the "shortname" field.
func ShortnameGTE ¶
ShortnameGTE applies the GTE predicate on the "shortname" field.
func ShortnameHasPrefix ¶
ShortnameHasPrefix applies the HasPrefix predicate on the "shortname" field.
func ShortnameHasSuffix ¶
ShortnameHasSuffix applies the HasSuffix predicate on the "shortname" field.
func ShortnameIn ¶
ShortnameIn applies the In predicate on the "shortname" field.
func ShortnameLT ¶
ShortnameLT applies the LT predicate on the "shortname" field.
func ShortnameLTE ¶
ShortnameLTE applies the LTE predicate on the "shortname" field.
func ShortnameNEQ ¶
ShortnameNEQ applies the NEQ predicate on the "shortname" field.
func ShortnameNotIn ¶
ShortnameNotIn applies the NotIn predicate on the "shortname" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.