Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Repository) predicate.Repository
- func CreatedAt(v time.Time) predicate.Repository
- func CreatedAtEQ(v time.Time) predicate.Repository
- func CreatedAtGT(v time.Time) predicate.Repository
- func CreatedAtGTE(v time.Time) predicate.Repository
- func CreatedAtIn(vs ...time.Time) predicate.Repository
- func CreatedAtLT(v time.Time) predicate.Repository
- func CreatedAtLTE(v time.Time) predicate.Repository
- func CreatedAtNEQ(v time.Time) predicate.Repository
- func CreatedAtNotIn(vs ...time.Time) predicate.Repository
- func HasOwner() predicate.Repository
- func HasOwnerWith(preds ...predicate.User) predicate.Repository
- func HasTomes() predicate.Repository
- func HasTomesWith(preds ...predicate.Tome) predicate.Repository
- func ID(id int) predicate.Repository
- func IDEQ(id int) predicate.Repository
- func IDGT(id int) predicate.Repository
- func IDGTE(id int) predicate.Repository
- func IDIn(ids ...int) predicate.Repository
- func IDLT(id int) predicate.Repository
- func IDLTE(id int) predicate.Repository
- func IDNEQ(id int) predicate.Repository
- func IDNotIn(ids ...int) predicate.Repository
- func LastImportedAt(v time.Time) predicate.Repository
- func LastImportedAtEQ(v time.Time) predicate.Repository
- func LastImportedAtGT(v time.Time) predicate.Repository
- func LastImportedAtGTE(v time.Time) predicate.Repository
- func LastImportedAtIn(vs ...time.Time) predicate.Repository
- func LastImportedAtIsNil() predicate.Repository
- func LastImportedAtLT(v time.Time) predicate.Repository
- func LastImportedAtLTE(v time.Time) predicate.Repository
- func LastImportedAtNEQ(v time.Time) predicate.Repository
- func LastImportedAtNotIn(vs ...time.Time) predicate.Repository
- func LastImportedAtNotNil() predicate.Repository
- func LastModifiedAt(v time.Time) predicate.Repository
- func LastModifiedAtEQ(v time.Time) predicate.Repository
- func LastModifiedAtGT(v time.Time) predicate.Repository
- func LastModifiedAtGTE(v time.Time) predicate.Repository
- func LastModifiedAtIn(vs ...time.Time) predicate.Repository
- func LastModifiedAtLT(v time.Time) predicate.Repository
- func LastModifiedAtLTE(v time.Time) predicate.Repository
- func LastModifiedAtNEQ(v time.Time) predicate.Repository
- func LastModifiedAtNotIn(vs ...time.Time) predicate.Repository
- func Not(p predicate.Repository) predicate.Repository
- func Or(predicates ...predicate.Repository) predicate.Repository
- func PrivateKey(v string) predicate.Repository
- func PrivateKeyContains(v string) predicate.Repository
- func PrivateKeyContainsFold(v string) predicate.Repository
- func PrivateKeyEQ(v string) predicate.Repository
- func PrivateKeyEqualFold(v string) predicate.Repository
- func PrivateKeyGT(v string) predicate.Repository
- func PrivateKeyGTE(v string) predicate.Repository
- func PrivateKeyHasPrefix(v string) predicate.Repository
- func PrivateKeyHasSuffix(v string) predicate.Repository
- func PrivateKeyIn(vs ...string) predicate.Repository
- func PrivateKeyLT(v string) predicate.Repository
- func PrivateKeyLTE(v string) predicate.Repository
- func PrivateKeyNEQ(v string) predicate.Repository
- func PrivateKeyNotIn(vs ...string) predicate.Repository
- func PublicKey(v string) predicate.Repository
- func PublicKeyContains(v string) predicate.Repository
- func PublicKeyContainsFold(v string) predicate.Repository
- func PublicKeyEQ(v string) predicate.Repository
- func PublicKeyEqualFold(v string) predicate.Repository
- func PublicKeyGT(v string) predicate.Repository
- func PublicKeyGTE(v string) predicate.Repository
- func PublicKeyHasPrefix(v string) predicate.Repository
- func PublicKeyHasSuffix(v string) predicate.Repository
- func PublicKeyIn(vs ...string) predicate.Repository
- func PublicKeyLT(v string) predicate.Repository
- func PublicKeyLTE(v string) predicate.Repository
- func PublicKeyNEQ(v string) predicate.Repository
- func PublicKeyNotIn(vs ...string) predicate.Repository
- func URL(v string) predicate.Repository
- func URLContains(v string) predicate.Repository
- func URLContainsFold(v string) predicate.Repository
- func URLEQ(v string) predicate.Repository
- func URLEqualFold(v string) predicate.Repository
- func URLGT(v string) predicate.Repository
- func URLGTE(v string) predicate.Repository
- func URLHasPrefix(v string) predicate.Repository
- func URLHasSuffix(v string) predicate.Repository
- func URLIn(vs ...string) predicate.Repository
- func URLLT(v string) predicate.Repository
- func URLLTE(v string) predicate.Repository
- func URLNEQ(v string) predicate.Repository
- func URLNotIn(vs ...string) predicate.Repository
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastImportedAt(opts ...sql.OrderTermOption) OrderOption
- func ByLastModifiedAt(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPrivateKey(opts ...sql.OrderTermOption) OrderOption
- func ByPublicKey(opts ...sql.OrderTermOption) OrderOption
- func ByTomes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTomesCount(opts ...sql.OrderTermOption) OrderOption
- func ByURL(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the repository type in the database. Label = "repository" // 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" // FieldLastModifiedAt holds the string denoting the last_modified_at field in the database. FieldLastModifiedAt = "last_modified_at" // FieldURL holds the string denoting the url field in the database. FieldURL = "url" // FieldPublicKey holds the string denoting the public_key field in the database. FieldPublicKey = "public_key" // FieldPrivateKey holds the string denoting the private_key field in the database. FieldPrivateKey = "private_key" // FieldLastImportedAt holds the string denoting the last_imported_at field in the database. FieldLastImportedAt = "last_imported_at" // EdgeTomes holds the string denoting the tomes edge name in mutations. EdgeTomes = "tomes" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // Table holds the table name of the repository in the database. Table = "repositories" // TomesTable is the table that holds the tomes relation/edge. TomesTable = "tomes" // TomesInverseTable is the table name for the Tome entity. // It exists in this package in order to avoid circular dependency with the "tome" package. TomesInverseTable = "tomes" // TomesColumn is the table column denoting the tomes relation/edge. TomesColumn = "tome_repository" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "repositories" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "repository_owner" )
Variables ¶
var ( Hooks [1]ent.Hook // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultLastModifiedAt holds the default value on creation for the "last_modified_at" field. DefaultLastModifiedAt func() time.Time // UpdateDefaultLastModifiedAt holds the default value on update for the "last_modified_at" field. UpdateDefaultLastModifiedAt func() time.Time // URLValidator is a validator for the "url" field. It is called by the builders before save. URLValidator func(string) error // PublicKeyValidator is a validator for the "public_key" field. It is called by the builders before save. PublicKeyValidator func(string) error // PrivateKeyValidator is a validator for the "private_key" field. It is called by the builders before save. PrivateKeyValidator func(string) error )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "realm.pub/tavern/internal/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldLastModifiedAt, FieldURL, FieldPublicKey, FieldPrivateKey, FieldLastImportedAt, }
Columns holds all SQL columns for repository fields.
var ForeignKeys = []string{
"repository_owner",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "repositories" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Repository) predicate.Repository
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Repository
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Repository
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Repository
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Repository
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Repository
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Repository
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Repository
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Repository
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Repository
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasOwner ¶
func HasOwner() predicate.Repository
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.User) predicate.Repository
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasTomes ¶
func HasTomes() predicate.Repository
HasTomes applies the HasEdge predicate on the "tomes" edge.
func HasTomesWith ¶
func HasTomesWith(preds ...predicate.Tome) predicate.Repository
HasTomesWith applies the HasEdge predicate on the "tomes" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Repository
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Repository
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Repository
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Repository
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Repository
IDNotIn applies the NotIn predicate on the ID field.
func LastImportedAt ¶
func LastImportedAt(v time.Time) predicate.Repository
LastImportedAt applies equality check predicate on the "last_imported_at" field. It's identical to LastImportedAtEQ.
func LastImportedAtEQ ¶
func LastImportedAtEQ(v time.Time) predicate.Repository
LastImportedAtEQ applies the EQ predicate on the "last_imported_at" field.
func LastImportedAtGT ¶
func LastImportedAtGT(v time.Time) predicate.Repository
LastImportedAtGT applies the GT predicate on the "last_imported_at" field.
func LastImportedAtGTE ¶
func LastImportedAtGTE(v time.Time) predicate.Repository
LastImportedAtGTE applies the GTE predicate on the "last_imported_at" field.
func LastImportedAtIn ¶
func LastImportedAtIn(vs ...time.Time) predicate.Repository
LastImportedAtIn applies the In predicate on the "last_imported_at" field.
func LastImportedAtIsNil ¶
func LastImportedAtIsNil() predicate.Repository
LastImportedAtIsNil applies the IsNil predicate on the "last_imported_at" field.
func LastImportedAtLT ¶
func LastImportedAtLT(v time.Time) predicate.Repository
LastImportedAtLT applies the LT predicate on the "last_imported_at" field.
func LastImportedAtLTE ¶
func LastImportedAtLTE(v time.Time) predicate.Repository
LastImportedAtLTE applies the LTE predicate on the "last_imported_at" field.
func LastImportedAtNEQ ¶
func LastImportedAtNEQ(v time.Time) predicate.Repository
LastImportedAtNEQ applies the NEQ predicate on the "last_imported_at" field.
func LastImportedAtNotIn ¶
func LastImportedAtNotIn(vs ...time.Time) predicate.Repository
LastImportedAtNotIn applies the NotIn predicate on the "last_imported_at" field.
func LastImportedAtNotNil ¶
func LastImportedAtNotNil() predicate.Repository
LastImportedAtNotNil applies the NotNil predicate on the "last_imported_at" field.
func LastModifiedAt ¶
func LastModifiedAt(v time.Time) predicate.Repository
LastModifiedAt applies equality check predicate on the "last_modified_at" field. It's identical to LastModifiedAtEQ.
func LastModifiedAtEQ ¶
func LastModifiedAtEQ(v time.Time) predicate.Repository
LastModifiedAtEQ applies the EQ predicate on the "last_modified_at" field.
func LastModifiedAtGT ¶
func LastModifiedAtGT(v time.Time) predicate.Repository
LastModifiedAtGT applies the GT predicate on the "last_modified_at" field.
func LastModifiedAtGTE ¶
func LastModifiedAtGTE(v time.Time) predicate.Repository
LastModifiedAtGTE applies the GTE predicate on the "last_modified_at" field.
func LastModifiedAtIn ¶
func LastModifiedAtIn(vs ...time.Time) predicate.Repository
LastModifiedAtIn applies the In predicate on the "last_modified_at" field.
func LastModifiedAtLT ¶
func LastModifiedAtLT(v time.Time) predicate.Repository
LastModifiedAtLT applies the LT predicate on the "last_modified_at" field.
func LastModifiedAtLTE ¶
func LastModifiedAtLTE(v time.Time) predicate.Repository
LastModifiedAtLTE applies the LTE predicate on the "last_modified_at" field.
func LastModifiedAtNEQ ¶
func LastModifiedAtNEQ(v time.Time) predicate.Repository
LastModifiedAtNEQ applies the NEQ predicate on the "last_modified_at" field.
func LastModifiedAtNotIn ¶
func LastModifiedAtNotIn(vs ...time.Time) predicate.Repository
LastModifiedAtNotIn applies the NotIn predicate on the "last_modified_at" field.
func Not ¶
func Not(p predicate.Repository) predicate.Repository
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Repository) predicate.Repository
Or groups predicates with the OR operator between them.
func PrivateKey ¶
func PrivateKey(v string) predicate.Repository
PrivateKey applies equality check predicate on the "private_key" field. It's identical to PrivateKeyEQ.
func PrivateKeyContains ¶
func PrivateKeyContains(v string) predicate.Repository
PrivateKeyContains applies the Contains predicate on the "private_key" field.
func PrivateKeyContainsFold ¶
func PrivateKeyContainsFold(v string) predicate.Repository
PrivateKeyContainsFold applies the ContainsFold predicate on the "private_key" field.
func PrivateKeyEQ ¶
func PrivateKeyEQ(v string) predicate.Repository
PrivateKeyEQ applies the EQ predicate on the "private_key" field.
func PrivateKeyEqualFold ¶
func PrivateKeyEqualFold(v string) predicate.Repository
PrivateKeyEqualFold applies the EqualFold predicate on the "private_key" field.
func PrivateKeyGT ¶
func PrivateKeyGT(v string) predicate.Repository
PrivateKeyGT applies the GT predicate on the "private_key" field.
func PrivateKeyGTE ¶
func PrivateKeyGTE(v string) predicate.Repository
PrivateKeyGTE applies the GTE predicate on the "private_key" field.
func PrivateKeyHasPrefix ¶
func PrivateKeyHasPrefix(v string) predicate.Repository
PrivateKeyHasPrefix applies the HasPrefix predicate on the "private_key" field.
func PrivateKeyHasSuffix ¶
func PrivateKeyHasSuffix(v string) predicate.Repository
PrivateKeyHasSuffix applies the HasSuffix predicate on the "private_key" field.
func PrivateKeyIn ¶
func PrivateKeyIn(vs ...string) predicate.Repository
PrivateKeyIn applies the In predicate on the "private_key" field.
func PrivateKeyLT ¶
func PrivateKeyLT(v string) predicate.Repository
PrivateKeyLT applies the LT predicate on the "private_key" field.
func PrivateKeyLTE ¶
func PrivateKeyLTE(v string) predicate.Repository
PrivateKeyLTE applies the LTE predicate on the "private_key" field.
func PrivateKeyNEQ ¶
func PrivateKeyNEQ(v string) predicate.Repository
PrivateKeyNEQ applies the NEQ predicate on the "private_key" field.
func PrivateKeyNotIn ¶
func PrivateKeyNotIn(vs ...string) predicate.Repository
PrivateKeyNotIn applies the NotIn predicate on the "private_key" field.
func PublicKey ¶
func PublicKey(v string) predicate.Repository
PublicKey applies equality check predicate on the "public_key" field. It's identical to PublicKeyEQ.
func PublicKeyContains ¶
func PublicKeyContains(v string) predicate.Repository
PublicKeyContains applies the Contains predicate on the "public_key" field.
func PublicKeyContainsFold ¶
func PublicKeyContainsFold(v string) predicate.Repository
PublicKeyContainsFold applies the ContainsFold predicate on the "public_key" field.
func PublicKeyEQ ¶
func PublicKeyEQ(v string) predicate.Repository
PublicKeyEQ applies the EQ predicate on the "public_key" field.
func PublicKeyEqualFold ¶
func PublicKeyEqualFold(v string) predicate.Repository
PublicKeyEqualFold applies the EqualFold predicate on the "public_key" field.
func PublicKeyGT ¶
func PublicKeyGT(v string) predicate.Repository
PublicKeyGT applies the GT predicate on the "public_key" field.
func PublicKeyGTE ¶
func PublicKeyGTE(v string) predicate.Repository
PublicKeyGTE applies the GTE predicate on the "public_key" field.
func PublicKeyHasPrefix ¶
func PublicKeyHasPrefix(v string) predicate.Repository
PublicKeyHasPrefix applies the HasPrefix predicate on the "public_key" field.
func PublicKeyHasSuffix ¶
func PublicKeyHasSuffix(v string) predicate.Repository
PublicKeyHasSuffix applies the HasSuffix predicate on the "public_key" field.
func PublicKeyIn ¶
func PublicKeyIn(vs ...string) predicate.Repository
PublicKeyIn applies the In predicate on the "public_key" field.
func PublicKeyLT ¶
func PublicKeyLT(v string) predicate.Repository
PublicKeyLT applies the LT predicate on the "public_key" field.
func PublicKeyLTE ¶
func PublicKeyLTE(v string) predicate.Repository
PublicKeyLTE applies the LTE predicate on the "public_key" field.
func PublicKeyNEQ ¶
func PublicKeyNEQ(v string) predicate.Repository
PublicKeyNEQ applies the NEQ predicate on the "public_key" field.
func PublicKeyNotIn ¶
func PublicKeyNotIn(vs ...string) predicate.Repository
PublicKeyNotIn applies the NotIn predicate on the "public_key" field.
func URL ¶
func URL(v string) predicate.Repository
URL applies equality check predicate on the "url" field. It's identical to URLEQ.
func URLContains ¶
func URLContains(v string) predicate.Repository
URLContains applies the Contains predicate on the "url" field.
func URLContainsFold ¶
func URLContainsFold(v string) predicate.Repository
URLContainsFold applies the ContainsFold predicate on the "url" field.
func URLEQ ¶
func URLEQ(v string) predicate.Repository
URLEQ applies the EQ predicate on the "url" field.
func URLEqualFold ¶
func URLEqualFold(v string) predicate.Repository
URLEqualFold applies the EqualFold predicate on the "url" field.
func URLGT ¶
func URLGT(v string) predicate.Repository
URLGT applies the GT predicate on the "url" field.
func URLGTE ¶
func URLGTE(v string) predicate.Repository
URLGTE applies the GTE predicate on the "url" field.
func URLHasPrefix ¶
func URLHasPrefix(v string) predicate.Repository
URLHasPrefix applies the HasPrefix predicate on the "url" field.
func URLHasSuffix ¶
func URLHasSuffix(v string) predicate.Repository
URLHasSuffix applies the HasSuffix predicate on the "url" field.
func URLIn ¶
func URLIn(vs ...string) predicate.Repository
URLIn applies the In predicate on the "url" field.
func URLLT ¶
func URLLT(v string) predicate.Repository
URLLT applies the LT predicate on the "url" field.
func URLLTE ¶
func URLLTE(v string) predicate.Repository
URLLTE applies the LTE predicate on the "url" field.
func URLNEQ ¶
func URLNEQ(v string) predicate.Repository
URLNEQ applies the NEQ predicate on the "url" field.
func URLNotIn ¶
func URLNotIn(vs ...string) predicate.Repository
URLNotIn applies the NotIn predicate on the "url" 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 Repository queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastImportedAt ¶
func ByLastImportedAt(opts ...sql.OrderTermOption) OrderOption
ByLastImportedAt orders the results by the last_imported_at field.
func ByLastModifiedAt ¶
func ByLastModifiedAt(opts ...sql.OrderTermOption) OrderOption
ByLastModifiedAt orders the results by the last_modified_at field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByPrivateKey ¶
func ByPrivateKey(opts ...sql.OrderTermOption) OrderOption
ByPrivateKey orders the results by the private_key field.
func ByPublicKey ¶
func ByPublicKey(opts ...sql.OrderTermOption) OrderOption
ByPublicKey orders the results by the public_key field.
func ByTomes ¶
func ByTomes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTomes orders the results by tomes terms.
func ByTomesCount ¶
func ByTomesCount(opts ...sql.OrderTermOption) OrderOption
ByTomesCount orders the results by tomes count.
func ByURL ¶
func ByURL(opts ...sql.OrderTermOption) OrderOption
ByURL orders the results by the url field.