Skip to content

Commit

Permalink
Merge pull request #218 from Aiko-Suzuki/patch-1
Browse files Browse the repository at this point in the history
Add charset support for mysql
  • Loading branch information
eveningkid committed Apr 6, 2021
2 parents 3dd3171 + 4951232 commit 6e06223
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/connectors/mysql-connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface MySQLOptions extends ConnectorOptions {
username: string;
password: string;
port?: number;
charset?: string;
}

export class MySQLConnector implements Connector {
Expand Down Expand Up @@ -38,6 +39,7 @@ export class MySQLConnector implements Connector {
db: this._options.database,
password: this._options.password,
port: this._options.port ?? 3306,
charset: this._options.charset ?? "utf8",
});

this._connected = true;
Expand Down

0 comments on commit 6e06223

Please sign in to comment.