Skip to content

Requesting documentation on how to run transactions with MySQL connection pools. #490

@deanhuynh

Description

@deanhuynh

Describe the issue

It seems like with this wrapper transactions are run by executing a string of queries to BEGIN, execute, and COMMIT the transaction. However, there is no concept of getting an individual connection from the client that I can find. If we are running multiple queries synchronously and use a pool, how can we run transactions and ensure the queries are run on the same connection so as to not overlap with another transaction?

Also, it would be nice to have an example of the preferred way to extract the output data from a query, instead of just printing the object.

Links

https://github.com/aws/aws-advanced-nodejs-wrapper/blob/main/examples/aws_driver_example/aws_internal_connection_pooling_mysql_example.ts

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationpending releaseResolution implemented, pending official release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions