MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / newInstance

Function newInstance

test/unit/connection-tests.js:281–288  ·  view source on GitHub ↗

@return {Connection}

(address, protocolVersion, options, writeQueue)

Source from the content-addressed store, hash-verified

279
280/** @return {Connection} */
281function newInstance(address, protocolVersion, options, writeQueue){
282 address = address || helper.baseOptions.contactPoints[0];
283 options = utils.deepExtend({ logEmitter: helper.noop }, defaultOptions, options);
284 const c = new Connection(address + ':' + 9000, protocolVersion || 1, options);
285 c.connected = !!writeQueue;
286 c.writeQueue = writeQueue;
287 return c;
288}
289
290function getWriteQueueFake(sent) {
291 sent = sent || [];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected