hile-typeorm

Manage TypeORM DataSource as a Hile service with transaction rollback.

1|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/cevio/hile --skill hile-typeorm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hile-typeorm
Source: https://github.com/cevio/hile/tree/main/packages/typeorm
Command: npx skills add https://github.com/cevio/hile --skill hile-typeorm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @hile/core, typeorm, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the integration of TypeORM with the Hile framework, managing the DataSource lifecycle and providing robust transaction handling.

Core Features & Use Cases

  • Hile Service Integration: Encapsulates TypeORM's DataSource as a Hile service for seamless lifecycle management (initialization and graceful shutdown).
  • Environment Variable Configuration: Reads database connection details from environment variables for flexible configuration.
  • Transaction Management: Offers a transaction helper function that supports rollback logic for failed operations.
  • Use Case: Integrate TypeORM into a Hile application, ensuring the database connection is properly managed and complex database operations are executed within safe, transactional blocks.

Quick Start

Load the TypeORM DataSource service using the Hile core library.

Frequently Asked Questions about hile-typeorm

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

FAQPage Schema
How do I manage TypeORM DataSource lifecycle in a Hile application?

TypeORM DataSource lifecycle is managed by encapsulating it as a Hile service, handling initialization and graceful shutdown automatically. You configure the database connection via environment variables for seamless integration.

What is the best way to handle TypeORM transactions with rollback logic?

TypeORM transactions are handled using a dedicated transaction helper function that supports LIFO rollback capabilities. This ensures failed database operations are safely reversed within transactional blocks.

Can I configure TypeORM database connection pooling using environment variables?

Yes, TypeORM database connection pooling is configured using environment variables. The service reads database connection details from the environment to support flexible configuration and connection management.

Does TypeORM integration with Hile support schema synchronization and development logging?

TypeORM integration with Hile supports schema synchronization and logging during development. These features are built into the DataSource service to streamline database management and debugging.

Why do I need a transaction helper for complex database operations in TypeORM?

A transaction helper is needed for complex database operations to ensure data integrity through safe, transactional blocks. It provides LIFO rollback capabilities to reverse failed operations automatically.

What are the limitations of using TypeORM DataSource as a Hile service?

Using TypeORM DataSource as a Hile service requires strict dependency on the Hile core library and TypeORM. Configuration is bound to environment variables, meaning custom connection setups may face constraints.