@alepha/postgres
TypeScript icon, indicating that this package has built-in type declarations

0.9.2 • Public • Published

Alepha Postgres

A type-safe SQL query builder and ORM using Drizzle.

Installation

This package is part of the Alepha framework and can be installed via the all-in-one package:

npm install alepha

Alternatively, you can install it individually:

npm install @alepha/core @alepha/postgres

Module

Provides PostgreSQL (and SQLite!) database integration with type-safe ORM capabilities through Drizzle.

The postgres module enables declarative database operations using descriptors like $entity, $repository. It offers automatic schema generation, type-safe queries, transactions, and database migrations with support for PostgreSQLs.

API Reference

Descriptors

$entity()

Creates a table descriptor for drizzle-orm.

$repository()

$transaction()

Package Sidebar

Install

npm i @alepha/postgres

Weekly Downloads

254

Version

0.9.2

License

MIT

Unpacked Size

2.56 MB

Total Files

51

Last publish

Collaborators

  • alepha