Skip to content

Making drivers pluggable #511

@DullReferenceException

Description

@DullReferenceException

I really like the feature set of orm2 and wish I could use it for our application, which has a Cassandra database. My colleagues and I have discussed the option of developing a driver for Cassandra. However, integrating such a thing directly into this repository may be a big distraction as we iterate on and improve said driver.

There may be a way to hack together a plugin that extends orm2, but what would be most ideal is if orm2 allowed you to add external drivers in a documented way. Something like this:

var orm = require('orm2');
orm.addDriver('cassandra', CassandraDriver);

It looks like drivers are already close to being externalizable, but I think a little work is necessary to make this user-friendly.

Are you open to enabling external drivers for orm2? And if you haven't already started an effort toward this, would you welcome pull requests for enabling this functionality?

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