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

Function createRole

test/integration/short/client-pool-tests.js:1103–1105  ·  view source on GitHub ↗
(client, role, password)

Source from the content-addressed store, hash-verified

1101}
1102
1103function createRole(client, role, password) {
1104 return client.execute(`CREATE ROLE IF NOT EXISTS ${role} WITH PASSWORD = '${password}' AND LOGIN = true`);
1105}
1106
1107function assertAuthError(err, message) {
1108 helper.assertInstanceOf(err, errors.NoHostAvailableError);

Callers 1

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected