provider

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the provider type in the database.
	Label = "provider"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldBaseURL holds the string denoting the base_url field in the database.
	FieldBaseURL = "base_url"
	// FieldEnabled holds the string denoting the enabled field in the database.
	FieldEnabled = "enabled"
	// EdgeModels holds the string denoting the models edge name in mutations.
	EdgeModels = "models"
	// Table holds the table name of the provider in the database.
	Table = "providers"
	// ModelsTable is the table that holds the models relation/edge.
	ModelsTable = "models"
	// ModelsInverseTable is the table name for the Model entity.
	// It exists in this package in order to avoid circular dependency with the "model" package.
	ModelsInverseTable = "models"
	// ModelsColumn is the table column denoting the models relation/edge.
	ModelsColumn = "provider_models"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultEnabled holds the default value on creation for the "enabled" field.
	DefaultEnabled bool
)

Columns holds all SQL columns for provider fields.

Functions

func And

func And(predicates ...predicate.Provider) predicate.Provider

And groups predicates with the AND operator between them.

func BaseURL

func BaseURL(v string) predicate.Provider

BaseURL applies equality check predicate on the "base_url" field. It's identical to BaseURLEQ.

func BaseURLContains

func BaseURLContains(v string) predicate.Provider

BaseURLContains applies the Contains predicate on the "base_url" field.

func BaseURLContainsFold

func BaseURLContainsFold(v string) predicate.Provider

BaseURLContainsFold applies the ContainsFold predicate on the "base_url" field.

func BaseURLEQ

func BaseURLEQ(v string) predicate.Provider

BaseURLEQ applies the EQ predicate on the "base_url" field.

func BaseURLEqualFold

func BaseURLEqualFold(v string) predicate.Provider

BaseURLEqualFold applies the EqualFold predicate on the "base_url" field.

func BaseURLGT

func BaseURLGT(v string) predicate.Provider

BaseURLGT applies the GT predicate on the "base_url" field.

func BaseURLGTE

func BaseURLGTE(v string) predicate.Provider

BaseURLGTE applies the GTE predicate on the "base_url" field.

func BaseURLHasPrefix

func BaseURLHasPrefix(v string) predicate.Provider

BaseURLHasPrefix applies the HasPrefix predicate on the "base_url" field.

func BaseURLHasSuffix

func BaseURLHasSuffix(v string) predicate.Provider

BaseURLHasSuffix applies the HasSuffix predicate on the "base_url" field.

func BaseURLIn

func BaseURLIn(vs ...string) predicate.Provider

BaseURLIn applies the In predicate on the "base_url" field.

func BaseURLIsNil

func BaseURLIsNil() predicate.Provider

BaseURLIsNil applies the IsNil predicate on the "base_url" field.

func BaseURLLT

func BaseURLLT(v string) predicate.Provider

BaseURLLT applies the LT predicate on the "base_url" field.

func BaseURLLTE

func BaseURLLTE(v string) predicate.Provider

BaseURLLTE applies the LTE predicate on the "base_url" field.

func BaseURLNEQ

func BaseURLNEQ(v string) predicate.Provider

BaseURLNEQ applies the NEQ predicate on the "base_url" field.

func BaseURLNotIn

func BaseURLNotIn(vs ...string) predicate.Provider

BaseURLNotIn applies the NotIn predicate on the "base_url" field.

func BaseURLNotNil

func BaseURLNotNil() predicate.Provider

BaseURLNotNil applies the NotNil predicate on the "base_url" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Provider

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Provider

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Provider

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Provider

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Provider

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Provider

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Provider

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Provider

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Provider

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Provider

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Provider

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func Enabled added in v0.4.1

func Enabled(v bool) predicate.Provider

Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.

func EnabledEQ added in v0.4.1

func EnabledEQ(v bool) predicate.Provider

EnabledEQ applies the EQ predicate on the "enabled" field.

func EnabledNEQ added in v0.4.1

func EnabledNEQ(v bool) predicate.Provider

EnabledNEQ applies the NEQ predicate on the "enabled" field.

func HasModels

func HasModels() predicate.Provider

HasModels applies the HasEdge predicate on the "models" edge.

func HasModelsWith

func HasModelsWith(preds ...predicate.Model) predicate.Provider

HasModelsWith applies the HasEdge predicate on the "models" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Provider

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Provider

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Provider

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Provider

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Provider

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Provider

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Provider

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Key

func Key(v string) predicate.Provider

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

func KeyContains

func KeyContains(v string) predicate.Provider

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

func KeyContainsFold

func KeyContainsFold(v string) predicate.Provider

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

func KeyEQ

func KeyEQ(v string) predicate.Provider

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

func KeyEqualFold

func KeyEqualFold(v string) predicate.Provider

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

func KeyGT

func KeyGT(v string) predicate.Provider

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

func KeyGTE

func KeyGTE(v string) predicate.Provider

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

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.Provider

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

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.Provider

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

func KeyIn

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

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

func KeyIsNil

func KeyIsNil() predicate.Provider

KeyIsNil applies the IsNil predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.Provider

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

func KeyLTE

func KeyLTE(v string) predicate.Provider

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

func KeyNEQ

func KeyNEQ(v string) predicate.Provider

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

func KeyNotIn

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

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

func KeyNotNil

func KeyNotNil() predicate.Provider

KeyNotNil applies the NotNil predicate on the "key" field.

func Name

func Name(v string) predicate.Provider

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

func NameContains

func NameContains(v string) predicate.Provider

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

func NameContainsFold

func NameContainsFold(v string) predicate.Provider

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

func NameEQ

func NameEQ(v string) predicate.Provider

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

func NameEqualFold

func NameEqualFold(v string) predicate.Provider

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

func NameGT

func NameGT(v string) predicate.Provider

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

func NameGTE

func NameGTE(v string) predicate.Provider

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Provider

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Provider

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Provider

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

func NameLTE

func NameLTE(v string) predicate.Provider

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

func NameNEQ

func NameNEQ(v string) predicate.Provider

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func Type

func Type(v string) predicate.Provider

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains added in v0.4.1

func TypeContains(v string) predicate.Provider

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold added in v0.4.1

func TypeContainsFold(v string) predicate.Provider

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Provider

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold added in v0.4.1

func TypeEqualFold(v string) predicate.Provider

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT added in v0.4.1

func TypeGT(v string) predicate.Provider

TypeGT applies the GT predicate on the "type" field.

func TypeGTE added in v0.4.1

func TypeGTE(v string) predicate.Provider

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix added in v0.4.1

func TypeHasPrefix(v string) predicate.Provider

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix added in v0.4.1

func TypeHasSuffix(v string) predicate.Provider

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.Provider

TypeIn applies the In predicate on the "type" field.

func TypeLT added in v0.4.1

func TypeLT(v string) predicate.Provider

TypeLT applies the LT predicate on the "type" field.

func TypeLTE added in v0.4.1

func TypeLTE(v string) predicate.Provider

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Provider

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.Provider

TypeNotIn applies the NotIn predicate on the "type" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Provider

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Provider

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Provider

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Provider

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Provider

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Provider

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Provider

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Provider

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Provider

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Provider

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Provider

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" 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 Provider queries.

func ByBaseURL

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

ByBaseURL orders the results by the base_url field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEnabled added in v0.4.1

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

ByEnabled orders the results by the enabled field.

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 ByModels

func ByModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByModels orders the results by models terms.

func ByModelsCount

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

ByModelsCount orders the results by models count.

func ByName

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

ByName orders the results by the name field.

func ByType

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

ByType orders the results by the type field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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