room-database

Solid

Expert skill for Android Room persistence library

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 97/100

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

Skill Content

# Room Database Skill ## Overview This skill provides expert capabilities for Android Room persistence library. It enables designing database schemas, implementing DAOs, configuring migrations, and integrating with modern Android architecture components. ## Allowed Tools - `bash` - Execute Gradle commands and Android build tools - `read` - Analyze Room entities and DAO files - `write` - Generate Room database components - `edit` - Update existing Room configurations - `glob` - Search for database-related files - `grep` - Search for patterns in database code ## Capabilities ### Entity Design 1. **Entity Definition** - Define @Entity classes with proper annotations - Configure primary keys (single and composite) - Set up foreign key relationships - Configure indices for query optimization - Implement embedded objects 2. **Type Converters** - Create @TypeConverter for custom types - Handle Date/Time conversions - Convert enums to database types - Serialize complex objects to JSON - Configure global type converters ### DAO Implementation 3. **Query Methods** - Write @Query annotations with SQL - Implement @Insert, @Update, @Delete - Configure conflict strategies - Create complex JOIN queries - Implement pagination queries 4. **Reactive Queries** - Return Flow for reactive updates - Configure LiveData return types - Implement one-shot suspend functions - Handle nullable results - Create parameterized queries #...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills