vlquery
TypeScript icon, indicating that this package has built-in type declarations

7.2.0 • Public • Published

npm version

vlquery TypeScript ORM

Simple to use TypeScript based database first ORM for postgres.

Example usage:

const books = await db.book
	.where(book => book.author.firstname == "Jan")
	.orderByAscending(book => book.title.lowercase())
	.toArray();

const author = await db.person.find("<a very long uuid>");
const authorsFirstBookFrom2001 = await author.books
	.first(book => book.publishedAt.year == 2001);

authorsFirstBookFrom2001.title = "A new title";
await authorsFirstBookFrom2001.update();

Examples

Simple Example Project
Using audits with an express server

Documentation

Getting started
Database structure
Reading, filtering and ordering data
Altering data
Adding audits
Performance and include

Sponsoring and support

This project is sponsored and supported by inter allied crypsis / ACRYPS and VLVT.IN GmbH.

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i vlquery

    Weekly Downloads

    23

    Version

    7.2.0

    License

    GPL-3.0-only

    Unpacked Size

    119 kB

    Total Files

    85

    Last publish

    Collaborators

    • levvij