Skip to content

Is it possible to run multiple queries at the same time? #1963

Answered by carlopi
Gumichocopengin8 asked this question in Q&A
Discussion options

You must be logged in to vote

There is a way to get both results -> no, at the moment this needs to be split in two statements, like:

const result_first = await conn?.query('SELECT * FROM data_table;');
const result_second = await conn?.query('SHOW tables;');

Allowed -> yes

This is a bit quirky, I am looking into improving the API, might add another interface to execute multiple statement while getting all intermediate results.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Gumichocopengin8
Comment options

Answer selected by Gumichocopengin8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants