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

7.1.3 • 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.

Package Sidebar

Install

npm i vlquery

Weekly Downloads

36

Version

7.1.3

License

GPL-3.0-only

Unpacked Size

117 kB

Total Files

85

Last publish

Collaborators

  • levvij