# README
Datastore services
Datastore service uses dsunit service to create, populate, and verify content of datastore.
Service Id | Action | Description | Request | Response |
---|---|---|---|---|
dsunit | register | register database connection | RegisterRequest | RegisterResponse |
dsunit | recreate | recreate database/datastore | RecreateRequest | RecreateResponse |
dsunit | sql | run SQL commands | RunSQLRequest | RunSQLResponse |
dsunit | script | run SQL script | RunScriptRequest | RunSQLResponse |
dsunit | mapping | register database table mapping (view), | MappingRequest | MappingResponse |
dsunit | init | initialize datastore (register, recreate, run sql, add mapping) | InitRequest | MappingResponse |
dsunit | prepare | populate databstore with provided data | PrepareRequest | MappingResponse |
dsunit | expect | verify databstore with provided data | ExpectRequest | MappingResponse |
dsunit | query | run SQL query | QueryRequest | QueryResponse |
dsunit | sequence | get sequence values for supplied tables | SequenceRequest | SequenceResponse |
# 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.