Val Town SQLite Storage

•
5
•

Manages structured and relational data within Val Town using the built-in SQLite API and best practices.

This skill enables Claude to efficiently manage persistent, relational data in Val Town using the std/sqlite module. It provides comprehensive guidance on performing CRUD operations with parameterized queries to prevent SQL injection, managing atomic transactions via the batch API, and handling schema migrations. It also clarifies the distinction between val-scoped and organization-scoped databases, ensuring that data is stored and accessed correctly across different project environments and organizational structures.

Key Features

015 GitHub stars
02Handles schema setup and migrations with idempotent SQL commands
03Implements secure, parameterized SQL queries to prevent injection attacks
04Supports both val-scoped and organization-wide database access patterns
05Manages atomic multi-statement transactions using the SQLite batch API
06Integrates seamlessly with Val Town's built-in sqlite standard library

Use Cases

01Migrating and updating database schemas without data loss or downtime
02Creating shared data stores across multiple vals within an organization
03Building a persistent user management system with relational tables