dump-schema

Solid

Dump clean Postgres schema to a file and copy path to clipboard.

API & Backend 180 stars 13 forks Updated today NOASSERTION

Install

View on GitHub

Quality Score: 75/100

Stars 20%
75
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
43
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Dump Schema Dump a clean PostgreSQL schema (no comments, no ownership, no privileges) from the local dev database. ## Parameters Ask the user (if not provided): - **output_file** – absolute path for the `.sql` file (default: prompt user) Use this database URL unless the user specifies otherwise: ``` postgres://user:password@localhost:5432/macrodb ``` ## Steps 1. Run `pg_dump` with schema-only flags, pipe through cleanup, write to file: ```bash pg_dump --schema-only --no-owner --no-privileges --no-comments --no-publications --no-subscriptions --no-security-labels --no-tablespaces "$DB_URL" | sed '/^--/d' | sed '/^SET /d' | sed '/^SELECT pg_catalog/d' | sed '/^$/N;/^\n$/d' > "$OUTPUT_FILE" ``` 2. Copy the output path to the clipboard: ```bash echo -n "$OUTPUT_FILE" | pbcopy ``` 3. Report: `Schema dumped to <path> (path copied to clipboard)`

Details

Author
macro-inc
Repository
macro-inc/macro
Created
6 months ago
Last Updated
today
Language
Rust
License
NOASSERTION

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Solid

vespertide

Define database schemas in JSON and generate migration plans. Use this skill when creating or modifying database models, defining tables with columns, constraints, and ENUM types for Vespertide-based projects.

22 Updated today
dev-five-git
API & Backend Featured

find-hypertable-candidates

Use this skill to analyze an existing PostgreSQL database and identify which tables should be converted to Timescale/TimescaleDB hypertables. **Trigger when user asks to:** - Analyze database tables for hypertable conversion potential - Identify time-series or event tables in an existing schema - Evaluate if a table would benefit from Timescale/TimescaleDB - Audit PostgreSQL tables for migration to Timescale/TimescaleDB/TigerData - Score or rank tables for hypertable candidacy **Keywords:** hypertable candidate, table analysis, migration assessment, Timescale, TimescaleDB, time-series detection, insert-heavy tables, event logs, audit tables Provides SQL queries to analyze table statistics, index patterns, and query patterns. Includes scoring criteria (8+ points = good candidate) and pattern recognition for IoT, events, transactions, and sequential data.

1,742 Updated 4 days ago
timescale
Data & Documents Solid

migrating-json-schemas

Migrates JSON Schemas between draft versions for use with z-schema. Use when the user wants to upgrade schemas from draft-04 to draft-2020-12, convert between draft formats, update deprecated keywords, replace id with $id, convert definitions to $defs, migrate items to prefixItems, replace dependencies with dependentRequired or dependentSchemas, adopt unevaluatedProperties or unevaluatedItems, or adapt schemas to newer JSON Schema features.

345 Updated 4 days ago
zaggino
API & Backend Solid

database-patterns

Use when designing database schemas, implementing repository patterns, writing optimized queries, managing migrations, or working with indexes and transactions for SQL/NoSQL databases.

280 Updated 2 months ago
MadAppGang
Testing & QA Listed

dbt-coder

dbt (data build tool) patterns for model organization, incremental strategies, and testing.

39 Updated 1 weeks ago
majesticlabs-dev