Oraios Queries

Relational Database Models & Query Builder for Node JS

        
         ~ $ 
      

CRUD Ops

Insert, select, update & delete Data from Postgresql and MySQL with complex nested where conditions.

ORM

Create class-based models for your tables with built-in features.

Flexible Queries

Designed to perform complex and nested where statements, ordering and grouping.

Model Settings

Specify certain fields to be selectable, allow HTML tags to be stored in database for certain fields, add default values on insert and update, and more.

Pre-defined Query Executers

Extract data in various ways: list, select one column, first item, slicing, chunking, pagination.

Light Weighted

This package is light and can be added on APIs, web workers, .. etc.

Read our documentation to know how to optimize this awesome features.

Documentation

Changelog

v1.4.7

09/04/2020
  • Added raw() function to pass raw queries.
  • Added distinct function to pass a column to DISTINCT ON(col)

v1.6.1

14/04/2020
  • Added primaryKey property in Model class.
  • Returning row id after inserting new row.