Skip to content

Commit 1d03413

Browse files
committed
v.0.0.17
1 parent c7a286e commit 1d03413

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# database-builder
44
Framework to assist in database manipulation (DDL and CRUD)
55

6+
[look at the test for more details of use (`./src/test/`)](https://github.com/fernandocode/database-builder/tree/master/src/test)
7+
68
# Getting Started
79

810
### Step 1: Install npm module
@@ -124,13 +126,14 @@ export class AppComponent {
124126

125127
ngOnInit(){
126128
let query = new Query(TestClazz);
129+
query.where(where => where.between(x => x.id, 1, 20));
127130
const result = query.compile();
128131
console.log(result);
129132
/**
130133
* result:
131134
* {
132-
* params: [],
133-
* query: "SELECT tes.* FROM TestClazz AS tes"
135+
* params: [1,20],
136+
* query: "SELECT tes.* FROM TestClazz AS tes WHERE tes.id BETWEEN ? AND ?"
134137
* }
135138
*/
136139
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "database-builder",
3-
"version": "0.0.16",
3+
"version": "0.0.17",
44
"description": "Framework to assist in database manipulation (DDL and CRUD)",
55
"main": "./src/index.js",
66
"types": "./src/index.d.ts",

0 commit comments

Comments
 (0)