Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/acryps/vlquery
- Owner: acryps
- Created: 2020-09-27T13:32:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-24T14:23:52.000Z (7 months ago)
- Last Synced: 2024-11-07T00:19:41.347Z (2 months ago)
- Topics: audits, database, entity, orm, postgres, typescript
- Language: TypeScript
- Homepage:
- Size: 324 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
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).