package
0.0.0-20210314134910-7f4b9de898f3
Repository: https://github.com/csuos/rabums.git
Documentation: pkg.go.dev

# README

ClientServer: +-------------+-----------+--------+----------+----------+---------+---------------+-----------+------------------------------+------------+ | Field | Type | Unique | Optional | Nillable | Default | UpdateDefault | Immutable | StructTag | Validators | +-------------+-----------+--------+----------+----------+---------+---------------+-----------+------------------------------+------------+ | id | int | false | false | false | false | false | false | json:"id,omitempty" | 0 | | client_name | string | false | false | false | false | false | false | json:"client_name,omitempty" | 0 | | token | string | false | false | false | false | false | false | json:"token,omitempty" | 0 | | link | string | false | false | false | false | false | false | json:"link,omitempty" | 0 | | description | string | false | false | false | false | false | false | json:"description,omitempty" | 0 | | available | bool | false | false | false | false | false | false | json:"available,omitempty" | 0 | | created_at | time.Time | false | false | false | true | false | false | json:"created_at,omitempty" | 0 | +-------------+-----------+--------+----------+----------+---------+---------------+-----------+------------------------------+------------+ +--------+-------+---------+--------------+----------+--------+----------+ | Edge | Type | Inverse | BackRef | Relation | Unique | Optional | +--------+-------+---------+--------------+----------+--------+----------+ | events | Event | true | clientserver | O2M | false | true | +--------+-------+---------+--------------+----------+--------+----------+

Event: +------------+-----------+--------+----------+----------+---------+---------------+-----------+-----------------------------+------------+ | Field | Type | Unique | Optional | Nillable | Default | UpdateDefault | Immutable | StructTag | Validators | +------------+-----------+--------+----------+----------+---------+---------------+-----------+-----------------------------+------------+ | id | int | false | false | false | false | false | false | json:"id,omitempty" | 0 | | event | string | false | false | false | false | false | false | json:"event,omitempty" | 0 | | message | string | false | false | false | false | false | false | json:"message,omitempty" | 0 | | created_at | time.Time | false | false | false | true | false | false | json:"created_at,omitempty" | 0 | +------------+-----------+--------+----------+----------+---------+---------------+-----------+-----------------------------+------------+ +--------------+--------------+---------+---------+----------+--------+----------+ | Edge | Type | Inverse | BackRef | Relation | Unique | Optional | +--------------+--------------+---------+---------+----------+--------+----------+ | user | User | false | | M2O | true | true | | clientserver | ClientServer | false | | M2O | true | true | +--------------+--------------+---------+---------+----------+--------+----------+

User: +-------------+-----------+--------+----------+----------+---------+---------------+-----------+------------------------------+------------+ | Field | Type | Unique | Optional | Nillable | Default | UpdateDefault | Immutable | StructTag | Validators | +-------------+-----------+--------+----------+----------+---------+---------------+-----------+------------------------------+------------+ | id | int | false | false | false | false | false | false | json:"id,omitempty" | 0 | | user_id | string | true | false | false | false | false | false | json:"user_id,omitempty" | 0 | | user_pw | string | false | false | false | false | false | false | json:"user_pw,omitempty" | 0 | | user_name | string | false | false | false | false | false | false | json:"user_name,omitempty" | 0 | | user_number | string | false | false | false | false | false | false | json:"user_number,omitempty" | 0 | | email | string | false | false | false | false | false | false | json:"email,omitempty" | 0 | | created_at | time.Time | false | false | false | true | false | false | json:"created_at,omitempty" | 0 | | deleted_at | time.Time | false | true | false | false | false | false | json:"deleted_at,omitempty" | 0 | +-------------+-----------+--------+----------+----------+---------+---------------+-----------+------------------------------+------------+ +--------+-------+---------+---------+----------+--------+----------+ | Edge | Type | Inverse | BackRef | Relation | Unique | Optional | +--------+-------+---------+---------+----------+--------+----------+ | events | Event | true | user | O2M | false | true | +--------+-------+---------+---------+----------+--------+----------+

# 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

# 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 validaton 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.
NewClientServerClient returns a client for the ClientServer from the given config.
NewContext returns a new context with the given Client attached.
NewEventClient returns a client for the Event 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

# Structs

Client is the client that holds all ent builders.
ClientServer is the model entity for the ClientServer schema.
ClientServerClient is a client for the ClientServer schema.
ClientServerCreate is the builder for creating a ClientServer entity.
ClientServerCreateBulk is the builder for creating many ClientServer entities in bulk.
ClientServerDelete is the builder for deleting a ClientServer entity.
ClientServerDeleteOne is the builder for deleting a single ClientServer entity.
ClientServerEdges holds the relations/edges for other nodes in the graph.
ClientServerGroupBy is the group-by builder for ClientServer entities.
ClientServerMutation represents an operation that mutates the ClientServer nodes in the graph.
ClientServerQuery is the builder for querying ClientServer entities.
ClientServerSelect is the builder for selecting fields of ClientServer entities.
ClientServerUpdate is the builder for updating ClientServer entities.
ClientServerUpdateOne is the builder for updating a single ClientServer entity.
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed.
Event is the model entity for the Event schema.
EventClient is a client for the Event schema.
EventCreate is the builder for creating a Event entity.
EventCreateBulk is the builder for creating many Event entities in bulk.
EventDelete is the builder for deleting a Event entity.
EventDeleteOne is the builder for deleting a single Event entity.
EventEdges holds the relations/edges for other nodes in the graph.
EventGroupBy is the group-by builder for Event entities.
EventMutation represents an operation that mutates the Event nodes in the graph.
EventQuery is the builder for querying Event entities.
EventSelect is the builder for selecting fields of Event entities.
EventUpdate is the builder for updating Event entities.
EventUpdateOne is the builder for updating a single Event 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.
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.
UserUpdate is the builder for updating User entities.
UserUpdateOne is the builder for updating a single User entity.
ValidationError returns when validating a field 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.
ClientServers is a parsable slice of ClientServer.
No description provided by the author
No description provided by the author
Events is a parsable slice of Event.
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.
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
Users is a parsable slice of User.
ent aliases to avoid import conflicts in user's code.