File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# database-builder
44Framework 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 }
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments