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

Function getClient

test/unit/prepare-handler-tests.js:172–192  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

170});
171
172function getClient(options) {
173 return {
174 metadata: {
175 _infos: {},
176 getPreparedInfo: function (ks, q) {
177 let info = this._infos[ks + '.' + q];
178 if (!info) {
179 info = this._infos[ks + '.' + q] = new events.EventEmitter().setMaxListeners(1000);
180 }
181 return info;
182 },
183 setPreparedById: utils.noop
184 },
185 options: utils.extend({ logEmitter: () => {}}, defaultOptions(), options),
186 profileManager: {
187 getDistance: function (h) {
188 return h.shouldBeIgnored ? types.distance.ignored : types.distance.local;
189 }
190 }
191 };
192}

Callers 1

Calls 1

defaultOptionsFunction · 0.85

Tested by

no test coverage detected