model-queries

Community

Build safe, efficient database queries with ease.

Authorgriffnb
Version1.0.0
Installs0

System Documentation

What problem does it solve?

All database queries use a generated Options struct and column helpers for type-safe query building. The approach centralizes query logic and ensures consistent parameter binding across models.

Core Features & Use Cases

  • Simple lookups by ID, email, or other fields using WithCondition and WithParam.
  • Complex queries with multiple conditions, IN lists, joins, and ordered results.
  • Clear separation of query definitions in a queries.go file and enforcement of mocker context for testability.

Quick Start

Create a GetByEmail function that fetches a user by email using the Options API.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: model-queries
Download link: https://github.com/griffnb/claude-plugins/archive/main.zip#model-queries

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.