@miatechnet/node-odbc 2.4.10-multiresult.1 → 2.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +178 -178
- package/LICENSE +23 -23
- package/README.md +1314 -1314
- package/binding.gyp +100 -100
- package/lib/Connection.js +521 -521
- package/lib/Cursor.js +92 -92
- package/lib/Pool.js +470 -470
- package/lib/Statement.js +207 -207
- package/lib/odbc.d.ts +210 -210
- package/lib/odbc.js +56 -56
- package/package.json +69 -69
- package/src/dynodbc.cpp +189 -189
- package/src/dynodbc.h +383 -383
- package/src/odbc.cpp +850 -850
- package/src/odbc.h +362 -362
- package/src/odbc_connection.cpp +4312 -4312
- package/src/odbc_connection.h +114 -114
- package/src/odbc_cursor.cpp +265 -265
- package/src/odbc_cursor.h +52 -52
- package/src/odbc_statement.cpp +610 -610
- package/src/odbc_statement.h +43 -43
- package/lib/bindings/napi-v8/odbc.node +0 -0
package/binding.gyp
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
{
|
|
2
|
-
'targets' : [
|
|
3
|
-
{
|
|
4
|
-
'target_name' : 'odbc',
|
|
5
|
-
'sources' : [
|
|
6
|
-
'src/odbc.cpp',
|
|
7
|
-
'src/odbc_connection.cpp',
|
|
8
|
-
'src/odbc_statement.cpp',
|
|
9
|
-
'src/odbc_cursor.cpp',
|
|
10
|
-
'src/dynodbc.cpp'
|
|
11
|
-
],
|
|
12
|
-
'cflags' : ['-Wall', '-Wextra', '-Wno-unused-parameter', '-DNAPI_DISABLE_CPP_EXCEPTIONS'],
|
|
13
|
-
'include_dirs': [
|
|
14
|
-
'<!@(node -p "require(\'node-addon-api\').include")'
|
|
15
|
-
],
|
|
16
|
-
'defines' : [
|
|
17
|
-
'NAPI_VERSION=<(napi_build_version)'
|
|
18
|
-
],
|
|
19
|
-
'conditions' : [
|
|
20
|
-
[ 'OS == "linux"', {
|
|
21
|
-
'libraries' : [
|
|
22
|
-
'-lodbc'
|
|
23
|
-
],
|
|
24
|
-
'cflags' : [
|
|
25
|
-
'-g'
|
|
26
|
-
]
|
|
27
|
-
}],
|
|
28
|
-
[ 'OS == "mac"', {
|
|
29
|
-
'conditions': [
|
|
30
|
-
[ 'target_arch=="arm64"', {
|
|
31
|
-
'include_dirs': [
|
|
32
|
-
'/opt/homebrew/include'
|
|
33
|
-
],
|
|
34
|
-
'libraries' : [
|
|
35
|
-
'-L/opt/homebrew/lib',
|
|
36
|
-
'-lodbc'
|
|
37
|
-
],
|
|
38
|
-
}], ['target_arch=="x64"', {
|
|
39
|
-
'include_dirs': [
|
|
40
|
-
'/usr/local/include',
|
|
41
|
-
],
|
|
42
|
-
'libraries' : [
|
|
43
|
-
'-L/usr/local/lib',
|
|
44
|
-
'-lodbc'
|
|
45
|
-
],
|
|
46
|
-
}],
|
|
47
|
-
],
|
|
48
|
-
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ]
|
|
49
|
-
}],
|
|
50
|
-
[ 'OS == "freebsd"', {
|
|
51
|
-
'include_dirs': [
|
|
52
|
-
'/usr/local/include'
|
|
53
|
-
],
|
|
54
|
-
'libraries' : [
|
|
55
|
-
'-L/usr/local/lib',
|
|
56
|
-
'-lodbc'
|
|
57
|
-
],
|
|
58
|
-
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ]
|
|
59
|
-
}],
|
|
60
|
-
[ 'OS=="win"', {
|
|
61
|
-
'sources' : [
|
|
62
|
-
'src/odbc.cpp'
|
|
63
|
-
],
|
|
64
|
-
'libraries' : [
|
|
65
|
-
'-lodbccp32.lib'
|
|
66
|
-
],
|
|
67
|
-
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS', 'UNICODE' ]
|
|
68
|
-
}],
|
|
69
|
-
[ 'OS=="aix"', {
|
|
70
|
-
'variables': {
|
|
71
|
-
'os_name': '<!(uname -s)',
|
|
72
|
-
},
|
|
73
|
-
'conditions': [
|
|
74
|
-
[ '"<(os_name)"=="OS400"', {
|
|
75
|
-
'ldflags': [
|
|
76
|
-
'-Wl,-brtl,-blibpath:/QOpenSys/pkgs/lib,-lodbc'
|
|
77
|
-
],
|
|
78
|
-
'cflags' : ['-std=c++0x', '-DNAPI_DISABLE_CPP_EXCEPTIONS', '-Wall', '-Wextra', '-Wno-unused-parameter', '-I/QOpenSys/usr/include', '-I/QOpenSys/pkgs/include']
|
|
79
|
-
}]
|
|
80
|
-
]
|
|
81
|
-
}],
|
|
82
|
-
[ 'OS=="os400"', {
|
|
83
|
-
'ldflags': ['-Wl,-blibpath:/QOpenSys/pkgs/lib', '-lodbc'],
|
|
84
|
-
'cflags' : ['-std=c++0x', '-DNAPI_DISABLE_CPP_EXCEPTIONS', '-Wall', '-Wextra', '-Wno-unused-parameter', '-I/QOpenSys/usr/include', '-I/QOpenSys/pkgs/include']
|
|
85
|
-
}]
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"target_name": "action_after_build",
|
|
90
|
-
"type": "none",
|
|
91
|
-
"dependencies": [ "<(module_name)" ],
|
|
92
|
-
"copies": [
|
|
93
|
-
{
|
|
94
|
-
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
|
|
95
|
-
"destination": "<(module_path)"
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
]
|
|
100
|
-
}
|
|
1
|
+
{
|
|
2
|
+
'targets' : [
|
|
3
|
+
{
|
|
4
|
+
'target_name' : 'odbc',
|
|
5
|
+
'sources' : [
|
|
6
|
+
'src/odbc.cpp',
|
|
7
|
+
'src/odbc_connection.cpp',
|
|
8
|
+
'src/odbc_statement.cpp',
|
|
9
|
+
'src/odbc_cursor.cpp',
|
|
10
|
+
'src/dynodbc.cpp'
|
|
11
|
+
],
|
|
12
|
+
'cflags' : ['-Wall', '-Wextra', '-Wno-unused-parameter', '-DNAPI_DISABLE_CPP_EXCEPTIONS'],
|
|
13
|
+
'include_dirs': [
|
|
14
|
+
'<!@(node -p "require(\'node-addon-api\').include")'
|
|
15
|
+
],
|
|
16
|
+
'defines' : [
|
|
17
|
+
'NAPI_VERSION=<(napi_build_version)'
|
|
18
|
+
],
|
|
19
|
+
'conditions' : [
|
|
20
|
+
[ 'OS == "linux"', {
|
|
21
|
+
'libraries' : [
|
|
22
|
+
'-lodbc'
|
|
23
|
+
],
|
|
24
|
+
'cflags' : [
|
|
25
|
+
'-g'
|
|
26
|
+
]
|
|
27
|
+
}],
|
|
28
|
+
[ 'OS == "mac"', {
|
|
29
|
+
'conditions': [
|
|
30
|
+
[ 'target_arch=="arm64"', {
|
|
31
|
+
'include_dirs': [
|
|
32
|
+
'/opt/homebrew/include'
|
|
33
|
+
],
|
|
34
|
+
'libraries' : [
|
|
35
|
+
'-L/opt/homebrew/lib',
|
|
36
|
+
'-lodbc'
|
|
37
|
+
],
|
|
38
|
+
}], ['target_arch=="x64"', {
|
|
39
|
+
'include_dirs': [
|
|
40
|
+
'/usr/local/include',
|
|
41
|
+
],
|
|
42
|
+
'libraries' : [
|
|
43
|
+
'-L/usr/local/lib',
|
|
44
|
+
'-lodbc'
|
|
45
|
+
],
|
|
46
|
+
}],
|
|
47
|
+
],
|
|
48
|
+
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ]
|
|
49
|
+
}],
|
|
50
|
+
[ 'OS == "freebsd"', {
|
|
51
|
+
'include_dirs': [
|
|
52
|
+
'/usr/local/include'
|
|
53
|
+
],
|
|
54
|
+
'libraries' : [
|
|
55
|
+
'-L/usr/local/lib',
|
|
56
|
+
'-lodbc'
|
|
57
|
+
],
|
|
58
|
+
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS' ]
|
|
59
|
+
}],
|
|
60
|
+
[ 'OS=="win"', {
|
|
61
|
+
'sources' : [
|
|
62
|
+
'src/odbc.cpp'
|
|
63
|
+
],
|
|
64
|
+
'libraries' : [
|
|
65
|
+
'-lodbccp32.lib'
|
|
66
|
+
],
|
|
67
|
+
'defines': [ 'NAPI_DISABLE_CPP_EXCEPTIONS', 'UNICODE' ]
|
|
68
|
+
}],
|
|
69
|
+
[ 'OS=="aix"', {
|
|
70
|
+
'variables': {
|
|
71
|
+
'os_name': '<!(uname -s)',
|
|
72
|
+
},
|
|
73
|
+
'conditions': [
|
|
74
|
+
[ '"<(os_name)"=="OS400"', {
|
|
75
|
+
'ldflags': [
|
|
76
|
+
'-Wl,-brtl,-blibpath:/QOpenSys/pkgs/lib,-lodbc'
|
|
77
|
+
],
|
|
78
|
+
'cflags' : ['-std=c++0x', '-DNAPI_DISABLE_CPP_EXCEPTIONS', '-Wall', '-Wextra', '-Wno-unused-parameter', '-I/QOpenSys/usr/include', '-I/QOpenSys/pkgs/include']
|
|
79
|
+
}]
|
|
80
|
+
]
|
|
81
|
+
}],
|
|
82
|
+
[ 'OS=="os400"', {
|
|
83
|
+
'ldflags': ['-Wl,-blibpath:/QOpenSys/pkgs/lib', '-lodbc'],
|
|
84
|
+
'cflags' : ['-std=c++0x', '-DNAPI_DISABLE_CPP_EXCEPTIONS', '-Wall', '-Wextra', '-Wno-unused-parameter', '-I/QOpenSys/usr/include', '-I/QOpenSys/pkgs/include']
|
|
85
|
+
}]
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"target_name": "action_after_build",
|
|
90
|
+
"type": "none",
|
|
91
|
+
"dependencies": [ "<(module_name)" ],
|
|
92
|
+
"copies": [
|
|
93
|
+
{
|
|
94
|
+
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
|
|
95
|
+
"destination": "<(module_path)"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|