Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database Name in congifuration #7

Closed
nambad opened this issue Jan 17, 2012 · 2 comments
Closed

Database Name in congifuration #7

nambad opened this issue Jan 17, 2012 · 2 comments
Assignees

Comments

@nambad
Copy link

nambad commented Jan 17, 2012

Hi,

Awesome implementation... But Isnt database name a part of the connection string?? It would be great if database name can be passed in the configuration

@pekim
Copy link
Collaborator

pekim commented Jan 17, 2012

It's supported, but missing from the documentation (http://pekim.github.com/tedious/api-connection.html).

In the config object passed to the Connection constructor, you can supply it in the options property.

var config = {
    server: "...",
    userName: "...",
    ...
    options: {
        database: "...",
        ...
    }
}

var connection = new Connection(config);

Please leave this issue open, and I'll add it to the documentation.

@ghost ghost assigned pekim Jan 17, 2012
@nambad nambad closed this as completed Jan 18, 2012
@nambad nambad reopened this Jan 18, 2012
@nambad nambad closed this as completed Jan 18, 2012
@nambad
Copy link
Author

nambad commented Jan 18, 2012

k... thnx

@pekim pekim reopened this Jan 19, 2012
@pekim pekim closed this as completed in e70213c Feb 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants