@apache-arrow/adbc-driver-manager 0.23.0

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/LICENSE.txt ADDED
@@ -0,0 +1,523 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
203
+
204
+ --------------------------------------------------------------------------------
205
+ The following crates are used under the Apache License 2.0 (see above):
206
+ adbc_driver_manager 0.1.0
207
+ adbc_core 0.23.0 (https://github.com/apache/arrow-adbc)
208
+ adbc_driver_manager 0.23.0 (https://github.com/apache/arrow-adbc)
209
+ adbc_ffi 0.23.0 (https://github.com/apache/arrow-adbc)
210
+ ahash 0.8.12 (https://github.com/tkaitchuck/ahash)
211
+ android_system_properties 0.1.5 (https://github.com/nical/android_system_properties)
212
+ arrow-array 58.0.0 (https://github.com/apache/arrow-rs)
213
+ arrow-buffer 58.0.0 (https://github.com/apache/arrow-rs)
214
+ arrow-data 58.0.0 (https://github.com/apache/arrow-rs)
215
+ arrow-ipc 58.0.0 (https://github.com/apache/arrow-rs)
216
+ arrow-schema 58.0.0 (https://github.com/apache/arrow-rs)
217
+ arrow-select 58.0.0 (https://github.com/apache/arrow-rs)
218
+ autocfg 1.5.0 (https://github.com/cuviper/autocfg)
219
+ bitflags 2.11.0 (https://github.com/bitflags/bitflags)
220
+ bumpalo 3.20.2 (https://github.com/fitzgen/bumpalo)
221
+ cc 1.2.56 (https://github.com/rust-lang/cc-rs)
222
+ cfg-if 1.0.4 (https://github.com/rust-lang/cfg-if)
223
+ chrono 0.4.44 (https://github.com/chronotope/chrono)
224
+ const-random-macro 0.1.16 (https://github.com/tkaitchuck/constrandom)
225
+ const-random 0.1.18 (https://github.com/tkaitchuck/constrandom)
226
+ core-foundation-sys 0.8.7 (https://github.com/servo/core-foundation-rs)
227
+ ctor-proc-macro 0.0.7 (https://github.com/mmastrac/rust-ctor)
228
+ ctor 0.6.3 (https://github.com/mmastrac/rust-ctor)
229
+ dtor-proc-macro 0.0.6 (https://github.com/mmastrac/rust-ctor)
230
+ dtor 0.1.1 (https://github.com/mmastrac/rust-ctor)
231
+ find-msvc-tools 0.1.9 (https://github.com/rust-lang/cc-rs)
232
+ flatbuffers 25.12.19 (https://github.com/google/flatbuffers)
233
+ futures-channel 0.3.32 (https://github.com/rust-lang/futures-rs)
234
+ futures-core 0.3.32 (https://github.com/rust-lang/futures-rs)
235
+ futures-executor 0.3.32 (https://github.com/rust-lang/futures-rs)
236
+ futures-io 0.3.32 (https://github.com/rust-lang/futures-rs)
237
+ futures-macro 0.3.32 (https://github.com/rust-lang/futures-rs)
238
+ futures-sink 0.3.32 (https://github.com/rust-lang/futures-rs)
239
+ futures-task 0.3.32 (https://github.com/rust-lang/futures-rs)
240
+ futures-util 0.3.32 (https://github.com/rust-lang/futures-rs)
241
+ futures 0.3.32 (https://github.com/rust-lang/futures-rs)
242
+ getrandom 0.2.17 (https://github.com/rust-random/getrandom)
243
+ getrandom 0.3.4 (https://github.com/rust-random/getrandom)
244
+ half 2.7.1 (https://github.com/VoidStarKat/half-rs)
245
+ hashbrown 0.16.1 (https://github.com/rust-lang/hashbrown)
246
+ iana-time-zone-haiku 0.1.2 (https://github.com/strawlab/iana-time-zone)
247
+ iana-time-zone 0.1.65 (https://github.com/strawlab/iana-time-zone)
248
+ js-sys 0.3.91 (https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/js-sys)
249
+ libc 0.2.182 (https://github.com/rust-lang/libc)
250
+ log 0.4.29 (https://github.com/rust-lang/log)
251
+ nohash-hasher 0.2.0 (https://github.com/paritytech/nohash-hasher)
252
+ num-bigint 0.4.6 (https://github.com/rust-num/num-bigint)
253
+ num-complex 0.4.6 (https://github.com/rust-num/num-complex)
254
+ num-integer 0.1.46 (https://github.com/rust-num/num-integer)
255
+ num-traits 0.2.19 (https://github.com/rust-num/num-traits)
256
+ once_cell 1.21.3 (https://github.com/matklad/once_cell)
257
+ pin-project-lite 0.2.17 (https://github.com/taiki-e/pin-project-lite)
258
+ proc-macro2 1.0.106 (https://github.com/dtolnay/proc-macro2)
259
+ quote 1.0.45 (https://github.com/dtolnay/quote)
260
+ r-efi 5.3.0 (https://github.com/r-efi/r-efi)
261
+ regex-automata 0.4.14 (https://github.com/rust-lang/regex)
262
+ regex-syntax 0.8.10 (https://github.com/rust-lang/regex)
263
+ regex 1.12.3 (https://github.com/rust-lang/regex)
264
+ rustc-hash 2.1.1 (https://github.com/rust-lang/rustc-hash)
265
+ rustc_version 0.4.1 (https://github.com/djc/rustc-version-rs)
266
+ rustversion 1.0.22 (https://github.com/dtolnay/rustversion)
267
+ semver 1.0.27 (https://github.com/dtolnay/semver)
268
+ serde_spanned 1.0.4 (https://github.com/toml-rs/toml)
269
+ shlex 1.3.0 (https://github.com/comex/rust-shlex)
270
+ syn 2.0.117 (https://github.com/dtolnay/syn)
271
+ thiserror-impl 1.0.69 (https://github.com/dtolnay/thiserror)
272
+ thiserror 1.0.69 (https://github.com/dtolnay/thiserror)
273
+ toml 1.0.3+spec-1.1.0 (https://github.com/toml-rs/toml)
274
+ toml_datetime 1.0.0+spec-1.1.0 (https://github.com/toml-rs/toml)
275
+ toml_parser 1.0.9+spec-1.1.0 (https://github.com/toml-rs/toml)
276
+ toml_writer 1.0.6+spec-1.1.0 (https://github.com/toml-rs/toml)
277
+ unicode-ident 1.0.24 (https://github.com/dtolnay/unicode-ident)
278
+ unicode-segmentation 1.12.0 (https://github.com/unicode-rs/unicode-segmentation)
279
+ version_check 0.9.5 (https://github.com/SergioBenitez/version_check)
280
+ wasi 0.11.1+wasi-snapshot-preview1 (https://github.com/bytecodealliance/wasi)
281
+ wasip2 1.0.2+wasi-0.2.9 (https://github.com/bytecodealliance/wasi-rs)
282
+ wasm-bindgen-macro-support 0.2.114 (https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/macro-support)
283
+ wasm-bindgen-macro 0.2.114 (https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/macro)
284
+ wasm-bindgen-shared 0.2.114 (https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/shared)
285
+ wasm-bindgen 0.2.114 (https://github.com/wasm-bindgen/wasm-bindgen)
286
+ windows-core 0.62.2 (https://github.com/microsoft/windows-rs)
287
+ windows-implement 0.60.2 (https://github.com/microsoft/windows-rs)
288
+ windows-interface 0.59.3 (https://github.com/microsoft/windows-rs)
289
+ windows-link 0.2.1 (https://github.com/microsoft/windows-rs)
290
+ windows-registry 0.6.1 (https://github.com/microsoft/windows-rs)
291
+ windows-result 0.4.1 (https://github.com/microsoft/windows-rs)
292
+ windows-strings 0.5.1 (https://github.com/microsoft/windows-rs)
293
+ windows-sys 0.61.2 (https://github.com/microsoft/windows-rs)
294
+ wit-bindgen 0.51.0 (https://github.com/bytecodealliance/wit-bindgen)
295
+ zerocopy-derive 0.8.40 (https://github.com/google/zerocopy)
296
+ zerocopy 0.8.40 (https://github.com/google/zerocopy)
297
+
298
+ --------------------------------------------------------------------------------
299
+ Creative Commons Zero v1.0 Universal (CC0-1.0)
300
+
301
+ The following crates are used under this license:
302
+ tiny-keccak 2.0.2
303
+ Creative Commons Legal Code
304
+
305
+ CC0 1.0 Universal
306
+
307
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
308
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
309
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
310
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
311
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
312
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
313
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
314
+ HEREUNDER.
315
+
316
+ Statement of Purpose
317
+
318
+ The laws of most jurisdictions throughout the world automatically confer
319
+ exclusive Copyright and Related Rights (defined below) upon the creator
320
+ and subsequent owner(s) (each and all, an "owner") of an original work of
321
+ authorship and/or a database (each, a "Work").
322
+
323
+ Certain owners wish to permanently relinquish those rights to a Work for
324
+ the purpose of contributing to a commons of creative, cultural and
325
+ scientific works ("Commons") that the public can reliably and without fear
326
+ of later claims of infringement build upon, modify, incorporate in other
327
+ works, reuse and redistribute as freely as possible in any form whatsoever
328
+ and for any purposes, including without limitation commercial purposes.
329
+ These owners may contribute to the Commons to promote the ideal of a free
330
+ culture and the further production of creative, cultural and scientific
331
+ works, or to gain reputation or greater distribution for their Work in
332
+ part through the use and efforts of others.
333
+
334
+ For these and/or other purposes and motivations, and without any
335
+ expectation of additional consideration or compensation, the person
336
+ associating CC0 with a Work (the "Affirmer"), to the extent that he or she
337
+ is an owner of Copyright and Related Rights in the Work, voluntarily
338
+ elects to apply CC0 to the Work and publicly distribute the Work under its
339
+ terms, with knowledge of his or her Copyright and Related Rights in the
340
+ Work and the meaning and intended legal effect of CC0 on those rights.
341
+
342
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
343
+ protected by copyright and related or neighboring rights ("Copyright and
344
+ Related Rights"). Copyright and Related Rights include, but are not
345
+ limited to, the following:
346
+
347
+ i. the right to reproduce, adapt, distribute, perform, display,
348
+ communicate, and translate a Work;
349
+ ii. moral rights retained by the original author(s) and/or performer(s);
350
+ iii. publicity and privacy rights pertaining to a person's image or
351
+ likeness depicted in a Work;
352
+ iv. rights protecting against unfair competition in regards to a Work,
353
+ subject to the limitations in paragraph 4(a), below;
354
+ v. rights protecting the extraction, dissemination, use and reuse of data
355
+ in a Work;
356
+ vi. database rights (such as those arising under Directive 96/9/EC of the
357
+ European Parliament and of the Council of 11 March 1996 on the legal
358
+ protection of databases, and under any national implementation
359
+ thereof, including any amended or successor version of such
360
+ directive); and
361
+ vii. other similar, equivalent or corresponding rights throughout the
362
+ world based on applicable law or treaty, and any national
363
+ implementations thereof.
364
+
365
+ 2. Waiver. To the greatest extent permitted by, but not in contravention
366
+ of, applicable law, Affirmer hereby overtly, fully, permanently,
367
+ irrevocably and unconditionally waives, abandons, and surrenders all of
368
+ Affirmer's Copyright and Related Rights and associated claims and causes
369
+ of action, whether now known or unknown (including existing as well as
370
+ future claims and causes of action), in the Work (i) in all territories
371
+ worldwide, (ii) for the maximum duration provided by applicable law or
372
+ treaty (including future time extensions), (iii) in any current or future
373
+ medium and for any number of copies, and (iv) for any purpose whatsoever,
374
+ including without limitation commercial, advertising or promotional
375
+ purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
376
+ member of the public at large and to the detriment of Affirmer's heirs and
377
+ successors, fully intending that such Waiver shall not be subject to
378
+ revocation, rescission, cancellation, termination, or any other legal or
379
+ equitable action to disrupt the quiet enjoyment of the Work by the public
380
+ as contemplated by Affirmer's express Statement of Purpose.
381
+
382
+ 3. Public License Fallback. Should any part of the Waiver for any reason
383
+ be judged legally invalid or ineffective under applicable law, then the
384
+ Waiver shall be preserved to the maximum extent permitted taking into
385
+ account Affirmer's express Statement of Purpose. In addition, to the
386
+ extent the Waiver is so judged Affirmer hereby grants to each affected
387
+ person a royalty-free, non transferable, non sublicensable, non exclusive,
388
+ irrevocable and unconditional license to exercise Affirmer's Copyright and
389
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
390
+ maximum duration provided by applicable law or treaty (including future
391
+ time extensions), (iii) in any current or future medium and for any number
392
+ of copies, and (iv) for any purpose whatsoever, including without
393
+ limitation commercial, advertising or promotional purposes (the
394
+ "License"). The License shall be deemed effective as of the date CC0 was
395
+ applied by Affirmer to the Work. Should any part of the License for any
396
+ reason be judged legally invalid or ineffective under applicable law, such
397
+ partial invalidity or ineffectiveness shall not invalidate the remainder
398
+ of the License, and in such case Affirmer hereby affirms that he or she
399
+ will not (i) exercise any of his or her remaining Copyright and Related
400
+ Rights in the Work or (ii) assert any associated claims and causes of
401
+ action with respect to the Work, in either case contrary to Affirmer's
402
+ express Statement of Purpose.
403
+
404
+ 4. Limitations and Disclaimers.
405
+
406
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
407
+ surrendered, licensed or otherwise affected by this document.
408
+ b. Affirmer offers the Work as-is and makes no representations or
409
+ warranties of any kind concerning the Work, express, implied,
410
+ statutory or otherwise, including without limitation warranties of
411
+ title, merchantability, fitness for a particular purpose, non
412
+ infringement, or the absence of latent or other defects, accuracy, or
413
+ the present or absence of errors, whether or not discoverable, all to
414
+ the greatest extent permissible under applicable law.
415
+ c. Affirmer disclaims responsibility for clearing rights of other persons
416
+ that may apply to the Work or any use thereof, including without
417
+ limitation any person's Copyright and Related Rights in the Work.
418
+ Further, Affirmer disclaims responsibility for obtaining any necessary
419
+ consents, permissions or other rights required for any use of the
420
+ Work.
421
+ d. Affirmer understands and acknowledges that Creative Commons is not a
422
+ party to this document and has no duty or obligation with respect to
423
+ this CC0 or use of the Work.
424
+
425
+
426
+ --------------------------------------------------------------------------------
427
+ ISC License (ISC)
428
+
429
+ The following crates are used under this license:
430
+ libloading 0.8.9 (https://github.com/nagisa/rust_libloading/)
431
+ libloading 0.9.0 (https://github.com/nagisa/rust_libloading/)
432
+ ISC License:
433
+
434
+ Copyright (c) 2004-2010 by Internet Systems Consortium, Inc. ("ISC")
435
+ Copyright (c) 1995-2003 by Internet Software Consortium
436
+
437
+ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
438
+
439
+ THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
440
+
441
+
442
+ --------------------------------------------------------------------------------
443
+ MIT License (MIT)
444
+
445
+ The following crates are used under this license:
446
+ aho-corasick 1.1.4 (https://github.com/BurntSushi/aho-corasick)
447
+ bytes 1.11.1 (https://github.com/tokio-rs/bytes)
448
+ convert_case 0.11.0 (https://github.com/rutrum/convert-case)
449
+ crunchy 0.2.4 (https://github.com/eira-fransham/crunchy)
450
+ libm 0.2.16 (https://github.com/rust-lang/compiler-builtins)
451
+ memchr 2.8.0 (https://github.com/BurntSushi/memchr)
452
+ napi-build 2.3.1 (https://github.com/napi-rs/napi-rs)
453
+ napi-derive-backend 5.0.2 (https://github.com/napi-rs/napi-rs)
454
+ napi-derive 3.5.2 (https://github.com/napi-rs/napi-rs)
455
+ napi-sys 3.2.1 (https://github.com/napi-rs/napi-rs)
456
+ napi 3.8.3 (https://github.com/napi-rs/napi-rs)
457
+ path-slash 0.2.1 (https://github.com/rhysd/path-slash)
458
+ slab 0.4.12 (https://github.com/tokio-rs/slab)
459
+ winnow 0.7.14 (https://github.com/winnow-rs/winnow)
460
+ MIT License
461
+
462
+ Copyright (c) <year> <copyright holders>
463
+
464
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
465
+ associated documentation files (the "Software"), to deal in the Software without restriction, including
466
+ without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
467
+ copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
468
+ following conditions:
469
+
470
+ The above copyright notice and this permission notice shall be included in all copies or substantial
471
+ portions of the Software.
472
+
473
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
474
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
475
+ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
476
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
477
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
478
+
479
+
480
+ --------------------------------------------------------------------------------
481
+ Unicode License v3 (Unicode-3.0)
482
+
483
+ The following crates are used under this license:
484
+ unicode-ident 1.0.24 (https://github.com/dtolnay/unicode-ident)
485
+ UNICODE LICENSE V3
486
+
487
+ COPYRIGHT AND PERMISSION NOTICE
488
+
489
+ Copyright © 1991-2023 Unicode, Inc.
490
+
491
+ NOTICE TO USER: Carefully read the following legal agreement. BY
492
+ DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
493
+ SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
494
+ TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
495
+ DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
496
+
497
+ Permission is hereby granted, free of charge, to any person obtaining a
498
+ copy of data files and any associated documentation (the "Data Files") or
499
+ software and any associated documentation (the "Software") to deal in the
500
+ Data Files or Software without restriction, including without limitation
501
+ the rights to use, copy, modify, merge, publish, distribute, and/or sell
502
+ copies of the Data Files or Software, and to permit persons to whom the
503
+ Data Files or Software are furnished to do so, provided that either (a)
504
+ this copyright and permission notice appear with all copies of the Data
505
+ Files or Software, or (b) this copyright and permission notice appear in
506
+ associated Documentation.
507
+
508
+ THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
509
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
510
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
511
+ THIRD PARTY RIGHTS.
512
+
513
+ IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
514
+ BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
515
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
516
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
517
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
518
+ FILES OR SOFTWARE.
519
+
520
+ Except as contained in this notice, the name of a copyright holder shall
521
+ not be used in advertising or otherwise to promote the sale, use or other
522
+ dealings in these Data Files or Software without prior written
523
+ authorization of the copyright holder.
package/README.md ADDED
@@ -0,0 +1,130 @@
1
+ <!---
2
+ Licensed to the Apache Software Foundation (ASF) under one
3
+ or more contributor license agreements. See the NOTICE file
4
+ distributed with this work for additional information
5
+ regarding copyright ownership. The ASF licenses this file
6
+ to you under the Apache License, Version 2.0 (the
7
+ "License"); you may not use this file except in compliance
8
+ with the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing,
13
+ software distributed under the License is distributed on an
14
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ KIND, either express or implied. See the License for the
16
+ specific language governing permissions and limitations
17
+ under the License.
18
+ -->
19
+
20
+ # Apache Arrow ADBC: Node.js Driver Manager
21
+
22
+ Node.js bindings for the [Arrow Database Connectivity (ADBC)](https://arrow.apache.org/adbc/) standard.
23
+ Built on a native [NAPI](https://nodejs.org/api/n-api.html) addon — requires Node.js 22+ and does not
24
+ support browser or Deno environments. Bun is not officially tested.
25
+
26
+ > **Alpha.** APIs may change without notice.
27
+ > If you try this and run into issues or have feedback, please [open an issue](https://github.com/apache/arrow-adbc/issues).
28
+
29
+ ## Installation
30
+
31
+ ```bash
32
+ npm install @apache-arrow/adbc-driver-manager apache-arrow
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ The `driver` option accepts either a full path to a shared library or a short
38
+ name. When using a short name, the driver manager searches system and user
39
+ paths for a matching ADBC driver manifest or library.
40
+
41
+ ```typescript
42
+ import { AdbcDatabase } from '@apache-arrow/adbc-driver-manager'
43
+
44
+ // Short name (resolves from system/user paths)
45
+ const db = new AdbcDatabase({ driver: 'sqlite' })
46
+ ```
47
+
48
+ ```typescript
49
+ // Or a full path to a driver shared library
50
+ const db = new AdbcDatabase({ driver: '/path/to/libadbc_driver_sqlite.dylib' })
51
+ ```
52
+
53
+ Once you have a database, open a connection and run queries:
54
+
55
+ ```typescript
56
+ const connection = await db.connect()
57
+
58
+ // Execute a query — returns an Apache Arrow Table
59
+ const table = await connection.query('SELECT 1 AS value')
60
+ console.log(table.toArray())
61
+
62
+ // For large result sets, stream record batches instead
63
+ const reader = await connection.queryStream('SELECT * FROM large_table')
64
+ for await (const batch of reader) {
65
+ console.log(`Received batch with ${batch.numRows} rows`)
66
+ }
67
+
68
+ // DML — returns the number of affected rows
69
+ const affected = await connection.execute('DELETE FROM my_table WHERE id = 1')
70
+
71
+ await connection.close()
72
+ await db.close()
73
+ ```
74
+
75
+ For finer-grained control, use the statement API directly:
76
+
77
+ ```typescript
78
+ import { tableFromArrays } from 'apache-arrow'
79
+
80
+ const stmt = await connection.createStatement()
81
+ await stmt.setSqlQuery('SELECT * FROM my_table WHERE id = ?')
82
+ await stmt.bind(tableFromArrays({ id: [42] }))
83
+ const reader = await stmt.executeQuery()
84
+ for await (const batch of reader) {
85
+ console.log(batch.toArray())
86
+ }
87
+ await stmt.close()
88
+ ```
89
+
90
+ ## Development
91
+
92
+ ### Prerequisites
93
+
94
+ - Node.js 22+
95
+ - Rust (latest stable)
96
+ - CMake 3.14+ and a C/C++ compiler (for building the driver libraries)
97
+ - npm (usually comes with Node.js)
98
+
99
+ ### Building from Source
100
+
101
+ 1. Install dependencies:
102
+
103
+ ```bash
104
+ npm install
105
+ ```
106
+
107
+ 2. Build the Rust addon:
108
+
109
+ ```bash
110
+ npm run build:debug # debug build (faster)
111
+ npm run build # release build
112
+ ```
113
+
114
+ ### Testing
115
+
116
+ The tests require a built ADBC driver library (e.g. SQLite). Build everything including the SQLite driver with:
117
+
118
+ ```bash
119
+ npm run build:driver
120
+ ```
121
+
122
+ This runs CMake to compile the C ADBC drivers into `build/lib/` and builds the Rust Node.js addon. Once built, run the tests:
123
+
124
+ ```bash
125
+ npm test
126
+ ```
127
+
128
+ ## License
129
+
130
+ Apache-2.0