Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/acryps/vlquery

TypeScript ORM for postgresql
https://github.com/acryps/vlquery

audits database entity orm postgres typescript

Last synced: about 2 months ago
JSON representation

TypeScript ORM for postgresql

Awesome Lists containing this project

README

        

[![npm version](http://badge.acryps.com/npm/vlquery)](http://badge.acryps.com/go/npm/vlquery)

# 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](https://github.com/levvij/vlquery-example)

[Using audits with an express server](https://github.com/levvij/vlquery-audit-example)

## Documentation
[Getting started](doc/getting-started.md)

[Database structure](doc/database-structure.md)

[Reading, filtering and ordering data](doc/read-filter-order.md)

[Altering data](doc/altering-data.md)

[Adding audits](doc/audit.md)

[Performance and include](doc/performance-and-include.md)

## Sponsoring and support
This project is sponsored and supported by [inter allied crypsis / ACRYPS](https://acryps.com) and [VLVT.IN GmbH](https://vlvt.in).