1.0.1 • Published 4 years ago
@yoteetools/carpenter v1.0.1
Carpenter :wood:
Carpenter is a simple, light weight library with no dependencies with the goal to build somewhat complex SQL string queries.
This library are for those that like writing pure SQL but are looking for that library to help them build their SQL string query in any order.
Installation
yarn add @yoteetools/carpenter
npm install --save @yoteetools/carpenterUsage
Everything starts with from.
import $ from '@yoteetools/carpenter';
const sql = $
.from('table1')
.where('id = 1')
.select('*')
.toString();
console.log(sql); // SELECT * FROM table1 WHERE id = 1See __tests__ for more examples.