hai-usage-reldb

Unify DDL, SQL, CRUD, transactions, and JSON across SQLite, PostgreSQL, and MySQL.

3|7|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/hai-series/hai-framework --skill hai-usage-reldb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hai-usage-reldb
Source: https://github.com/hai-series/hai-framework/tree/main/.github/skills/hai-usage-reldb
Command: npx skills add https://github.com/hai-series/hai-framework --skill hai-usage-reldb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unifies and simplifies cross-database data access by providing a single API for DDL, SQL, CRUD, transactions, and JSON across SQLite, PostgreSQL, and MySQL, reducing boilerplate and drift between engines.

Core Features & Use Cases

  • Unified reldb API exposing DDL (createTable, dropTable, etc.), SQL, CRUD, transactions, and JSON operations across engines.
  • Strong typing, parameterized queries, and consistent error handling for reliable data access.
  • Use cases include building database layers, migrations, and multi-engine services with end-to-end transactional guarantees.

Quick Start

Install the library, initialize reldb with your config, and start performing cross-database operations using the provided interfaces.

Frequently Asked Questions about hai-usage-reldb

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

FAQPage Schema
How do I unify database operations across SQLite, PostgreSQL, and MySQL?

You can unify database operations across SQLite, PostgreSQL, and MySQL by using a single API that standardizes DDL, SQL execution, CRUD, and transaction management, reducing boilerplate and drift across engines.

What is the best way to manage cross-engine database migrations?

The best way to manage cross-engine database migrations is using a unified reldb API that provides consistent DDL methods like createTable and dropTable, ensuring reliable schema evolution across SQLite, PostgreSQL, and MySQL.

Can I execute typed SQL queries with transactional guarantees across multiple database engines?

Yes, you can execute typed, parameterized SQL queries with end-to-end transactional guarantees across multiple database engines by utilizing a unified data access interface designed for backend services.

Does this unified database API support JSON operations and standardized error handling?

Yes, the unified database API supports JSON operations alongside standardized HaiResult-based error handling, providing a uniform developer experience and reliable data access across all supported engines.

How do I initialize reldb for cross-database data access in a backend service?

To initialize reldb for cross-database data access, install the library, configure it with your specific database engine settings, and start performing unified DDL, CRUD, and transaction operations through the provided interfaces.

Why should I use a unified API instead of engine-specific drivers for SQL and CRUD operations?

You should use a unified API instead of engine-specific drivers to eliminate boilerplate code, prevent syntax drift during DDL and CRUD operations, and maintain consistent transactional guarantees across SQLite, PostgreSQL, and MySQL.