package
1.1.7
Repository: https://github.com/tinygodsdev/orrery.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
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
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.
NewInterpretationClient returns a client for the Interpretation from the given config.
NewInterpretationTranslationClient returns a client for the InterpretationTranslation from the given config.
NewItemClient returns a client for the Item from the given config.
NewItemTranslationClient returns a client for the ItemTranslation from the given config.
NewNormClient returns a client for the Norm from the given config.
NewQuestionClient returns a client for the Question from the given config.
NewQuestionTranslationClient returns a client for the QuestionTranslation from the given config.
NewResponseClient returns a client for the Response from the given config.
NewResultClient returns a client for the Result from the given config.
NewSampleClient returns a client for the Sample from the given config.
NewScaleClient returns a client for the Scale from the given config.
NewScaleItemClient returns a client for the ScaleItem from the given config.
NewScaleTranslationClient returns a client for the ScaleTranslation from the given config.
NewTagClient returns a client for the Tag from the given config.
NewTagTranslationClient returns a client for the TagTranslation from the given config.
NewTakeClient returns a client for the Take from the given config.
NewTestClient returns a client for the Test from the given config.
NewTestDisplayClient returns a client for the TestDisplay from the given config.
NewTestTranslationClient returns a client for the TestTranslation 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.
NewUserSessionClient returns a client for the UserSession 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
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

# 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.
Interpretation is the model entity for the Interpretation schema.
InterpretationClient is a client for the Interpretation schema.
InterpretationCreate is the builder for creating a Interpretation entity.
InterpretationCreateBulk is the builder for creating many Interpretation entities in bulk.
InterpretationDelete is the builder for deleting a Interpretation entity.
InterpretationDeleteOne is the builder for deleting a single Interpretation entity.
InterpretationEdges holds the relations/edges for other nodes in the graph.
InterpretationGroupBy is the group-by builder for Interpretation entities.
InterpretationMutation represents an operation that mutates the Interpretation nodes in the graph.
InterpretationQuery is the builder for querying Interpretation entities.
InterpretationSelect is the builder for selecting fields of Interpretation entities.
InterpretationTranslation is the model entity for the InterpretationTranslation schema.
InterpretationTranslationClient is a client for the InterpretationTranslation schema.
InterpretationTranslationCreate is the builder for creating a InterpretationTranslation entity.
InterpretationTranslationCreateBulk is the builder for creating many InterpretationTranslation entities in bulk.
InterpretationTranslationDelete is the builder for deleting a InterpretationTranslation entity.
InterpretationTranslationDeleteOne is the builder for deleting a single InterpretationTranslation entity.
InterpretationTranslationEdges holds the relations/edges for other nodes in the graph.
InterpretationTranslationGroupBy is the group-by builder for InterpretationTranslation entities.
InterpretationTranslationMutation represents an operation that mutates the InterpretationTranslation nodes in the graph.
InterpretationTranslationQuery is the builder for querying InterpretationTranslation entities.
InterpretationTranslationSelect is the builder for selecting fields of InterpretationTranslation entities.
InterpretationTranslationUpdate is the builder for updating InterpretationTranslation entities.
InterpretationTranslationUpdateOne is the builder for updating a single InterpretationTranslation entity.
InterpretationUpdate is the builder for updating Interpretation entities.
InterpretationUpdateOne is the builder for updating a single Interpretation entity.
Item is the model entity for the Item schema.
ItemClient is a client for the Item schema.
ItemCreate is the builder for creating a Item entity.
ItemCreateBulk is the builder for creating many Item entities in bulk.
ItemDelete is the builder for deleting a Item entity.
ItemDeleteOne is the builder for deleting a single Item entity.
ItemEdges holds the relations/edges for other nodes in the graph.
ItemGroupBy is the group-by builder for Item entities.
ItemMutation represents an operation that mutates the Item nodes in the graph.
ItemQuery is the builder for querying Item entities.
ItemSelect is the builder for selecting fields of Item entities.
ItemTranslation is the model entity for the ItemTranslation schema.
ItemTranslationClient is a client for the ItemTranslation schema.
ItemTranslationCreate is the builder for creating a ItemTranslation entity.
ItemTranslationCreateBulk is the builder for creating many ItemTranslation entities in bulk.
ItemTranslationDelete is the builder for deleting a ItemTranslation entity.
ItemTranslationDeleteOne is the builder for deleting a single ItemTranslation entity.
ItemTranslationEdges holds the relations/edges for other nodes in the graph.
ItemTranslationGroupBy is the group-by builder for ItemTranslation entities.
ItemTranslationMutation represents an operation that mutates the ItemTranslation nodes in the graph.
ItemTranslationQuery is the builder for querying ItemTranslation entities.
ItemTranslationSelect is the builder for selecting fields of ItemTranslation entities.
ItemTranslationUpdate is the builder for updating ItemTranslation entities.
ItemTranslationUpdateOne is the builder for updating a single ItemTranslation entity.
ItemUpdate is the builder for updating Item entities.
ItemUpdateOne is the builder for updating a single Item entity.
Norm is the model entity for the Norm schema.
NormClient is a client for the Norm schema.
NormCreate is the builder for creating a Norm entity.
NormCreateBulk is the builder for creating many Norm entities in bulk.
NormDelete is the builder for deleting a Norm entity.
NormDeleteOne is the builder for deleting a single Norm entity.
NormEdges holds the relations/edges for other nodes in the graph.
NormGroupBy is the group-by builder for Norm entities.
NormMutation represents an operation that mutates the Norm nodes in the graph.
NormQuery is the builder for querying Norm entities.
NormSelect is the builder for selecting fields of Norm entities.
NormUpdate is the builder for updating Norm entities.
NormUpdateOne is the builder for updating a single Norm entity.
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.
Question is the model entity for the Question schema.
QuestionClient is a client for the Question schema.
QuestionCreate is the builder for creating a Question entity.
QuestionCreateBulk is the builder for creating many Question entities in bulk.
QuestionDelete is the builder for deleting a Question entity.
QuestionDeleteOne is the builder for deleting a single Question entity.
QuestionEdges holds the relations/edges for other nodes in the graph.
QuestionGroupBy is the group-by builder for Question entities.
QuestionMutation represents an operation that mutates the Question nodes in the graph.
QuestionQuery is the builder for querying Question entities.
QuestionSelect is the builder for selecting fields of Question entities.
QuestionTranslation is the model entity for the QuestionTranslation schema.
QuestionTranslationClient is a client for the QuestionTranslation schema.
QuestionTranslationCreate is the builder for creating a QuestionTranslation entity.
QuestionTranslationCreateBulk is the builder for creating many QuestionTranslation entities in bulk.
QuestionTranslationDelete is the builder for deleting a QuestionTranslation entity.
QuestionTranslationDeleteOne is the builder for deleting a single QuestionTranslation entity.
QuestionTranslationEdges holds the relations/edges for other nodes in the graph.
QuestionTranslationGroupBy is the group-by builder for QuestionTranslation entities.
QuestionTranslationMutation represents an operation that mutates the QuestionTranslation nodes in the graph.
QuestionTranslationQuery is the builder for querying QuestionTranslation entities.
QuestionTranslationSelect is the builder for selecting fields of QuestionTranslation entities.
QuestionTranslationUpdate is the builder for updating QuestionTranslation entities.
QuestionTranslationUpdateOne is the builder for updating a single QuestionTranslation entity.
QuestionUpdate is the builder for updating Question entities.
QuestionUpdateOne is the builder for updating a single Question entity.
Response is the model entity for the Response schema.
ResponseClient is a client for the Response schema.
ResponseCreate is the builder for creating a Response entity.
ResponseCreateBulk is the builder for creating many Response entities in bulk.
ResponseDelete is the builder for deleting a Response entity.
ResponseDeleteOne is the builder for deleting a single Response entity.
ResponseEdges holds the relations/edges for other nodes in the graph.
ResponseGroupBy is the group-by builder for Response entities.
ResponseMutation represents an operation that mutates the Response nodes in the graph.
ResponseQuery is the builder for querying Response entities.
ResponseSelect is the builder for selecting fields of Response entities.
ResponseUpdate is the builder for updating Response entities.
ResponseUpdateOne is the builder for updating a single Response entity.
Result is the model entity for the Result schema.
ResultClient is a client for the Result schema.
ResultCreate is the builder for creating a Result entity.
ResultCreateBulk is the builder for creating many Result entities in bulk.
ResultDelete is the builder for deleting a Result entity.
ResultDeleteOne is the builder for deleting a single Result entity.
ResultEdges holds the relations/edges for other nodes in the graph.
ResultGroupBy is the group-by builder for Result entities.
ResultMutation represents an operation that mutates the Result nodes in the graph.
ResultQuery is the builder for querying Result entities.
ResultSelect is the builder for selecting fields of Result entities.
ResultUpdate is the builder for updating Result entities.
ResultUpdateOne is the builder for updating a single Result entity.
Sample is the model entity for the Sample schema.
SampleClient is a client for the Sample schema.
SampleCreate is the builder for creating a Sample entity.
SampleCreateBulk is the builder for creating many Sample entities in bulk.
SampleDelete is the builder for deleting a Sample entity.
SampleDeleteOne is the builder for deleting a single Sample entity.
SampleEdges holds the relations/edges for other nodes in the graph.
SampleGroupBy is the group-by builder for Sample entities.
SampleMutation represents an operation that mutates the Sample nodes in the graph.
SampleQuery is the builder for querying Sample entities.
SampleSelect is the builder for selecting fields of Sample entities.
SampleUpdate is the builder for updating Sample entities.
SampleUpdateOne is the builder for updating a single Sample entity.
Scale is the model entity for the Scale schema.
ScaleClient is a client for the Scale schema.
ScaleCreate is the builder for creating a Scale entity.
ScaleCreateBulk is the builder for creating many Scale entities in bulk.
ScaleDelete is the builder for deleting a Scale entity.
ScaleDeleteOne is the builder for deleting a single Scale entity.
ScaleEdges holds the relations/edges for other nodes in the graph.
ScaleGroupBy is the group-by builder for Scale entities.
ScaleItem is the model entity for the ScaleItem schema.
ScaleItemClient is a client for the ScaleItem schema.
ScaleItemCreate is the builder for creating a ScaleItem entity.
ScaleItemCreateBulk is the builder for creating many ScaleItem entities in bulk.
ScaleItemDelete is the builder for deleting a ScaleItem entity.
ScaleItemDeleteOne is the builder for deleting a single ScaleItem entity.
ScaleItemEdges holds the relations/edges for other nodes in the graph.
ScaleItemGroupBy is the group-by builder for ScaleItem entities.
ScaleItemMutation represents an operation that mutates the ScaleItem nodes in the graph.
ScaleItemQuery is the builder for querying ScaleItem entities.
ScaleItemSelect is the builder for selecting fields of ScaleItem entities.
ScaleItemUpdate is the builder for updating ScaleItem entities.
ScaleItemUpdateOne is the builder for updating a single ScaleItem entity.
ScaleMutation represents an operation that mutates the Scale nodes in the graph.
ScaleQuery is the builder for querying Scale entities.
ScaleSelect is the builder for selecting fields of Scale entities.
ScaleTranslation is the model entity for the ScaleTranslation schema.
ScaleTranslationClient is a client for the ScaleTranslation schema.
ScaleTranslationCreate is the builder for creating a ScaleTranslation entity.
ScaleTranslationCreateBulk is the builder for creating many ScaleTranslation entities in bulk.
ScaleTranslationDelete is the builder for deleting a ScaleTranslation entity.
ScaleTranslationDeleteOne is the builder for deleting a single ScaleTranslation entity.
ScaleTranslationEdges holds the relations/edges for other nodes in the graph.
ScaleTranslationGroupBy is the group-by builder for ScaleTranslation entities.
ScaleTranslationMutation represents an operation that mutates the ScaleTranslation nodes in the graph.
ScaleTranslationQuery is the builder for querying ScaleTranslation entities.
ScaleTranslationSelect is the builder for selecting fields of ScaleTranslation entities.
ScaleTranslationUpdate is the builder for updating ScaleTranslation entities.
ScaleTranslationUpdateOne is the builder for updating a single ScaleTranslation entity.
ScaleUpdate is the builder for updating Scale entities.
ScaleUpdateOne is the builder for updating a single Scale entity.
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.
TagTranslation is the model entity for the TagTranslation schema.
TagTranslationClient is a client for the TagTranslation schema.
TagTranslationCreate is the builder for creating a TagTranslation entity.
TagTranslationCreateBulk is the builder for creating many TagTranslation entities in bulk.
TagTranslationDelete is the builder for deleting a TagTranslation entity.
TagTranslationDeleteOne is the builder for deleting a single TagTranslation entity.
TagTranslationEdges holds the relations/edges for other nodes in the graph.
TagTranslationGroupBy is the group-by builder for TagTranslation entities.
TagTranslationMutation represents an operation that mutates the TagTranslation nodes in the graph.
TagTranslationQuery is the builder for querying TagTranslation entities.
TagTranslationSelect is the builder for selecting fields of TagTranslation entities.
TagTranslationUpdate is the builder for updating TagTranslation entities.
TagTranslationUpdateOne is the builder for updating a single TagTranslation entity.
TagUpdate is the builder for updating Tag entities.
TagUpdateOne is the builder for updating a single Tag entity.
Take is the model entity for the Take schema.
TakeClient is a client for the Take schema.
TakeCreate is the builder for creating a Take entity.
TakeCreateBulk is the builder for creating many Take entities in bulk.
TakeDelete is the builder for deleting a Take entity.
TakeDeleteOne is the builder for deleting a single Take entity.
TakeEdges holds the relations/edges for other nodes in the graph.
TakeGroupBy is the group-by builder for Take entities.
TakeMutation represents an operation that mutates the Take nodes in the graph.
TakeQuery is the builder for querying Take entities.
TakeSelect is the builder for selecting fields of Take entities.
TakeUpdate is the builder for updating Take entities.
TakeUpdateOne is the builder for updating a single Take entity.
Test is the model entity for the Test schema.
TestClient is a client for the Test schema.
TestCreate is the builder for creating a Test entity.
TestCreateBulk is the builder for creating many Test entities in bulk.
TestDelete is the builder for deleting a Test entity.
TestDeleteOne is the builder for deleting a single Test entity.
TestDisplay is the model entity for the TestDisplay schema.
TestDisplayClient is a client for the TestDisplay schema.
TestDisplayCreate is the builder for creating a TestDisplay entity.
TestDisplayCreateBulk is the builder for creating many TestDisplay entities in bulk.
TestDisplayDelete is the builder for deleting a TestDisplay entity.
TestDisplayDeleteOne is the builder for deleting a single TestDisplay entity.
TestDisplayEdges holds the relations/edges for other nodes in the graph.
TestDisplayGroupBy is the group-by builder for TestDisplay entities.
TestDisplayMutation represents an operation that mutates the TestDisplay nodes in the graph.
TestDisplayQuery is the builder for querying TestDisplay entities.
TestDisplaySelect is the builder for selecting fields of TestDisplay entities.
TestDisplayUpdate is the builder for updating TestDisplay entities.
TestDisplayUpdateOne is the builder for updating a single TestDisplay entity.
TestEdges holds the relations/edges for other nodes in the graph.
TestGroupBy is the group-by builder for Test entities.
TestMutation represents an operation that mutates the Test nodes in the graph.
TestQuery is the builder for querying Test entities.
TestSelect is the builder for selecting fields of Test entities.
TestTranslation is the model entity for the TestTranslation schema.
TestTranslationClient is a client for the TestTranslation schema.
TestTranslationCreate is the builder for creating a TestTranslation entity.
TestTranslationCreateBulk is the builder for creating many TestTranslation entities in bulk.
TestTranslationDelete is the builder for deleting a TestTranslation entity.
TestTranslationDeleteOne is the builder for deleting a single TestTranslation entity.
TestTranslationEdges holds the relations/edges for other nodes in the graph.
TestTranslationGroupBy is the group-by builder for TestTranslation entities.
TestTranslationMutation represents an operation that mutates the TestTranslation nodes in the graph.
TestTranslationQuery is the builder for querying TestTranslation entities.
TestTranslationSelect is the builder for selecting fields of TestTranslation entities.
TestTranslationUpdate is the builder for updating TestTranslation entities.
TestTranslationUpdateOne is the builder for updating a single TestTranslation entity.
TestUpdate is the builder for updating Test entities.
TestUpdateOne is the builder for updating a single Test entity.
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.
UserEdges holds the relations/edges for other nodes in the graph.
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.
UserSession is the model entity for the UserSession schema.
UserSessionClient is a client for the UserSession schema.
UserSessionCreate is the builder for creating a UserSession entity.
UserSessionCreateBulk is the builder for creating many UserSession entities in bulk.
UserSessionDelete is the builder for deleting a UserSession entity.
UserSessionDeleteOne is the builder for deleting a single UserSession entity.
UserSessionEdges holds the relations/edges for other nodes in the graph.
UserSessionGroupBy is the group-by builder for UserSession entities.
UserSessionMutation represents an operation that mutates the UserSession nodes in the graph.
UserSessionQuery is the builder for querying UserSession entities.
UserSessionSelect is the builder for selecting fields of UserSession entities.
UserSessionUpdate is the builder for updating UserSession entities.
UserSessionUpdateOne is the builder for updating a single UserSession entity.
UserUpdate is the builder for updating User entities.
UserUpdateOne is the builder for updating a single User entity.
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
ent aliases to avoid import conflicts in user's code.
Interpretations is a parsable slice of Interpretation.
InterpretationTranslations is a parsable slice of InterpretationTranslation.
Items is a parsable slice of Item.
ItemTranslations is a parsable slice of ItemTranslation.
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.
Norms is a parsable slice of Norm.
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.
Questions is a parsable slice of Question.
QuestionTranslations is a parsable slice of QuestionTranslation.
Responses is a parsable slice of Response.
Results is a parsable slice of Result.
No description provided by the author
No description provided by the author
Samples is a parsable slice of Sample.
ScaleItems is a parsable slice of ScaleItem.
Scales is a parsable slice of Scale.
ScaleTranslations is a parsable slice of ScaleTranslation.
Tags is a parsable slice of Tag.
TagTranslations is a parsable slice of TagTranslation.
Takes is a parsable slice of Take.
TestDisplays is a parsable slice of TestDisplay.
Tests is a parsable slice of Test.
TestTranslations is a parsable slice of TestTranslation.
Users is a parsable slice of User.
UserSessions is a parsable slice of UserSession.
ent aliases to avoid import conflicts in user's code.