Hi Hyperdrivers πŸš— πŸ’¨ Trying to use Hyperdrive with Planetscale & Kysely I've came across a couple q

Hi Hyperdrivers πŸš— πŸ’¨
Trying to use Hyperdrive with Planetscale & Kysely I've came across a couple questions and my first try just didn't work, no error, though haven't debugged anything so far, just disabled for the moment, so now to my questions:
  1. Should I use the Optimized Host: aws.connect.psdb.cloud or Direct which in my case is eu-central.connect.psdb.cloud
  2. Creating a Hyperdrive connection does test the connection settings, right? asking because pscale gives me the connection string with ?ssl={"rejectUnauthorized":true} at the end, should I keep it?
  3. The Hyperdrive docs use import { createConnection } from "mysql2/promise"; whereas kysely says import { createPool } from 'mysql2' // do not use 'mysql2/promises'! (https://www.kysely.dev/docs/getting-started?package-manager=pnpm&dialect=mysql#instantiation
  4. What's the recommended connectionLimit? Default in kysely docs is 10
    think that's it for now πŸ€“ also nice weekend to y'all ❀️
Was this page helpful?