@@ -27,13 +27,14 @@ import { access, sql } from '../promise/baseConnection.js';
27
27
const type : string = field . type ;
28
28
const buffer : Buffer | null = field . buffer ( ) ;
29
29
const string : string | null = field . string ( ) ;
30
+ const stringWithEncoding : string | null = field . string ( 'utf-8' ) ;
30
31
const geometry :
31
32
| { x : number ; y : number }
32
33
| { x : number ; y : number } [ ]
33
34
| null = field . geometry ( ) ;
34
35
35
36
console . log ( db , length , name , table , type ) ;
36
- console . log ( buffer , string , geometry ) ;
37
+ console . log ( buffer , string , stringWithEncoding , geometry ) ;
37
38
38
39
return next ( ) ;
39
40
} ,
@@ -64,13 +65,14 @@ import { access, sql } from '../promise/baseConnection.js';
64
65
const type : string = field . type ;
65
66
const buffer : Buffer | null = field . buffer ( ) ;
66
67
const string : string | null = field . string ( ) ;
68
+ const stringWithEncoding : string | null = field . string ( 'utf-8' ) ;
67
69
const geometry :
68
70
| { x : number ; y : number }
69
71
| { x : number ; y : number } [ ]
70
72
| null = field . geometry ( ) ;
71
73
72
74
console . log ( db , length , name , table , type ) ;
73
- console . log ( buffer , string , geometry ) ;
75
+ console . log ( buffer , string , stringWithEncoding , geometry ) ;
74
76
75
77
return next ( ) ;
76
78
} ,
@@ -101,13 +103,14 @@ import { access, sql } from '../promise/baseConnection.js';
101
103
const type : string = field . type ;
102
104
const buffer : Buffer | null = field . buffer ( ) ;
103
105
const string : string | null = field . string ( ) ;
106
+ const stringWithEncoding : string | null = field . string ( 'utf-8' ) ;
104
107
const geometry :
105
108
| { x : number ; y : number }
106
109
| { x : number ; y : number } [ ]
107
110
| null = field . geometry ( ) ;
108
111
109
112
console . log ( db , length , name , table , type ) ;
110
- console . log ( buffer , string , geometry ) ;
113
+ console . log ( buffer , string , stringWithEncoding , geometry ) ;
111
114
112
115
return next ( ) ;
113
116
} ,
@@ -138,13 +141,14 @@ import { access, sql } from '../promise/baseConnection.js';
138
141
const type : string = field . type ;
139
142
const buffer : Buffer | null = field . buffer ( ) ;
140
143
const string : string | null = field . string ( ) ;
144
+ const stringWithEncoding : string | null = field . string ( 'utf-8' ) ;
141
145
const geometry :
142
146
| { x : number ; y : number }
143
147
| { x : number ; y : number } [ ]
144
148
| null = field . geometry ( ) ;
145
149
146
150
console . log ( db , length , name , table , type ) ;
147
- console . log ( buffer , string , geometry ) ;
151
+ console . log ( buffer , string , stringWithEncoding , geometry ) ;
148
152
149
153
return next ( ) ;
150
154
} ,
0 commit comments