package
0.0.0-20240228110336-1ba4f5237a28
Repository: https://github.com/npoolplatform/cms-middleware.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

As is a pseudo aggregation function for renaming another other functions with custom names.
Asc applies the given fields in ASC order.
Count applies the "count" aggregation function on each group.
Debug enables debug logging on the ent.Driver.
Desc applies the given fields in DESC order.
Driver configures the client driver.
FromContext returns a Client stored inside a context, or nil if there isn't one.
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
IsNotFound returns a boolean indicating whether the error is a not found error.
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
IsNotSingular returns a boolean indicating whether the error is a not singular error.
IsValidationError returns a boolean indicating whether the error is a validation error.
Log sets the logging function for debug mode.
MaskNotFound masks not found error.
Max applies the "max" aggregation function on the given field of each group.
Mean applies the "mean" aggregation function on the given field of each group.
Min applies the "min" aggregation function on the given field of each group.
NewACLClient returns a client for the ACL from the given config.
NewArticleClient returns a client for the Article from the given config.
NewCategoryClient returns a client for the Category from the given config.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewMediaClient returns a client for the Media from the given config.
NewTxContext returns a new context with the given Tx attached.
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it.
Sum applies the "sum" aggregation function on the given field of each group.
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.

# Constants

Operation types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Node types.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ACL is the model entity for the ACL schema.
ACLClient is a client for the ACL schema.
ACLCreate is the builder for creating a ACL entity.
ACLCreateBulk is the builder for creating many ACL entities in bulk.
ACLDelete is the builder for deleting a ACL entity.
ACLDeleteOne is the builder for deleting a single ACL entity.
ACLFilter provides a generic filtering capability at runtime for ACLQuery.
ACLGroupBy is the group-by builder for ACL entities.
ACLMutation represents an operation that mutates the ACL nodes in the graph.
ACLQuery is the builder for querying ACL entities.
ACLSelect is the builder for selecting fields of ACL entities.
ACLUpdate is the builder for updating ACL entities.
ACLUpdateOne is the builder for updating a single ACL entity.
No description provided by the author
ACLUpsertBulk is the builder for "upsert"-ing a bulk of ACL nodes.
No description provided by the author
Article
Article is the model entity for the Article schema.
ArticleClient is a client for the Article schema.
ArticleCreate is the builder for creating a Article entity.
ArticleCreateBulk is the builder for creating many Article entities in bulk.
ArticleDelete is the builder for deleting a Article entity.
ArticleDeleteOne is the builder for deleting a single Article entity.
ArticleFilter provides a generic filtering capability at runtime for ArticleQuery.
ArticleGroupBy is the group-by builder for Article entities.
ArticleMutation represents an operation that mutates the Article nodes in the graph.
ArticleQuery is the builder for querying Article entities.
ArticleSelect is the builder for selecting fields of Article entities.
ArticleUpdate is the builder for updating Article entities.
ArticleUpdateOne is the builder for updating a single Article entity.
No description provided by the author
ArticleUpsertBulk is the builder for "upsert"-ing a bulk of Article nodes.
No description provided by the author
Category is the model entity for the Category schema.
CategoryClient is a client for the Category schema.
CategoryCreate is the builder for creating a Category entity.
CategoryCreateBulk is the builder for creating many Category entities in bulk.
CategoryDelete is the builder for deleting a Category entity.
CategoryDeleteOne is the builder for deleting a single Category entity.
CategoryFilter provides a generic filtering capability at runtime for CategoryQuery.
CategoryGroupBy is the group-by builder for Category entities.
CategoryMutation represents an operation that mutates the Category nodes in the graph.
CategoryQuery is the builder for querying Category entities.
CategorySelect is the builder for selecting fields of Category entities.
CategoryUpdate is the builder for updating Category entities.
CategoryUpdateOne is the builder for updating a single Category entity.
No description provided by the author
CategoryUpsertBulk is the builder for "upsert"-ing a bulk of Category nodes.
No description provided by the author
Client is the client that holds all ent builders.
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed.
Media is the model entity for the Media schema.
MediaClient is a client for the Media schema.
MediaCreate is the builder for creating a Media entity.
MediaCreateBulk is the builder for creating many Media entities in bulk.
MediaDelete is the builder for deleting a Media entity.
MediaDeleteOne is the builder for deleting a single Media entity.
MediaFilter provides a generic filtering capability at runtime for MediaQuery.
MediaGroupBy is the group-by builder for Media entities.
MediaMutation represents an operation that mutates the Media nodes in the graph.
MediaQuery is the builder for querying Media entities.
MediaSelect is the builder for selecting fields of Media entities.
MediaUpdate is the builder for updating Media entities.
MediaUpdateOne is the builder for updating a single Media entity.
No description provided by the author
MediaUpsertBulk is the builder for "upsert"-ing a bulk of Media nodes.
No description provided by the author
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
NotLoadedError returns when trying to get a node that was not loaded by the query.
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
Tx is a transactional client that is created by calling Client.Tx().
ValidationError returns when validating a field or edge fails.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

ACLs is a parsable slice of ACL.
AggregateFunc applies an aggregation step on the group-by traversal/selector.
Articles is a parsable slice of Article.
Categories is a parsable slice of Category.
No description provided by the author
No description provided by the author
ent aliases to avoid import conflicts in user's code.
MediaSlice is a parsable slice of Media.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
Option function to configure the client.
OrderFunc applies an ordering on the sql selector.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
No description provided by the author
No description provided by the author
ent aliases to avoid import conflicts in user's code.