package
0.8.7
Repository: https://github.com/mensatt/backend.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
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.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewDishAliasClient returns a client for the DishAlias from the given config.
NewDishClient returns a client for the Dish from the given config.
NewImageClient returns a client for the Image from the given config.
NewLocationClient returns a client for the Location from the given config.
NewOccurrenceClient returns a client for the Occurrence from the given config.
NewReviewClient returns a client for the Review from the given config.
NewTagClient returns a client for the Tag from the given config.
NewTxContext returns a new context with the given Tx attached.
NewUserClient returns a client for the User from the given config.
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrTxStarted is returned when trying to start a new transaction from a transactional client.

# Structs

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.
Dish is the model entity for the Dish schema.
DishAlias is the model entity for the DishAlias schema.
DishAliasClient is a client for the DishAlias schema.
DishAliasCreate is the builder for creating a DishAlias entity.
DishAliasCreateBulk is the builder for creating many DishAlias entities in bulk.
DishAliasDelete is the builder for deleting a DishAlias entity.
DishAliasDeleteOne is the builder for deleting a single DishAlias entity.
DishAliasEdges holds the relations/edges for other nodes in the graph.
DishAliasGroupBy is the group-by builder for DishAlias entities.
DishAliasMutation represents an operation that mutates the DishAlias nodes in the graph.
DishAliasQuery is the builder for querying DishAlias entities.
DishAliasSelect is the builder for selecting fields of DishAlias entities.
DishAliasUpdate is the builder for updating DishAlias entities.
DishAliasUpdateOne is the builder for updating a single DishAlias entity.
No description provided by the author
DishAliasUpsertBulk is the builder for "upsert"-ing a bulk of DishAlias nodes.
No description provided by the author
DishClient is a client for the Dish schema.
DishCreate is the builder for creating a Dish entity.
DishCreateBulk is the builder for creating many Dish entities in bulk.
DishDelete is the builder for deleting a Dish entity.
DishDeleteOne is the builder for deleting a single Dish entity.
DishEdges holds the relations/edges for other nodes in the graph.
DishGroupBy is the group-by builder for Dish entities.
DishMutation represents an operation that mutates the Dish nodes in the graph.
DishQuery is the builder for querying Dish entities.
DishSelect is the builder for selecting fields of Dish entities.
DishUpdate is the builder for updating Dish entities.
DishUpdateOne is the builder for updating a single Dish entity.
No description provided by the author
DishUpsertBulk is the builder for "upsert"-ing a bulk of Dish nodes.
No description provided by the author
Image is the model entity for the Image schema.
ImageClient is a client for the Image schema.
ImageCreate is the builder for creating a Image entity.
ImageCreateBulk is the builder for creating many Image entities in bulk.
ImageDelete is the builder for deleting a Image entity.
ImageDeleteOne is the builder for deleting a single Image entity.
ImageEdges holds the relations/edges for other nodes in the graph.
ImageGroupBy is the group-by builder for Image entities.
ImageMutation represents an operation that mutates the Image nodes in the graph.
ImageQuery is the builder for querying Image entities.
ImageSelect is the builder for selecting fields of Image entities.
ImageUpdate is the builder for updating Image entities.
ImageUpdateOne is the builder for updating a single Image entity.
No description provided by the author
ImageUpsertBulk is the builder for "upsert"-ing a bulk of Image nodes.
No description provided by the author
Location is the model entity for the Location schema.
LocationClient is a client for the Location schema.
LocationCreate is the builder for creating a Location entity.
LocationCreateBulk is the builder for creating many Location entities in bulk.
LocationDelete is the builder for deleting a Location entity.
LocationDeleteOne is the builder for deleting a single Location entity.
LocationEdges holds the relations/edges for other nodes in the graph.
LocationGroupBy is the group-by builder for Location entities.
LocationMutation represents an operation that mutates the Location nodes in the graph.
LocationQuery is the builder for querying Location entities.
LocationSelect is the builder for selecting fields of Location entities.
LocationUpdate is the builder for updating Location entities.
LocationUpdateOne is the builder for updating a single Location entity.
No description provided by the author
LocationUpsertBulk is the builder for "upsert"-ing a bulk of Location 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.
Occurrence is the model entity for the Occurrence schema.
OccurrenceClient is a client for the Occurrence schema.
OccurrenceCreate is the builder for creating a Occurrence entity.
OccurrenceCreateBulk is the builder for creating many Occurrence entities in bulk.
OccurrenceDelete is the builder for deleting a Occurrence entity.
OccurrenceDeleteOne is the builder for deleting a single Occurrence entity.
OccurrenceEdges holds the relations/edges for other nodes in the graph.
OccurrenceGroupBy is the group-by builder for Occurrence entities.
OccurrenceMutation represents an operation that mutates the Occurrence nodes in the graph.
OccurrenceQuery is the builder for querying Occurrence entities.
OccurrenceSelect is the builder for selecting fields of Occurrence entities.
OccurrenceUpdate is the builder for updating Occurrence entities.
OccurrenceUpdateOne is the builder for updating a single Occurrence entity.
No description provided by the author
OccurrenceUpsertBulk is the builder for "upsert"-ing a bulk of Occurrence nodes.
No description provided by the author
Review is the model entity for the Review schema.
ReviewClient is a client for the Review schema.
ReviewCreate is the builder for creating a Review entity.
ReviewCreateBulk is the builder for creating many Review entities in bulk.
ReviewDelete is the builder for deleting a Review entity.
ReviewDeleteOne is the builder for deleting a single Review entity.
ReviewEdges holds the relations/edges for other nodes in the graph.
ReviewGroupBy is the group-by builder for Review entities.
ReviewMutation represents an operation that mutates the Review nodes in the graph.
ReviewQuery is the builder for querying Review entities.
ReviewSelect is the builder for selecting fields of Review entities.
ReviewUpdate is the builder for updating Review entities.
ReviewUpdateOne is the builder for updating a single Review entity.
No description provided by the author
ReviewUpsertBulk is the builder for "upsert"-ing a bulk of Review nodes.
No description provided by the author
Tag is the model entity for the Tag schema.
TagClient is a client for the Tag schema.
TagCreate is the builder for creating a Tag entity.
TagCreateBulk is the builder for creating many Tag entities in bulk.
TagDelete is the builder for deleting a Tag entity.
TagDeleteOne is the builder for deleting a single Tag entity.
TagEdges holds the relations/edges for other nodes in the graph.
TagGroupBy is the group-by builder for Tag entities.
TagMutation represents an operation that mutates the Tag nodes in the graph.
TagQuery is the builder for querying Tag entities.
TagSelect is the builder for selecting fields of Tag entities.
TagUpdate is the builder for updating Tag entities.
TagUpdateOne is the builder for updating a single Tag entity.
No description provided by the author
TagUpsertBulk is the builder for "upsert"-ing a bulk of Tag nodes.
No description provided by the author
Tx is a transactional client that is created by calling Client.Tx().
User is the model entity for the User schema.
UserClient is a client for the User schema.
UserCreate is the builder for creating a User entity.
UserCreateBulk is the builder for creating many User entities in bulk.
UserDelete is the builder for deleting a User entity.
UserDeleteOne is the builder for deleting a single User entity.
UserGroupBy is the group-by builder for User entities.
UserMutation represents an operation that mutates the User nodes in the graph.
UserQuery is the builder for querying User entities.
UserSelect is the builder for selecting fields of User entities.
UserUpdate is the builder for updating User entities.
UserUpdateOne is the builder for updating a single User entity.
No description provided by the author
UserUpsertBulk is the builder for "upsert"-ing a bulk of User nodes.
No description provided by the author
ValidationError returns when validating a field or edge fails.

# Interfaces

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

# Type aliases

AggregateFunc applies an aggregation step on the group-by traversal/selector.
No description provided by the author
No description provided by the author
DishAliasSlice is a parsable slice of DishAlias.
Dishes is a parsable slice of Dish.
ent aliases to avoid import conflicts in user's code.
Images is a parsable slice of Image.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
Locations is a parsable slice of Location.
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.
Occurrences is a parsable slice of Occurrence.
ent aliases to avoid import conflicts in user's code.
No description provided by the author
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.
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.
Reviews is a parsable slice of Review.
No description provided by the author
No description provided by the author
Tags is a parsable slice of Tag.
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
Users is a parsable slice of User.
ent aliases to avoid import conflicts in user's code.