File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,13 @@ const VARS_REGEXP = /@([\w_$][\d\w_$]*:(string|boolean|date|number|bigint))/g;
16
16
function init ( cfg ) {
17
17
const conString = cfg . uri ;
18
18
return co ( function * gen ( ) {
19
- console . log ( 'Connecting to the database uri=%s' , conString ) ;
19
+ console . log ( 'Connecting to the database' ) ;
20
20
const connection = new cosql . Connection ( conString ) ;
21
- // Always attach an error listener
21
+ // Always attach an error listener
22
22
connection . on ( 'error' , ( err ) => this . emit ( 'error' , err ) ) ;
23
23
let sql = cfg . query ;
24
24
yield connection . connect ( ) ;
25
+ console . log ( 'Connection established' ) ;
25
26
console . log ( 'Preparing query=%s' , sql ) ;
26
27
const vars = sql . match ( VARS_REGEXP ) ;
27
28
console . log ( 'Found following prepared variable:type pairs=%j' , vars ) ;
Original file line number Diff line number Diff line change @@ -14,10 +14,11 @@ let connection;
14
14
function init ( cfg ) {
15
15
const conString = cfg . uri ;
16
16
return co ( function * gen ( ) {
17
- console . log ( 'Connecting to the database uri=%s' , conString ) ;
17
+ console . log ( 'Connecting to the database' ) ;
18
18
connection = new cosql . Connection ( conString ) ;
19
19
connection . on ( 'error' , ( err ) => this . emit ( 'error' , err ) ) ;
20
20
yield connection . connect ( ) ;
21
+ console . log ( 'Connection established' ) ;
21
22
} . bind ( this ) ) ;
22
23
}
23
24
You can’t perform that action at this time.
0 commit comments