openaitoken

package
v0.0.0-...-b336c4c Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the openaitoken type in the database.
	Label = "open_ai_token"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldIsActive holds the string denoting the is_active field in the database.
	FieldIsActive = "is_active"
	// Table holds the table name of the openaitoken in the database.
	Table = "open_ai_tokens"
)

Variables

View Source
var (
	// TokenValidator is a validator for the "token" field. It is called by the builders before save.
	TokenValidator func(string) error
	// DefaultIsActive holds the default value on creation for the "is_active" field.
	DefaultIsActive bool
)

Columns holds all SQL columns for openaitoken fields.

Functions

func And

func And(predicates ...predicate.OpenAIToken) predicate.OpenAIToken

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.OpenAIToken

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.OpenAIToken

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.OpenAIToken

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.OpenAIToken

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.OpenAIToken

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.OpenAIToken

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.OpenAIToken

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsActive

func IsActive(v bool) predicate.OpenAIToken

IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.

func IsActiveEQ

func IsActiveEQ(v bool) predicate.OpenAIToken

IsActiveEQ applies the EQ predicate on the "is_active" field.

func IsActiveNEQ

func IsActiveNEQ(v bool) predicate.OpenAIToken

IsActiveNEQ applies the NEQ predicate on the "is_active" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.OpenAIToken) predicate.OpenAIToken

Or groups predicates with the OR operator between them.

func Token

func Token(v string) predicate.OpenAIToken

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.OpenAIToken

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.OpenAIToken

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

func TokenEQ(v string) predicate.OpenAIToken

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.OpenAIToken

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

func TokenGT(v string) predicate.OpenAIToken

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

func TokenGTE(v string) predicate.OpenAIToken

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.OpenAIToken

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.OpenAIToken

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

func TokenIn(vs ...string) predicate.OpenAIToken

TokenIn applies the In predicate on the "token" field.

func TokenLT

func TokenLT(v string) predicate.OpenAIToken

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

func TokenLTE(v string) predicate.OpenAIToken

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

func TokenNEQ(v string) predicate.OpenAIToken

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

func TokenNotIn(vs ...string) predicate.OpenAIToken

TokenNotIn applies the NotIn predicate on the "token" 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 OpenAIToken queries.

func ByID

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

ByID orders the results by the id field.

func ByIsActive

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

ByIsActive orders the results by the is_active field.

func ByToken

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

ByToken orders the results by the token field.

Jump to

Keyboard shortcuts

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