File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -66,34 +66,35 @@ export class Sql {
66
66
}
67
67
}
68
68
69
- get text ( ) {
69
+ get sql ( ) {
70
70
const len = this . strings . length ;
71
71
let i = 1 ;
72
72
let value = this . strings [ 0 ] ;
73
- while ( i < len ) value += `$ ${ i } ${ this . strings [ i ++ ] } ` ;
73
+ while ( i < len ) value += `? ${ this . strings [ i ++ ] } ` ;
74
74
return value ;
75
75
}
76
76
77
- get sql ( ) {
77
+ get statement ( ) {
78
78
const len = this . strings . length ;
79
79
let i = 1 ;
80
80
let value = this . strings [ 0 ] ;
81
- while ( i < len ) value += `? ${ this . strings [ i ++ ] } ` ;
81
+ while ( i < len ) value += `: ${ i } ${ this . strings [ i ++ ] } ` ;
82
82
return value ;
83
83
}
84
84
85
- get statement ( ) {
85
+ get text ( ) {
86
86
const len = this . strings . length ;
87
87
let i = 1 ;
88
88
let value = this . strings [ 0 ] ;
89
- while ( i < len ) value += `: ${ i } ${ this . strings [ i ++ ] } ` ;
89
+ while ( i < len ) value += `$ ${ i } ${ this . strings [ i ++ ] } ` ;
90
90
return value ;
91
91
}
92
92
93
93
inspect ( ) {
94
94
return {
95
- text : this . text ,
96
95
sql : this . sql ,
96
+ statement : this . statement ,
97
+ text : this . text ,
97
98
values : this . values ,
98
99
} ;
99
100
}
You can’t perform that action at this time.
0 commit comments