Skip to content

option getColumnMetaData and result.columnMetaData #20

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

Merged
merged 3 commits into from
Jan 22, 2015

Conversation

ericwaldheim
Copy link
Contributor

This pull request adds an options argument to connection.execute as an optional 3rd argument. This allows specification of {getColumnMetaData:true} as the options argument.

Regression tests added. Existing tests pass. I will modify the documentation here if/when API is nailed down.
(And then there's the test suite issue I mentioned here: #19 (comment))

Current API example:

    connection.execute(
        "SELECT * FROM person", [], {getColumnMetaData:true},
        function(err, results) {
            if ( err ) { ... } 
            // results.columnMetaData = [ { name: 'ID', type: 4 }, { name: 'NAME', type: 3 } ]
            connection.close();
        }
    );

Thank you

Benjamin Clark and others added 3 commits January 21, 2015 10:33
@raymondfeng raymondfeng merged commit f36c0cc into strongloop:master Jan 22, 2015
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

Successfully merging this pull request may close these issues.

2 participants