Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mullayam/presql
- Owner: Mullayam
- Created: 2023-04-25T07:12:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-09T07:38:49.000Z (over 1 year ago)
- Last Synced: 2024-11-10T00:37:58.196Z (6 days ago)
- Topics: javascript, mysql, mysql-database, mysql2, nodejs, orm, sql
- Language: JavaScript
- Homepage: https://en-presql.enjoys.in
- Size: 25.4 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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
# ExamplesVisit [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.