Skip to content

Instantly share code, notes, and snippets.

@NickBlow
NickBlow / planetscale-local.ts
Last active March 22, 2025 10:34
Planetscale Local DB
import mysql, { FieldPacket, OkPacket } from "mysql2/promise";
import { Connection } from "@planetscale/database";
export type PscaleConnection = Omit<Connection, "fetch">;
export type PscaleLocalConnection = PscaleConnection & { close: () => void };
export interface PlanetScaleConfig {
host?: string;
username?: string;
password?: string;