package
0.0.0-20241223183755-35153810ea79
Repository: https://github.com/devldavydov/myfood.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

# 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.
NewActivityClient returns a client for the Activity from the given config.
NewBundleClient returns a client for the Bundle from the given config.
NewClient creates a new client configured with the given options.
NewContext returns a new context with the given Client attached.
NewFoodClient returns a client for the Food from the given config.
NewJournalClient returns a client for the Journal from the given config.
NewTxContext returns a new context with the given Tx attached.
NewUserSettingsClient returns a client for the UserSettings from the given config.
NewWeightClient returns a client for the Weight 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

# Variables

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

# Structs

Activity is the model entity for the Activity schema.
ActivityClient is a client for the Activity schema.
ActivityCreate is the builder for creating a Activity entity.
ActivityCreateBulk is the builder for creating many Activity entities in bulk.
ActivityDelete is the builder for deleting a Activity entity.
ActivityDeleteOne is the builder for deleting a single Activity entity.
ActivityGroupBy is the group-by builder for Activity entities.
ActivityMutation represents an operation that mutates the Activity nodes in the graph.
ActivityQuery is the builder for querying Activity entities.
ActivitySelect is the builder for selecting fields of Activity entities.
ActivityUpdate is the builder for updating Activity entities.
ActivityUpdateOne is the builder for updating a single Activity entity.
No description provided by the author
ActivityUpsertBulk is the builder for "upsert"-ing a bulk of Activity nodes.
No description provided by the author
Bundle is the model entity for the Bundle schema.
BundleClient is a client for the Bundle schema.
BundleCreate is the builder for creating a Bundle entity.
BundleCreateBulk is the builder for creating many Bundle entities in bulk.
BundleDelete is the builder for deleting a Bundle entity.
BundleDeleteOne is the builder for deleting a single Bundle entity.
BundleGroupBy is the group-by builder for Bundle entities.
BundleMutation represents an operation that mutates the Bundle nodes in the graph.
BundleQuery is the builder for querying Bundle entities.
BundleSelect is the builder for selecting fields of Bundle entities.
BundleUpdate is the builder for updating Bundle entities.
BundleUpdateOne is the builder for updating a single Bundle entity.
No description provided by the author
BundleUpsertBulk is the builder for "upsert"-ing a bulk of Bundle 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.
Food is the model entity for the Food schema.
FoodClient is a client for the Food schema.
FoodCreate is the builder for creating a Food entity.
FoodCreateBulk is the builder for creating many Food entities in bulk.
FoodDelete is the builder for deleting a Food entity.
FoodDeleteOne is the builder for deleting a single Food entity.
FoodEdges holds the relations/edges for other nodes in the graph.
FoodGroupBy is the group-by builder for Food entities.
FoodMutation represents an operation that mutates the Food nodes in the graph.
FoodQuery is the builder for querying Food entities.
FoodSelect is the builder for selecting fields of Food entities.
FoodUpdate is the builder for updating Food entities.
FoodUpdateOne is the builder for updating a single Food entity.
No description provided by the author
FoodUpsertBulk is the builder for "upsert"-ing a bulk of Food nodes.
No description provided by the author
Journal is the model entity for the Journal schema.
JournalClient is a client for the Journal schema.
JournalCreate is the builder for creating a Journal entity.
JournalCreateBulk is the builder for creating many Journal entities in bulk.
JournalDelete is the builder for deleting a Journal entity.
JournalDeleteOne is the builder for deleting a single Journal entity.
JournalEdges holds the relations/edges for other nodes in the graph.
JournalGroupBy is the group-by builder for Journal entities.
JournalMutation represents an operation that mutates the Journal nodes in the graph.
JournalQuery is the builder for querying Journal entities.
JournalSelect is the builder for selecting fields of Journal entities.
JournalUpdate is the builder for updating Journal entities.
JournalUpdateOne is the builder for updating a single Journal entity.
No description provided by the author
JournalUpsertBulk is the builder for "upsert"-ing a bulk of Journal 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().
UserSettings is the model entity for the UserSettings schema.
UserSettingsClient is a client for the UserSettings schema.
UserSettingsCreate is the builder for creating a UserSettings entity.
UserSettingsCreateBulk is the builder for creating many UserSettings entities in bulk.
UserSettingsDelete is the builder for deleting a UserSettings entity.
UserSettingsDeleteOne is the builder for deleting a single UserSettings entity.
UserSettingsGroupBy is the group-by builder for UserSettings entities.
UserSettingsMutation represents an operation that mutates the UserSettings nodes in the graph.
UserSettingsQuery is the builder for querying UserSettings entities.
UserSettingsSelect is the builder for selecting fields of UserSettings entities.
UserSettingsUpdate is the builder for updating UserSettings entities.
UserSettingsUpdateOne is the builder for updating a single UserSettings entity.
No description provided by the author
UserSettingsUpsertBulk is the builder for "upsert"-ing a bulk of UserSettings nodes.
No description provided by the author
ValidationError returns when validating a field or edge fails.
Weight is the model entity for the Weight schema.
WeightClient is a client for the Weight schema.
WeightCreate is the builder for creating a Weight entity.
WeightCreateBulk is the builder for creating many Weight entities in bulk.
WeightDelete is the builder for deleting a Weight entity.
WeightDeleteOne is the builder for deleting a single Weight entity.
WeightGroupBy is the group-by builder for Weight entities.
WeightMutation represents an operation that mutates the Weight nodes in the graph.
WeightQuery is the builder for querying Weight entities.
WeightSelect is the builder for selecting fields of Weight entities.
WeightUpdate is the builder for updating Weight entities.
WeightUpdateOne is the builder for updating a single Weight entity.
No description provided by the author
WeightUpsertBulk is the builder for "upsert"-ing a bulk of Weight nodes.
No description provided by the author

# Interfaces

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

# Type aliases

Activities is a parsable slice of Activity.
AggregateFunc applies an aggregation step on the group-by traversal/selector.
Bundles is a parsable slice of Bundle.
No description provided by the author
No description provided by the author
Foods is a parsable slice of Food.
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.
Journals is a parsable slice of Journal.
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.
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.
No description provided by the author
No description provided by the author
ent aliases to avoid import conflicts in user's code.
ent aliases to avoid import conflicts in user's code.
UserSettingsSlice is a parsable slice of UserSettings.
ent aliases to avoid import conflicts in user's code.
Weights is a parsable slice of Weight.