Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mullayam/presql

No More Query Statements
https://github.com/mullayam/presql

javascript mysql mysql-database mysql2 nodejs orm sql

Last synced: 6 days ago
JSON representation

No More Query Statements

Awesome Lists containing this project

README

        




PreSQL








1.2.2


## Getting Started

Visit https://en-presql.enjoys.in/ to get started with PreSQL.

## Documentation

Visit [https://en-presql.enjoys.in](https://en-presql.enjoys.in) to view the full documentation.


> Developer : `Mullayam`

> Version : `1.2.2`

## _No More Query Statements_

PreSQL is an SQL-language based library containing pre-written code with shortend methods. Say "bye" to writing long query statements.

## Dependencies
PreSQL requires the following dependencies to be installed:

- [Node.js](https://nodejs.org/) v16+
- mysql2 - _to connect to MySQL database_

## Installation
Install the dependencies and devDependencies and start the server.
```sh
npm i presql
```
## Methods
### Crud Operations

- create() , createMany()
- updateOne() , updateMany()
- destroy() , destroyAll()
- findById(),findOne(),findFirst(),findMany()
- exist()
- table()
- queryBuilder()

### Logical (Math) Operations
- Math()
### Table Join / Relationship
- join()
### Depricated/Not Featured
- In,Between,Alias,Distinct,OrderByGroup -- Adding in Future Versions
# Examples

Visit [https://en-presql.enjoys.in/category/presql-crud](https://en-presql.enjoys.in/category/presql-crud) to view the full Examples.


## License
This project is licensed under `MIT` License, please check the LICENSE file for more details.