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

Typescript: metaAsArray missing in QueryConfig? #231

Closed
MR4online opened this issue Feb 6, 2023 · 1 comment
Closed

Typescript: metaAsArray missing in QueryConfig? #231

MR4online opened this issue Feb 6, 2023 · 1 comment

Comments

@MR4online
Copy link

I think the metaAsArray property is missing in the QueryConfig interface.

The following works, but is not covered by the TypeScript definition:

const connection = mySqlPool.getConnection();
connection.execute({
     sql: "SELECT * FROM test WHERE id = ?",
     metaAsArray: true,
}, [1]).then(async ([results, meta]: any) => {
...
});
@rusher
Copy link
Collaborator

rusher commented Feb 8, 2023

this will be corrected in 3.1.0 with ba70356 commit

@rusher rusher closed this as completed Feb 28, 2023
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