Skip to content

Commit 0e08207

Browse files
committed
using pg-cloudflare
1 parent 44bf3e0 commit 0e08207

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

lib/stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ module.exports.getStream = function getStream(ssl = false) {
99
if (typeof net.Socket === 'function') {
1010
return net.Socket
1111
}
12-
const { CloudflareSocket } = require('mysql-cloudflare')
12+
const { CloudflareSocket } = require('pg-cloudflare')
1313
return new CloudflareSocket(ssl);
1414
}

package-lock.json

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
"iconv-lite": "^0.6.3",
6363
"long": "^5.2.1",
6464
"lru-cache": "^8.0.0",
65-
"mysql-cloudflare": "workspace:^",
6665
"named-placeholders": "^1.1.3",
6766
"seq-queue": "^0.0.5",
6867
"sqlstring": "^2.3.2"
@@ -87,5 +86,8 @@
8786
"typescript": "^5.0.2",
8887
"urun": "0.0.8",
8988
"utest": "0.0.8"
89+
},
90+
"optionalDependencies": {
91+
"pg-cloudflare": "1.x"
9092
}
9193
}

0 commit comments

Comments
 (0)