pet

package
v0.0.0-...-6a64a6b Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

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

Variables

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

Columns holds all SQL columns for pet fields.

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

Functions

func And

func And(predicates ...predicate.Pet) predicate.Pet

And groups predicates with the AND operator between them.

func ID

func ID(id string) predicate.Pet

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Pet

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Pet

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Pet

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Pet

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Pet

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Pet

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Pet

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Pet

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Pet

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Pet

IDNotIn applies the NotIn predicate on the ID field.

func Not

func Not(p predicate.Pet) predicate.Pet

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Pet) predicate.Pet

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Pet queries.

func ByID

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

ByID orders the results by the id field.

Jump to

Keyboard shortcuts

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