Orange ORM — Skills & Reference

Document Orange ORM models, queries, and transactions for Node.js, Bun, and Deno.

1.0k|22|Updated May 27, 2013
One-click install
npx skills add https://github.com/alfateam/orange-orm --skill orange-orm-skills-reference
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Orange ORM — Skills & Reference
Source: https://github.com/alfateam/orange-orm/tree/main
Command: npx skills add https://github.com/alfateam/orange-orm --skill orange-orm-skills-reference

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill provides comprehensive documentation and examples for using Orange ORM, a powerful Object-Relational Mapper for Node.js, Bun, and Deno, enabling efficient database interactions without code generation.

Core Features & Use Cases

  • Database Agnostic: Supports PostgreSQL, SQLite, MySQL, MS SQL, Oracle, SAP ASE, PGlite, and Cloudflare D1.
  • Active Record Pattern: Interact with your database using an intuitive, TypeScript-friendly syntax.
  • Advanced Querying: Features rich querying, filtering, relationships, transactions, and concurrency control.
  • Use Case: Quickly set up a new database connection, define table mappings, insert, fetch, update, and delete data using clear, concise examples for various databases and scenarios.

Quick Start

Use the Orange ORM skill to connect to a SQLite database named 'demo.db'.

Frequently Asked Questions about Orange ORM — Skills & Reference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use an ORM to connect Node.js to different SQL databases?

Orange ORM lets you connect Node.js, Bun, or Deno to SQL databases like PostgreSQL, SQLite, MySQL, MS SQL, and Oracle using an Active Record pattern. It supports defining models and managing relationships without requiring code generation.

Can I manage database relationships and transactions with TypeScript?

Yes, you can manage database relationships and transactions with TypeScript using Orange ORM. It provides type-safe querying, handles hasMany and hasOne relationships, and includes concurrency control for secure transactional database operations.

Does this ORM work with Bun, Deno, and Cloudflare D1?

Yes, Orange ORM works with Bun, Deno, and Node.js runtimes. It fully supports Cloudflare D1 alongside PostgreSQL, SQLite, MySQL, MS SQL, Oracle, SAP ASE, and PGlite, enabling diverse database interactions across multiple JavaScript runtimes.

What is the best way to query and update rows without code generation?

The best way to query and update rows without code generation is using the Active Record pattern provided by Orange ORM. It offers TypeScript-friendly syntax for inserting, fetching, updating, and deleting rows across supported databases.

How do I use an ORM in the browser with Express or Hono adapters?

To use an ORM in the browser, Orange ORM provides Express and Hono adapters. This allows you to interact with your database layer using TypeScript while serving applications through these web frameworks.