bundle

package
v0.0.0-...-8c11f49 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the bundle type in the database.
	Label = "bundle"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserid holds the string denoting the userid field in the database.
	FieldUserid = "userid"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldData holds the string denoting the data field in the database.
	FieldData = "data"
	// Table holds the table name of the bundle in the database.
	Table = "bundles"
)

Variables

Columns holds all SQL columns for bundle fields.

Functions

func And

func And(predicates ...predicate.Bundle) predicate.Bundle

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.Bundle

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Bundle

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Bundle

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Bundle

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Bundle

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Bundle

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Bundle

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Key

func Key(v string) predicate.Bundle

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.Bundle

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.Bundle

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.Bundle

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.Bundle

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.Bundle

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.Bundle

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.Bundle

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.Bundle

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.Bundle

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.Bundle

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.Bundle

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.Bundle

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.Bundle

KeyNotIn applies the NotIn predicate on the "key" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Bundle) predicate.Bundle

Or groups predicates with the OR operator between them.

func Userid

func Userid(v int64) predicate.Bundle

Userid applies equality check predicate on the "userid" field. It's identical to UseridEQ.

func UseridEQ

func UseridEQ(v int64) predicate.Bundle

UseridEQ applies the EQ predicate on the "userid" field.

func UseridGT

func UseridGT(v int64) predicate.Bundle

UseridGT applies the GT predicate on the "userid" field.

func UseridGTE

func UseridGTE(v int64) predicate.Bundle

UseridGTE applies the GTE predicate on the "userid" field.

func UseridIn

func UseridIn(vs ...int64) predicate.Bundle

UseridIn applies the In predicate on the "userid" field.

func UseridLT

func UseridLT(v int64) predicate.Bundle

UseridLT applies the LT predicate on the "userid" field.

func UseridLTE

func UseridLTE(v int64) predicate.Bundle

UseridLTE applies the LTE predicate on the "userid" field.

func UseridNEQ

func UseridNEQ(v int64) predicate.Bundle

UseridNEQ applies the NEQ predicate on the "userid" field.

func UseridNotIn

func UseridNotIn(vs ...int64) predicate.Bundle

UseridNotIn applies the NotIn predicate on the "userid" 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 Bundle queries.

func ByID

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

ByID orders the results by the id field.

func ByKey

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

ByKey orders the results by the key field.

func ByUserid

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

ByUserid orders the results by the userid field.

Jump to

Keyboard shortcuts

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