What problem does it solve?
This Skill addresses the challenges of writing efficient, secure, and maintainable database queries for the Supabase Postgres database within the Splits Network ecosystem. It guides developers on best practices for data access, optimization, and schema management.
Core Features & Use Cases
- Access Context: Implements role-based data filtering for secure data access.
- Query Optimization: Provides patterns for efficient JOINs, indexing, and performance tuning.
- Migrations: Offers guidance on creating safe and effective database schema changes.
- Transactions: Demonstrates patterns for ensuring data consistency across multiple operations.
- Type Safety: Shows how to generate and use TypeScript types for database interactions.
- Use Case: When developing a new feature that requires fetching user-specific data, use this skill to ensure queries are optimized and adhere to access control policies.
Quick Start
Use the database-patterns skill to generate a TypeScript repository method for listing jobs with role-based access control.