File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " chainsql" ,
3- "version" : " 0.6.17 " ,
3+ "version" : " 0.6.18 " ,
44 "description" : " An database driver for chainsql " ,
55 "main" : " src/index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ Table.prototype.insert = function(raw, field) {
4949 }
5050}
5151
52- Table . prototype . update = function ( raw ) {
52+ Table . prototype . update = function ( ) {
5353 if ( ! this . tab ) throw new Error ( 'you must appoint the table name' ) ;
5454 if ( this . exec !== 'r_get' ) throw new Error ( 'Object can not hava function update' ) ;
5555 this . query . unshift ( Array . prototype . slice . call ( arguments ) [ 0 ] ) ;
@@ -66,15 +66,15 @@ Table.prototype.update = function(raw) {
6666 return this ;
6767 }
6868}
69- Table . prototype . delete = function ( raw ) {
69+ Table . prototype . delete = function ( ) {
7070 if ( ! this . tab ) throw new Error ( 'you must appoint the table name' ) ;
7171 //if (this.exec !== 'r_get') throw new Error('Object can not hava function delete');
7272 this . exec = 'r_delete' ;
7373 if ( this . transaction ) {
7474 this . cache . push ( {
7575 Owner : this . connect . scope ,
7676 TableName : this . tab ,
77- Raw : that . query ,
77+ Raw : this . query ,
7878 OpType : opType [ this . exec ]
7979 } )
8080 return ;
You can’t perform that action at this time.
0 commit comments