drizzle-orm
Drizzle ORM Skill
Latest Documentation
Read https://orm.drizzle.team/llms.txt and see where to find the latest documentation and API references for drizzle-orm.
Our Best Practices
DB Connection with Bun SQL via Unix Socket
import { drizzle } from 'drizzle-orm/bun-sql'
import { SQL } from 'bun'
const dbClient = new SQL({
path: "/var/run/postgresql/.s.PGSQL.5432",
username: "db_user",
database: "db_name",
// maximum number of connections in the pool
max: 4,
idleTimeout: 60,
maxLifetime: 3600,
connectionTimeout: 10,
onconnect: () => {
console.log('Connection to PostgreSQL established')
}
})
export const db = drizzle({ client: dbClient })
More from yistc/skills
yistc-linear-issue
Workflow for handling a Linear issue end-to-end. Uupdate Linear, create a git worktree from dev, implement the change, verify it, and open a GitHub PR linked to the issue.
19yaak-cli
Use when working with the Yaak CLI and a shared Yaak GUI workspace to inspect workspaces, folders, requests, environments, and safely send API requests without exposing inherited auth tokens.
15yistc-linear-research
Workflow for researching a Linear issue, gathering all relevant context, synthesizing key insights, and posting a structured summary back to the issue as a comment.
10yistc-nuxt
Instructions and examples for using the Nuxt framework.
4stripe-cli
Instructions and examples for using the Stripe CLI.
3hono
Efficiently develop Hono applications using Hono CLI. Supports documentation search, API reference lookup, request testing, and bundle optimization.
1