template

package
v0.0.1-beta.8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the template type in the database.
	Label = "template"
	// 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"
	// FieldBaseURL holds the string denoting the base_url field in the database.
	FieldBaseURL = "base_url"
	// FieldCredentialType holds the string denoting the credential_type field in the database.
	FieldCredentialType = "credential_type"
	// FieldSupportedFormats holds the string denoting the supported_formats field in the database.
	FieldSupportedFormats = "supported_formats"
	// FieldModels holds the string denoting the models field in the database.
	FieldModels = "models"
	// FieldFormatModels holds the string denoting the format_models field in the database.
	FieldFormatModels = "format_models"
	// FieldModelMapping holds the string denoting the model_mapping field in the database.
	FieldModelMapping = "model_mapping"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeAccounts holds the string denoting the accounts edge name in mutations.
	EdgeAccounts = "accounts"
	// EdgeExt holds the string denoting the ext edge name in mutations.
	EdgeExt = "ext"
	// Table holds the table name of the template in the database.
	Table = "templates"
	// AccountsTable is the table that holds the accounts relation/edge.
	AccountsTable = "accounts"
	// AccountsInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "account" package.
	AccountsInverseTable = "accounts"
	// AccountsColumn is the table column denoting the accounts relation/edge.
	AccountsColumn = "template_id"
	// ExtTable is the table that holds the ext relation/edge.
	ExtTable = "template_exts"
	// ExtInverseTable is the table name for the TemplateExt entity.
	// It exists in this package in order to avoid circular dependency with the "templateext" package.
	ExtInverseTable = "template_exts"
	// ExtColumn is the table column denoting the ext relation/edge.
	ExtColumn = "template_id"
)

Variables

View Source
var (
	// DefaultCredentialType holds the default value on creation for the "credential_type" field.
	DefaultCredentialType string
	// 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
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

Columns holds all SQL columns for template fields.

Functions

func And

func And(predicates ...predicate.Template) predicate.Template

And groups predicates with the AND operator between them.

func BaseURL

func BaseURL(v string) predicate.Template

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

func BaseURLContains

func BaseURLContains(v string) predicate.Template

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

func BaseURLContainsFold

func BaseURLContainsFold(v string) predicate.Template

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

func BaseURLEQ

func BaseURLEQ(v string) predicate.Template

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

func BaseURLEqualFold

func BaseURLEqualFold(v string) predicate.Template

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

func BaseURLGT

func BaseURLGT(v string) predicate.Template

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

func BaseURLGTE

func BaseURLGTE(v string) predicate.Template

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

func BaseURLHasPrefix

func BaseURLHasPrefix(v string) predicate.Template

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

func BaseURLHasSuffix

func BaseURLHasSuffix(v string) predicate.Template

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

func BaseURLIn

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

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

func BaseURLLT

func BaseURLLT(v string) predicate.Template

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

func BaseURLLTE

func BaseURLLTE(v string) predicate.Template

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

func BaseURLNEQ

func BaseURLNEQ(v string) predicate.Template

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

func BaseURLNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Template

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Template

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Template

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Template

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Template

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Template

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Template

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

func CreatedAtNotIn

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

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

func CredentialType

func CredentialType(v string) predicate.Template

CredentialType applies equality check predicate on the "credential_type" field. It's identical to CredentialTypeEQ.

func CredentialTypeContains

func CredentialTypeContains(v string) predicate.Template

CredentialTypeContains applies the Contains predicate on the "credential_type" field.

func CredentialTypeContainsFold

func CredentialTypeContainsFold(v string) predicate.Template

CredentialTypeContainsFold applies the ContainsFold predicate on the "credential_type" field.

func CredentialTypeEQ

func CredentialTypeEQ(v string) predicate.Template

CredentialTypeEQ applies the EQ predicate on the "credential_type" field.

func CredentialTypeEqualFold

func CredentialTypeEqualFold(v string) predicate.Template

CredentialTypeEqualFold applies the EqualFold predicate on the "credential_type" field.

func CredentialTypeGT

func CredentialTypeGT(v string) predicate.Template

CredentialTypeGT applies the GT predicate on the "credential_type" field.

func CredentialTypeGTE

func CredentialTypeGTE(v string) predicate.Template

CredentialTypeGTE applies the GTE predicate on the "credential_type" field.

func CredentialTypeHasPrefix

func CredentialTypeHasPrefix(v string) predicate.Template

CredentialTypeHasPrefix applies the HasPrefix predicate on the "credential_type" field.

func CredentialTypeHasSuffix

func CredentialTypeHasSuffix(v string) predicate.Template

CredentialTypeHasSuffix applies the HasSuffix predicate on the "credential_type" field.

func CredentialTypeIn

func CredentialTypeIn(vs ...string) predicate.Template

CredentialTypeIn applies the In predicate on the "credential_type" field.

func CredentialTypeLT

func CredentialTypeLT(v string) predicate.Template

CredentialTypeLT applies the LT predicate on the "credential_type" field.

func CredentialTypeLTE

func CredentialTypeLTE(v string) predicate.Template

CredentialTypeLTE applies the LTE predicate on the "credential_type" field.

func CredentialTypeNEQ

func CredentialTypeNEQ(v string) predicate.Template

CredentialTypeNEQ applies the NEQ predicate on the "credential_type" field.

func CredentialTypeNotIn

func CredentialTypeNotIn(vs ...string) predicate.Template

CredentialTypeNotIn applies the NotIn predicate on the "credential_type" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Template

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Template

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Template

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Template

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Template

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Template

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Template

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Template

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Template

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Template

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Template

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func HasAccounts

func HasAccounts() predicate.Template

HasAccounts applies the HasEdge predicate on the "accounts" edge.

func HasAccountsWith

func HasAccountsWith(preds ...predicate.Account) predicate.Template

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

func HasExt

func HasExt() predicate.Template

HasExt applies the HasEdge predicate on the "ext" edge.

func HasExtWith

func HasExtWith(preds ...predicate.TemplateExt) predicate.Template

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

func ID

func ID(id int64) predicate.Template

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Template

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Template

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Template

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Template

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Template

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Template

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Template

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

func NameContains

func NameContains(v string) predicate.Template

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

func NameContainsFold

func NameContainsFold(v string) predicate.Template

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

func NameEQ

func NameEQ(v string) predicate.Template

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

func NameEqualFold

func NameEqualFold(v string) predicate.Template

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

func NameGT

func NameGT(v string) predicate.Template

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

func NameGTE

func NameGTE(v string) predicate.Template

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Template

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Template

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Template

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

func NameLTE

func NameLTE(v string) predicate.Template

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

func NameNEQ

func NameNEQ(v string) predicate.Template

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Template

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Template

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Template

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Template

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Template

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Template

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Template

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn 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 Template queries.

func ByAccounts

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

ByAccounts orders the results by accounts terms.

func ByAccountsCount

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

ByAccountsCount orders the results by accounts count.

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 ByCredentialType

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

ByCredentialType orders the results by the credential_type field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByExt

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

ByExt orders the results by ext terms.

func ByExtCount

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

ByExtCount orders the results by ext count.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name 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