File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
declare namespace odbc {
2
2
3
- class ColumnDefinition {
3
+ interface ColumnDefinition {
4
4
name : string ;
5
5
dataType : number ;
6
6
dataTypeName : string ;
@@ -9,25 +9,25 @@ declare namespace odbc {
9
9
nullable : boolean ;
10
10
}
11
11
12
- class Result < T > extends Array < T > {
12
+ interface Result < T > extends Array < T > {
13
13
count : number ;
14
14
columns : Array < ColumnDefinition > ;
15
15
statement : string ;
16
16
parameters : Array < number | string > ;
17
17
return : number ;
18
18
}
19
19
20
- class OdbcError {
20
+ interface OdbcError {
21
21
message : string ;
22
22
code : number ;
23
23
state : string ;
24
24
}
25
25
26
- class NodeOdbcError extends Error {
26
+ interface NodeOdbcError extends Error {
27
27
odbcErrors : Array < OdbcError > ;
28
28
}
29
29
30
- class Statement {
30
+ interface Statement {
31
31
32
32
////////////////////////////////////////////////////////////////////////////
33
33
// Callbacks ///////////////////////////////////////////////////////////
@@ -81,7 +81,7 @@ declare namespace odbc {
81
81
cursor : boolean | string
82
82
}
83
83
84
- class Connection {
84
+ interface Connection {
85
85
86
86
////////////////////////////////////////////////////////////////////////////
87
87
// Callbacks ///////////////////////////////////////////////////////////
@@ -145,7 +145,7 @@ declare namespace odbc {
145
145
close ( ) : Promise < void > ;
146
146
}
147
147
148
- class Pool {
148
+ interface Pool {
149
149
150
150
////////////////////////////////////////////////////////////////////////////
151
151
// Callbacks ///////////////////////////////////////////////////////////
@@ -173,7 +173,7 @@ declare namespace odbc {
173
173
close ( ) : Promise < void > ;
174
174
}
175
175
176
- class Cursor {
176
+ interface Cursor {
177
177
noData : boolean
178
178
179
179
////////////////////////////////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments