Suggestion: Allow Execution driver to execute multiple queries #904
Labels
api
Related to library's API
breaking change
Includes breaking changes
built-in dialect
Related to a built-in dialect
custom dialect
Related to a custom dialect
enhancement
New feature or request
DatabaseConnection
has aexecuteQuery
method. I believe it will be beneficial to add the plural form as wellexecuteQueries
, which receive an array of queries. This should be exposed fromkysely
class as well.What is the gain ?
Several dialects (
D1
/Turso
) drivers can use the plural form as intent to run their nativebatch
command, which is a best practice for them. The base class or default implementation in executor shall have a uniform implementation of:Then, other dialects can override this behavior in the driver level, is this too much to ask for ? It seems like an easy win with no cost to me :)
BTW, Drizzle has recognized this issue and supports it for al the mentioned databases above.
The text was updated successfully, but these errors were encountered: