-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add charset support for mysql #218
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Aiko,
This is great, I wasn't aware of this option so let's make it available to everybody :)
I know it's annoying, but if you could just remove the extra spaces first, then I'll be able to merge this.
Thank you!
lib/connectors/mysql-connector.ts
Outdated
@@ -10,6 +10,7 @@ export interface MySQLOptions extends ConnectorOptions { | |||
username: string; | |||
password: string; | |||
port?: number; | |||
charset? : string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
charset?: string;
, there's an extra space here
lib/connectors/mysql-connector.ts
Outdated
@@ -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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here again: charset: this._options...
there you go should be fine now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, thanks!
Have a great day :)
Shouldn't the default value be the non-broken 'utf8mb4' value instead here? |
No description provided.