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

Method getProfile

lib/execution-profile.js:203–208  ·  view source on GitHub ↗

* @param {String|ExecutionProfile} name * @returns {ExecutionProfile|undefined} It returns the execution profile by name or the default profile when name is * undefined. It returns undefined when the profile does not exist.

(name)

Source from the content-addressed store, hash-verified

201 * undefined. It returns undefined when the profile does not exist.
202 */
203 getProfile(name) {
204 if (name instanceof ExecutionProfile) {
205 return name;
206 }
207 return this._profilesMap[name || 'default'];
208 }
209
210 /** @returns {ExecutionProfile} */
211 getDefault() {

Callers 2

constructorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected