# Packages
No description provided by the author
# Functions
AsResourceList returns a slice of Resource from a slice of any type that implements the Resource interface.
CheckResourceList checks that a ResourceList is a slice of types that conform to the Resource interface.
NewQ allocates and returns a new Query object.
NewQuery allocates and returns a new Query object.
NewResourceMap returns a new ResourceMap.
# Constants
These are the kind of relatinships available.
These are the kind of relatinships available.
These are the kind of relatinships available.
These are the kind of relatinships available.
These are the kind of relatinships available.
These are the kind of relatinships available.
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
ErrInvalidColName is returned when registering a Resource without a valid collection name (empty string).
ErrNilResource is returned when a nil pointer is given instead of a valid Resource.
ErrRelationshipNotFound is returned when a specified relationship can not be found.
ErrResourceNotStruct is returned when a non-struct data type is given in place of a Resource.
No description provided by the author
ErrTypeNotRegistered is returned when asking data for a type which has not been registered in the map.
# Structs
DeleteTS adds a timestamp for storing time of delete.
DummyResourceValidator implements the ResourceValidator interface but does not actually validate anything.
Query represents a generic query for a database.
Relationship represents how two databse Resources relate to each other.
ResourceConfig has the needed info to Register a resource in the App.
ResourceMap maintains a relationship of Resource types and their respective table/collections for persistence.
ResourceMapItem has information about the collections for a given resource type.
TS is a group of timestamps for creation and update times.
# Interfaces
Connection is an interface for handling database connections.
RelationshipTargeter is used to extract the relationship target fields without using the reflect-based default implementation.
Repository is an interface implemented by database repositories.
Resource represents an entity that can be persisted to database.
ResourceList is an slice of Resource.
ResourceOwner represents the owner of a Resource.
ResourceValidator interface is used to check the validity of a given resource level is used when the validation is dependent of the current action (creating, updating...).
SoftDeletable is the interface implemented by an object that can be marked for logical deletion.
Toucher is the interface implemented by an object that can update its modification timestamps.
# Type aliases
ConnectionParams is a map which stores database connection parameters.
Dict is an alias to map[string]interface{}.