Skip to content

Using createConnection with an object? #82

@joereynolds

Description

@joereynolds

I can see that in the docs it states that you don't have to pass a URL into anyDB.createConnection but that this can actually be an object so long as it follows a certain interface.

I can't find the allowed keys anywhere, I found one place where it mentioned adapter as the key but if that's the case, how do I specify 'host', 'user', 'password' etc...?

Is there a concrete implementation we can see somewhere?

I'm using Typescript if that affects anything so could it be a case of the types not being up to date?

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