provider-database

Manage shared SQLite and PostgreSQL connection factories with Kysely setup.

5|2|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/project-ax/ax --skill provider-database
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: provider-database
Source: https://github.com/project-ax/ax/tree/main/.claude/skills/ax/provider-database
Command: npx skills add https://github.com/project-ax/ax --skill provider-database

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a centralized and consistent way to manage database connections (SQLite and PostgreSQL) across different parts of the AX application, preventing redundant connections and ensuring data integrity.

Core Features & Use Cases

  • Shared Connection Factory: Offers a single Kysely ORM instance for all providers, simplifying database access.
  • Backend Agnostic: Supports both SQLite (local) and PostgreSQL (remote) with optional vector extensions.
  • Use Case: When developing a new feature that requires database access, you can rely on this provider to supply a pre-configured and managed database connection, rather than setting up your own.

Quick Start

Use the provider-database skill to close the database connection.

Frequently Asked Questions about provider-database

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

FAQPage Schema
How do I manage shared database connections for SQLite and PostgreSQL?

You can manage shared database connections by using a centralized connection factory that provides a single Kysely ORM instance. This approach ensures consistent database access across your application, preventing redundant connections for both SQLite and PostgreSQL backends.

What is the best way to set up a shared Kysely instance across multiple providers?

The best way to set up a shared Kysely instance is to rely on a centralized database provider that configures the ORM. This provider supplies a pre-configured, managed database connection to all features, ensuring data integrity and simplifying database access.

Can I use a single database connection for both local SQLite and remote PostgreSQL backends?

Yes, you can use a single database connection for both local SQLite and remote PostgreSQL backends. A backend-agnostic connection factory supports both database types natively and can optionally integrate vector extensions, ensuring consistent access across different environments.

Why do I need a centralized database connection factory in my application?

You need a centralized database connection factory to prevent redundant connections and ensure data integrity. By supplying a single, managed Kysely database instance across all application features, it maintains a consistent connection and simplifies your data access layer.

Does this database provider support vector extension integration with Kysely?

Yes, the database provider supports optional vector extension integration. When setting up your SQLite or PostgreSQL connection factory with Kysely, you can configure these vector extensions to handle advanced data querying needs within your application.

How do I close a shared database connection when shutting down the application?

To close a shared database connection, you simply call the database provider's close operation. This ensures the single Kysely ORM instance is properly shut down, cleanly releasing the managed SQLite or PostgreSQL resources across your application.