What problem does it solve?
Writing and maintaining database access code for Node.js, Bun, or Deno applications often requires boilerplate SQL, manual relation handling, and code generation for type safety. This Skill provides authoritative guidance for using Orange ORM to map tables, query, insert, update, and delete rows with full TypeScript IntelliSense and no code generation.
Core Features & Use Cases
- Table Mapping and Relationships: Define tables, columns, data types, and relations (hasMany, hasOne, references) with a fluent mapping API.
- Rich Querying and Active Record Updates: Filter with composable where clauses, eager-load relations via fetching strategies, run aggregates, and persist changes with saveChanges().
- Multi-Database and Browser Support: Connect to PostgreSQL, SQLite, MySQL, MariaDB, MS SQL, Oracle, SAP ASE, PGlite, and Cloudflare D1, or expose data securely to browsers via Express/Hono adapters.
- Use Case: A developer building a TypeScript API on PostgreSQL can map an order/customer schema, fetch orders with nested lines and delivery addresses in one query, and update graphs of rows inside a transaction.
Quick Start
Ask the AI to define an Orange ORM table mapping for your schema and write a query that fetches rows with related data using a where filter.