Using Drizzle Queries

🌐Community
by andrelandgraf · vlatest · Repository

Execute complex data extractions and transformations using Andre Landgraf's Drizzle queries against structured databases.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add using-drizzle-queries npx -- -y @trustedskills/using-drizzle-queries
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "using-drizzle-queries": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/using-drizzle-queries"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill enables AI agents to execute type-safe database queries using Drizzle ORM, a modern JavaScript ORM for relational databases. It allows for performing common database operations like selecting data (with filtering and ordering), inserting new records, updating existing records, deleting records, and constructing relational queries involving multiple tables. The skill facilitates defining and managing database schemas as well.

When to use it

  • When you need an AI agent to retrieve specific data from a structured database based on certain criteria.
  • To automate the insertion of new data into your database.
  • For updating existing records in your database programmatically.
  • To delete unwanted or obsolete data from your database.
  • When defining and managing the structure (schema) of tables within your database.

Key capabilities

  • Type-safe queries: Generates queries with type safety using Drizzle ORM.
  • Select Queries: Retrieves data based on various filters, ordering options (ascending/descending), and limits.
  • Insert Operations: Inserts single or multiple records into database tables.
  • Update Operations: Modifies existing records in a table based on specified criteria.
  • Delete Operations: Removes records from a table based on specific conditions.
  • Relational Queries: Constructs queries that join data from related tables.
  • Schema Management: Defines and manages database table schemas, including specifying column types and constraints.

Example prompts

  • "Retrieve all chats ordered by creation date in descending order."
  • "Insert a new chat with userId '123' and title 'Meeting Notes'."
  • "Update the title of chat with ID 'abc-123' to 'Revised Meeting Notes'."
  • "Delete the chat with ID 'xyz-789'."

Tips & gotchas

  • Requires a Drizzle ORM database setup, including a connection established via db.select().
  • The skill relies on pre-defined schemas (e.g., "chats", "messages", "items") which must exist in the database.
  • Ensure that the AI agent has access to and understands the structure of your database schema for accurate query generation.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
andrelandgraf
Installs
71

🌐 Community

Passed automated security scans.