Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Template) predicate.Template
- func BaseURL(v string) predicate.Template
- func BaseURLContains(v string) predicate.Template
- func BaseURLContainsFold(v string) predicate.Template
- func BaseURLEQ(v string) predicate.Template
- func BaseURLEqualFold(v string) predicate.Template
- func BaseURLGT(v string) predicate.Template
- func BaseURLGTE(v string) predicate.Template
- func BaseURLHasPrefix(v string) predicate.Template
- func BaseURLHasSuffix(v string) predicate.Template
- func BaseURLIn(vs ...string) predicate.Template
- func BaseURLLT(v string) predicate.Template
- func BaseURLLTE(v string) predicate.Template
- func BaseURLNEQ(v string) predicate.Template
- func BaseURLNotIn(vs ...string) predicate.Template
- func CreatedAt(v time.Time) predicate.Template
- func CreatedAtEQ(v time.Time) predicate.Template
- func CreatedAtGT(v time.Time) predicate.Template
- func CreatedAtGTE(v time.Time) predicate.Template
- func CreatedAtIn(vs ...time.Time) predicate.Template
- func CreatedAtLT(v time.Time) predicate.Template
- func CreatedAtLTE(v time.Time) predicate.Template
- func CreatedAtNEQ(v time.Time) predicate.Template
- func CreatedAtNotIn(vs ...time.Time) predicate.Template
- func CredentialType(v string) predicate.Template
- func CredentialTypeContains(v string) predicate.Template
- func CredentialTypeContainsFold(v string) predicate.Template
- func CredentialTypeEQ(v string) predicate.Template
- func CredentialTypeEqualFold(v string) predicate.Template
- func CredentialTypeGT(v string) predicate.Template
- func CredentialTypeGTE(v string) predicate.Template
- func CredentialTypeHasPrefix(v string) predicate.Template
- func CredentialTypeHasSuffix(v string) predicate.Template
- func CredentialTypeIn(vs ...string) predicate.Template
- func CredentialTypeLT(v string) predicate.Template
- func CredentialTypeLTE(v string) predicate.Template
- func CredentialTypeNEQ(v string) predicate.Template
- func CredentialTypeNotIn(vs ...string) predicate.Template
- func DeletedAt(v time.Time) predicate.Template
- func DeletedAtEQ(v time.Time) predicate.Template
- func DeletedAtGT(v time.Time) predicate.Template
- func DeletedAtGTE(v time.Time) predicate.Template
- func DeletedAtIn(vs ...time.Time) predicate.Template
- func DeletedAtIsNil() predicate.Template
- func DeletedAtLT(v time.Time) predicate.Template
- func DeletedAtLTE(v time.Time) predicate.Template
- func DeletedAtNEQ(v time.Time) predicate.Template
- func DeletedAtNotIn(vs ...time.Time) predicate.Template
- func DeletedAtNotNil() predicate.Template
- func HasAccounts() predicate.Template
- func HasAccountsWith(preds ...predicate.Account) predicate.Template
- func HasExt() predicate.Template
- func HasExtWith(preds ...predicate.TemplateExt) predicate.Template
- func ID(id int64) predicate.Template
- func IDEQ(id int64) predicate.Template
- func IDGT(id int64) predicate.Template
- func IDGTE(id int64) predicate.Template
- func IDIn(ids ...int64) predicate.Template
- func IDLT(id int64) predicate.Template
- func IDLTE(id int64) predicate.Template
- func IDNEQ(id int64) predicate.Template
- func IDNotIn(ids ...int64) predicate.Template
- func Name(v string) predicate.Template
- func NameContains(v string) predicate.Template
- func NameContainsFold(v string) predicate.Template
- func NameEQ(v string) predicate.Template
- func NameEqualFold(v string) predicate.Template
- func NameGT(v string) predicate.Template
- func NameGTE(v string) predicate.Template
- func NameHasPrefix(v string) predicate.Template
- func NameHasSuffix(v string) predicate.Template
- func NameIn(vs ...string) predicate.Template
- func NameLT(v string) predicate.Template
- func NameLTE(v string) predicate.Template
- func NameNEQ(v string) predicate.Template
- func NameNotIn(vs ...string) predicate.Template
- func Not(p predicate.Template) predicate.Template
- func Or(predicates ...predicate.Template) predicate.Template
- func UpdatedAt(v time.Time) predicate.Template
- func UpdatedAtEQ(v time.Time) predicate.Template
- func UpdatedAtGT(v time.Time) predicate.Template
- func UpdatedAtGTE(v time.Time) predicate.Template
- func UpdatedAtIn(vs ...time.Time) predicate.Template
- func UpdatedAtLT(v time.Time) predicate.Template
- func UpdatedAtLTE(v time.Time) predicate.Template
- func UpdatedAtNEQ(v time.Time) predicate.Template
- func UpdatedAtNotIn(vs ...time.Time) predicate.Template
- func ValidColumn(column string) bool
- type OrderOption
- func ByAccounts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAccountsCount(opts ...sql.OrderTermOption) OrderOption
- func ByBaseURL(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCredentialType(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExt(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByExtCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldName, FieldBaseURL, FieldCredentialType, FieldSupportedFormats, FieldModels, FieldFormatModels, FieldModelMapping, FieldUpdatedAt, FieldDeletedAt, FieldCreatedAt, }
Columns holds all SQL columns for template fields.
Functions ¶
func BaseURL ¶
BaseURL applies equality check predicate on the "base_url" field. It's identical to BaseURLEQ.
func BaseURLContains ¶
BaseURLContains applies the Contains predicate on the "base_url" field.
func BaseURLContainsFold ¶
BaseURLContainsFold applies the ContainsFold predicate on the "base_url" field.
func BaseURLEqualFold ¶
BaseURLEqualFold applies the EqualFold predicate on the "base_url" field.
func BaseURLGTE ¶
BaseURLGTE applies the GTE predicate on the "base_url" field.
func BaseURLHasPrefix ¶
BaseURLHasPrefix applies the HasPrefix predicate on the "base_url" field.
func BaseURLHasSuffix ¶
BaseURLHasSuffix applies the HasSuffix predicate on the "base_url" field.
func BaseURLLTE ¶
BaseURLLTE applies the LTE predicate on the "base_url" field.
func BaseURLNEQ ¶
BaseURLNEQ applies the NEQ predicate on the "base_url" field.
func BaseURLNotIn ¶
BaseURLNotIn applies the NotIn predicate on the "base_url" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CredentialType ¶
CredentialType applies equality check predicate on the "credential_type" field. It's identical to CredentialTypeEQ.
func CredentialTypeContains ¶
CredentialTypeContains applies the Contains predicate on the "credential_type" field.
func CredentialTypeContainsFold ¶
CredentialTypeContainsFold applies the ContainsFold predicate on the "credential_type" field.
func CredentialTypeEQ ¶
CredentialTypeEQ applies the EQ predicate on the "credential_type" field.
func CredentialTypeEqualFold ¶
CredentialTypeEqualFold applies the EqualFold predicate on the "credential_type" field.
func CredentialTypeGT ¶
CredentialTypeGT applies the GT predicate on the "credential_type" field.
func CredentialTypeGTE ¶
CredentialTypeGTE applies the GTE predicate on the "credential_type" field.
func CredentialTypeHasPrefix ¶
CredentialTypeHasPrefix applies the HasPrefix predicate on the "credential_type" field.
func CredentialTypeHasSuffix ¶
CredentialTypeHasSuffix applies the HasSuffix predicate on the "credential_type" field.
func CredentialTypeIn ¶
CredentialTypeIn applies the In predicate on the "credential_type" field.
func CredentialTypeLT ¶
CredentialTypeLT applies the LT predicate on the "credential_type" field.
func CredentialTypeLTE ¶
CredentialTypeLTE applies the LTE predicate on the "credential_type" field.
func CredentialTypeNEQ ¶
CredentialTypeNEQ applies the NEQ predicate on the "credential_type" field.
func CredentialTypeNotIn ¶
CredentialTypeNotIn applies the NotIn predicate on the "credential_type" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasAccounts ¶
HasAccounts applies the HasEdge predicate on the "accounts" edge.
func HasAccountsWith ¶
HasAccountsWith applies the HasEdge predicate on the "accounts" edge with a given conditions (other predicates).
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 NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.