-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Driver Dialects | ||
|
||
## What are Driver Dialects? | ||
|
||
The AWS Advanced NodeJS Wrapper is a wrapper that requires an underlying driver. It is currently compatible with [pg](https://github.com/brianc/node-postgres) and [mysql2](https://github.com/sidorares/node-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. | ||
|
||
### List of Available Driver Dialects | ||
|
||
| Database Type | Client | Driver Dialect | Underlying Node Driver | | ||
| ------------- | ---------------- | --------------------------- | -------------------------------------------------------- | | ||
| MySQL | `AwsMySQLClient` | `MySQL2DriverDialect` | [node-mysql2](https://github.com/sidorares/node-mysql2) | | ||
| PostgreSQL | `AwsPgClient` | `NodePostgresDriverDialect` | [node-postgres](https://github.com/brianc/node-postgres) | |