Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 9, 2024
1 parent e334b9e commit 707ed68
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 44 deletions.
34 changes: 0 additions & 34 deletions examples/mysql/index.ts

This file was deleted.

10 changes: 0 additions & 10 deletions examples/mysql/package.json

This file was deleted.

1 change: 1 addition & 0 deletions src/connectors/mysql2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default function mysqlConnector(opts: mysql.ConnectionOptions) {

return <Connector>{
name: "mysql",
dialect: "mysql",
exec(sql: string) {
return getConnection().then((c) => c.query(sql).then((res) => res[0]));
},
Expand Down
1 change: 1 addition & 0 deletions test/connectors/mysql2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ describe.runIf(process.env.POSTGRESQL_URL)(
"connectors: mysql2.test",
() => {
testConnector({
dialect: "mysql",
connector: connector({
host: "localhost",
user: "root",
Expand Down

0 comments on commit 707ed68

Please sign in to comment.