Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Explains how to query and migrate a Neon serverless Postgres database with Drizzle ORM.
64% 100%+36 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 14 of 22 without it.
3 of 3 safety checks passed
Not used yet
@neondatabase/serverlessThe database connection is initialized in db/index.ts.
import { neon } from '@neondatabase/serverless';
import { drizzle } from 'drizzle-orm/neon-http';
const sql = neon(process.env.DATABASE_URL!);
export const db = drizzle(sql);
Schema definitions are in db/schema.ts.
users, sessions, accounts, verifications: Auth tables.analyses, chatbot_history: App specific tables.Example of a database query:
import { db } from "@/db";
import { users } from "@/db/schema";
import { eq } from "drizzle-orm";
// Select
const user = await db.select().from(users).where(eq(users.email, "[email protected]"));
// Insert
await db.insert(users).values({ ... });
npx drizzle-kit generateSkills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus popular skills in the same category.