Open Collective
Open Collective
Loading
[email protected]
Published on February 3, 2023 by Andrii Sherman

We have released Planetscale Serverless driver support!

Usage example
import { drizzle } from 'drizzle-orm/planetscale-serverless';
import { connect } from '@planetscale/database';

// create the connection
const connection = connect({
  host: process.env['DATABASE_HOST'],
  username: process.env['DATABASE_USERNAME'],
  password: process.env['DATABASE_PASSWORD'],
});
const db = drizzle(connection);