It is not strictly necessary, though would be preferred when possible.
It is not strictly necessary, though would be preferred when possible.
cloudflared container in the same network.<random_name>.<my_domain>.com/mysq://... with TCP typepostgres.js and {prepare: true}. Are transactions known not to work with hyperdrive at all?wrangler dev --remote works perfectlypostgres(connStr, {max: 5, fetch_types: false,}) (not that I need more than one connection but the docs suggested setting max to 5) and I have the cache disabled since the purpose of my query is to catch updates to a counter due to mutations by other clients. My app is not yet publicly released, so there is very little traffic.binary and text. Postgres.js uses the binary format, while node-postgres uses the text format. float or timestamp. Hyperdrive does not currently support MySQL multi-statement queries (log) 🔍 SQL Query: select `id`, `email`, `name`, `google_id` from `users` where `users`.`email` = ? limit ?
(log) 📋 Parameters: [ 'muhajirframe@gmail.com', 1 ]
(log) 🔍 SQL Query: insert into `sessions` (`id`, `user_id`, `expires_at`, `ip_address`, `user_agent`, `payload`, `last_activity`) values (?, ?, ?, ?, ?, ?, ?)
(log) 📋 Parameters: [
'd76a430d62722d6e0bced8540fea85dc1e8d1cfe1dcf2127c1b462bed5f5b070',
6264,
'2025-07-01 02:05:50.340',
'2a09:bac5:3a11:18c8::278:7b',
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36',
'{"userId":6264}',
1748743550
]
(error) 02:05:50 ❌ ERROR Google OAuth error
{
"error": "Hyperdrive does not currently support MySQL multi-statement queries",
"stack": "Error\n at PromiseConnection.query (server.js:68443:26)\n at MySql2PreparedQuery.execute (server.js:131993:32)\n at QueryPromise.execute (server.js:131405:27)\n at QueryPromise.then (server.js:126940:17)",<random_name>.<my_domain>.com/mysq://...postgres.js{prepare: true}wrangler dev --remotepostgres(connStr, {max: 5, fetch_types: false,})binaryfloattimestampc.executionCtx.waitUntil(sql.end())import { Context } from 'hono';
import postgres from 'postgres';
const db = (c: Context) => {
console.log('Connecting to database...');
console.log(c.env.HYPERDRIVE.connectionString);
const connectionString = c.env.HYPERDRIVE?.connectionString;
return postgres(connectionString, {
fetch_types: false
});
};
export default db;Connecting to database...
postgresql://neondb_owner:*************@91a7****************d1e4c29.hyperdrive.local:5432/neondb?sslmode=disable
✘ [ERROR] PostgresError: connection is insecure (try using `sslmode=require`)