sqlspec-psycopg

Manage SQLSpec psycopg adapter workflows for configuration, debugging, and review.

15|4|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/cofin/flow --skill sqlspec-psycopg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sqlspec-psycopg
Source: https://github.com/cofin/flow/tree/main/skills/sqlspec-psycopg
Command: npx skills add https://github.com/cofin/flow --skill sqlspec-psycopg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexities of implementing, debugging, and reviewing SQLSpec's psycopg adapter, ensuring correct behavior for database interactions.

Core Features & Use Cases

  • Adapter Configuration: Manages connection_config, driver_features, and statement configurations for psycopg.
  • Driver Behavior: Handles parameter passing and statement execution using adapter-specific pipelines.
  • Use Case: Debugging an issue where psycopg adapter parameter profiles are not correctly mapping to PostgreSQL statement configurations.

Quick Start

Use the sqlspec-psycopg skill to review the adapter implementation for psycopg.

Frequently Asked Questions about sqlspec-psycopg

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure a psycopg adapter for PostgreSQL database interactions in Python?

To configure a psycopg adapter for PostgreSQL, manage the `connection_config`, `driver_features`, and statement configurations to ensure correct parameter passing and database execution behavior.

Why does my psycopg adapter parameter profile not correctly map to PostgreSQL statement configurations?

Incorrect parameter mapping in a psycopg adapter profile typically stems from driver behavior mismatches; debugging requires reviewing statement execution pipelines and adapter-specific parameter passing configurations.

How does SQLSpec handle statement execution pipelines for the psycopg driver?

SQLSpec executes statement stacks for the psycopg driver by mapping connection configurations through adapter-native pipelines, ensuring correct driver behavior and parameter profile execution.

What is the best way to debug connection configuration issues in a Python PostgreSQL adapter?

The best way to debug connection configuration issues for a Python PostgreSQL adapter is to review the adapter implementation's `driver_features` and execute test statement stacks via adapter-native pipelines.

Can I use SQLSpec to test driver behavior and parameter passing for psycopg?

Yes, you can use SQLSpec to test driver behavior and parameter passing for psycopg by running adapter-specific tests that validate connection configurations and statement execution profiles.