package
0.8.0
Repository: https://github.com/adrianwit/endly.git
Documentation: pkg.go.dev

# README

Datastore services

Datastore service uses dsunit service to create, populate, and verify content of datastore.

Service IdActionDescriptionRequestResponse
dsunitregisterregister database connectionRegisterRequestRegisterResponse
dsunitrecreaterecreate database/datastoreRecreateRequestRecreateResponse
dsunitsqlrun SQL commandsRunSQLRequestRunSQLResponse
dsunitscriptrun SQL scriptRunScriptRequestRunSQLResponse
dsunitmappingregister database table mapping (view),MappingRequestMappingResponse
dsunitinitinitialize datastore (register, recreate, run sql, add mapping)InitRequestMappingResponse
dsunitpreparepopulate databstore with provided dataPrepareRequestMappingResponse
dsunitexpectverify databstore with provided dataExpectRequestMappingResponse
dsunitqueryrun SQL queryQueryRequestQueryResponse
dsunitsequenceget sequence values for supplied tablesSequenceRequestSequenceResponse

# Functions

AsTableRecords converts data spcified by dataKey into slice of *TableData to create dsunit data as map[string][]map[string]interface{} (table with records).
New creates a new Datastore unit service.

# Constants

ServiceID represents a data store unit service id.

# Structs

PopulateDatastoreEvent represents a populate Datastore event.
RunSQLcriptEvent represents run script event.
TableData represents table data.

# Type aliases

ExpectRequest represents an expect request.
ExpectResponse represent an expect response.
InitRequest represents an init request.
InitResponse represents an init response.
MappingRequest represents a mapping request.
MappingResponse represents a mapping response.
PrepareRequest represents a prepare request.
PrepareResponse represents a prepare response.
QueryRequest represents an query request.
QueryResponse represents dsunit response.
RecreateRequest represents a recreate request.
RecreateResponse represent a recreate response.
RegisterRequest represents a register request.
RegisterResponse represents a register response.
RunScriptRequest represents a script request.
RunSQLRequest represent run SQL request.
RunSQLResponse represents a script response.
type SequenceRequest represents a sequence request.
SequenceResponse represent a sequence response.