Skip to content

Commit

Permalink
mysql - removing options that are invalid (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredwray authored Jan 21, 2023
1 parent 201c72d commit d498d44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/mysql/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class KeyvMysql extends EventEmitter {
),
);

delete mysqlOptions.namespace;
delete mysqlOptions.serialize;
delete mysqlOptions.deserialize;

options.connect = () => Promise.resolve()
.then(() => pool(options.uri, mysqlOptions))
.then(connection => sql => connection.execute(sql)
Expand Down

0 comments on commit d498d44

Please sign in to comment.