Skip to content

Driver function won't run #202

@measwel

Description

@measwel

As per documentation, models.driver should point to the cassandra driver instance, so one should be able to run driver functions. I am trying to execute a query with the driver:

models.driver.execute(q, function (err, result) {

But this throws: "stacktrace": "TypeError: models.driver.execute is not a function

The models.driver properties are:
[ 'Client',
'ExecutionProfile',
'types',
'errors',
'policies',
'auth',
'token',
'metadata',
'Encoder',
'defaultOptions',
'version',
'ClientAsync',
'ExecutionProfileAsync',
'EncoderAsync',
'defaultOptionsAsync' ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions