1.0.1 • Published 3 years ago

@yoteetools/carpenter v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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/carpenter

Usage

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 = 1

See __tests__ for more examples.

1.0.1

3 years ago

1.0.0

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago