This article is deprecated.
The AsyncDistributedSqlEngine method
executeMany()takes arguments for substitution into query strings. These arguments are specified in the following ConnectionArgs structure:struct ConnectionArgs { McoSql::Value **args; size_t nargs; ConnectionArgs(McoSql::Allocator *allocator, size_t size) : nargs(size) { args = (McoSql::Value **)allocator->allocate(sizeof(McoSql::Value *) * nargs); } DESTROY(ConnectionArgs) };Parameter Descriptions
args An array or values nargs The number ofarguments Example
Typically a C++ application will instantiate ConnectionArgs in the main program as illustrated below:
const size_t nWorkers = 4; int main(int argc, char** argv) { try { McoSql::AsyncDistributedSqlEngine engine(nWorkers); ... } }