package
4.4.4
Repository: https://github.com/b2wdigital/restql-golang.git
Documentation: pkg.go.dev

# Functions

NewDatabase constructs a Database compliant value from the database plugin registered.
NewMappingReader constructs a MappingsReader instance.
NewMappingWriter creates an instance of MappingsWriter.
NewQueryReader constructs a QueryReader from the given configuration and database.
NewQueryWriter creates a QueryWriter instance.

# Variables

ErrCreateRevisionNotAllowed is returned when trying to write a query revision on a query stored on local or env.
ErrSetResourceMappingNotAllowed is returned when trying to write a resource mapping on a resource stored on local or env.

# Structs

MappingsReader fetch indexed mappings from database, configuration file and environment variable.
MappingsWriter is the entity that maps resource name to URL.
A QueryReader get a query from local configuration file or a database instance.
QueryWriter is the entity that create a new query revision when it is stored on the database.

# Type aliases

Database defines the operations exposed by an external store.