← All skills
Tencent SkillHub Β· AI

Drizzle

Build type-safe database queries with Drizzle ORM patterns.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Build type-safe database queries with Drizzle ORM patterns.

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 6 sections Open source page

Schema Definition

Export every table from schema file β€” queries fail silently if table isn't exported Use $inferSelect for query return types, $inferInsert for insert input β€” they differ (select has defaults filled, insert has optionals) Define relations() in a separate call, not inline with table β€” Drizzle separates schema from relations

Query Syntax Traps

Conditions use functions, not objects: where: eq(users.id, 5) not where: { id: 5 } β€” Prisma syntax doesn't work Combine conditions with and() / or(): where: and(eq(users.active, true), gt(users.age, 18)) db.query.users.findMany() for relational queries with with:, db.select().from(users) for SQL-like β€” mixing them causes type errors

Migrations

drizzle-kit push is dev-only (destructive) β€” production needs drizzle-kit generate then drizzle-kit migrate Schema changes require regenerating migrations β€” editing generated SQL breaks the migration hash Set strict: true in drizzle.config.ts to catch schema drift before it hits production

Driver-Specific

PostgreSQL: use pgTable, imports from drizzle-orm/pg-core MySQL: use mysqlTable, imports from drizzle-orm/mysql-core SQLite: use sqliteTable, imports from drizzle-orm/sqlite-core Mixing imports across drivers compiles but fails at runtime with cryptic errors

Performance

Wrap multi-query operations in db.transaction(async (tx) => {}) β€” Drizzle doesn't auto-batch Use .prepare() for queries executed repeatedly β€” skips query building overhead Add .limit() to every findMany() / select() β€” no default limit means full table scans

Common Mistakes

Forgetting await on queries returns a Promise, not results β€” TypeScript doesn't catch this if you ignore the return returning() is required to get inserted/updated rows back β€” without it you get { rowCount } only JSON columns: PostgreSQL uses jsonb(), MySQL uses json() β€” wrong function = wrong serialization

Category context

Agent frameworks, memory systems, reasoning layers, and model-native orchestration.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
1 Docs
  • SKILL.md Primary doc