keycapmodel

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the keycapmodel type in the database.
	Label = "keycap_model"
	// 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"
	// FieldProfile holds the string denoting the profile field in the database.
	FieldProfile = "profile"
	// FieldMaterial holds the string denoting the material field in the database.
	FieldMaterial = "material"
	// Table holds the table name of the keycapmodel in the database.
	Table = "keycap_models"
)

Variables

Columns holds all SQL columns for keycapmodel fields.

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

Functions

func And

func And(predicates ...predicate.KeycapModel) predicate.KeycapModel

And groups predicates with the AND operator between them.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.KeycapModel

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.KeycapModel

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.KeycapModel

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.KeycapModel

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.KeycapModel

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.KeycapModel

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.KeycapModel

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.KeycapModel

IDNotIn applies the NotIn predicate on the ID field.

func MaterialEQ

func MaterialEQ(v Material) predicate.KeycapModel

MaterialEQ applies the EQ predicate on the "material" field.

func MaterialIn

func MaterialIn(vs ...Material) predicate.KeycapModel

MaterialIn applies the In predicate on the "material" field.

func MaterialNEQ

func MaterialNEQ(v Material) predicate.KeycapModel

MaterialNEQ applies the NEQ predicate on the "material" field.

func MaterialNotIn

func MaterialNotIn(vs ...Material) predicate.KeycapModel

MaterialNotIn applies the NotIn predicate on the "material" field.

func MaterialValidator

func MaterialValidator(m Material) error

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

func Name

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

func NameContains

func NameContains(v string) predicate.KeycapModel

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

func NameContainsFold

func NameContainsFold(v string) predicate.KeycapModel

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

func NameEQ

func NameEQ(v string) predicate.KeycapModel

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

func NameEqualFold

func NameEqualFold(v string) predicate.KeycapModel

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

func NameGT

func NameGT(v string) predicate.KeycapModel

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

func NameGTE

func NameGTE(v string) predicate.KeycapModel

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.KeycapModel

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.KeycapModel

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.KeycapModel

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

func NameLTE

func NameLTE(v string) predicate.KeycapModel

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

func NameNEQ

func NameNEQ(v string) predicate.KeycapModel

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func Profile

func Profile(v string) predicate.KeycapModel

Profile applies equality check predicate on the "profile" field. It's identical to ProfileEQ.

func ProfileContains

func ProfileContains(v string) predicate.KeycapModel

ProfileContains applies the Contains predicate on the "profile" field.

func ProfileContainsFold

func ProfileContainsFold(v string) predicate.KeycapModel

ProfileContainsFold applies the ContainsFold predicate on the "profile" field.

func ProfileEQ

func ProfileEQ(v string) predicate.KeycapModel

ProfileEQ applies the EQ predicate on the "profile" field.

func ProfileEqualFold

func ProfileEqualFold(v string) predicate.KeycapModel

ProfileEqualFold applies the EqualFold predicate on the "profile" field.

func ProfileGT

func ProfileGT(v string) predicate.KeycapModel

ProfileGT applies the GT predicate on the "profile" field.

func ProfileGTE

func ProfileGTE(v string) predicate.KeycapModel

ProfileGTE applies the GTE predicate on the "profile" field.

func ProfileHasPrefix

func ProfileHasPrefix(v string) predicate.KeycapModel

ProfileHasPrefix applies the HasPrefix predicate on the "profile" field.

func ProfileHasSuffix

func ProfileHasSuffix(v string) predicate.KeycapModel

ProfileHasSuffix applies the HasSuffix predicate on the "profile" field.

func ProfileIn

func ProfileIn(vs ...string) predicate.KeycapModel

ProfileIn applies the In predicate on the "profile" field.

func ProfileLT

func ProfileLT(v string) predicate.KeycapModel

ProfileLT applies the LT predicate on the "profile" field.

func ProfileLTE

func ProfileLTE(v string) predicate.KeycapModel

ProfileLTE applies the LTE predicate on the "profile" field.

func ProfileNEQ

func ProfileNEQ(v string) predicate.KeycapModel

ProfileNEQ applies the NEQ predicate on the "profile" field.

func ProfileNotIn

func ProfileNotIn(vs ...string) predicate.KeycapModel

ProfileNotIn applies the NotIn predicate on the "profile" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Material

type Material string

Material defines the type for the "material" enum field.

const (
	MaterialABS Material = "ABS"
	MaterialPBT Material = "PBT"
)

Material values.

func (Material) String

func (m Material) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the KeycapModel queries.

func ByID

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

ByID orders the results by the id field.

func ByMaterial

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

ByMaterial orders the results by the material field.

func ByName

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

ByName orders the results by the name field.

func ByProfile

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

ByProfile orders the results by the profile field.

Jump to

Keyboard shortcuts

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