The AWS Advanced NodeJS Wrapper is a wrapper that requires an underlying driver. It is currently compatible with pg and mysql2. Driver dialects help the AWS Advanced NodeJS Wrapper to properly pass calls to a target driver. To function correctly, the AWS Advanced NodeJS Wrapper requires details unique to the specific target driver such as the method to create the current connection, whether to include some specific connection parameters, etc. These details can be defined and provided to the AWS Advanced NodeJS Wrapper by using driver dialects.
To get a connection with the AWS Advanced NodeJS Wrapper, the user application can create a client object and connect. The database type being connected to determines the client and the driver dialect.
Database Type | Client | Driver Dialect | Underlying Node Driver |
---|---|---|---|
MySQL | AwsMySQLClient |
MySQL2DriverDialect |
node-mysql2 |
PostgreSQL | AwsPgClient |
NodePostgresDriverDialect |
node-postgres |