teradatasql 20.0.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.
Files changed (59) hide show
  1. package/LICENSE +196 -0
  2. package/README.md +1447 -0
  3. package/THIRDPARTYLICENSE +40 -0
  4. package/lib/index.d.ts +14 -0
  5. package/lib/index.d.ts.map +1 -0
  6. package/lib/index.js +50 -0
  7. package/lib/index.js.map +1 -0
  8. package/lib/teradata-connection.d.ts +74 -0
  9. package/lib/teradata-connection.d.ts.map +1 -0
  10. package/lib/teradata-connection.js +280 -0
  11. package/lib/teradata-connection.js.map +1 -0
  12. package/lib/teradata-cursor.d.ts +58 -0
  13. package/lib/teradata-cursor.d.ts.map +1 -0
  14. package/lib/teradata-cursor.js +746 -0
  15. package/lib/teradata-cursor.js.map +1 -0
  16. package/lib/teradata-exceptions.d.ts +19 -0
  17. package/lib/teradata-exceptions.d.ts.map +1 -0
  18. package/lib/teradata-exceptions.js +52 -0
  19. package/lib/teradata-exceptions.js.map +1 -0
  20. package/lib/teradata-logging.d.ts +23 -0
  21. package/lib/teradata-logging.d.ts.map +1 -0
  22. package/lib/teradata-logging.js +79 -0
  23. package/lib/teradata-logging.js.map +1 -0
  24. package/lib/teradatasql.dll +0 -0
  25. package/lib/teradatasql.dylib +0 -0
  26. package/lib/teradatasql.so +0 -0
  27. package/package.json +33 -0
  28. package/samples/AGKRBatchInsert.js +38 -0
  29. package/samples/AGKRInsertSelect.js +28 -0
  30. package/samples/BatchInsPerf.js +47 -0
  31. package/samples/BatchInsert.js +17 -0
  32. package/samples/BatchInsertCSV.js +54 -0
  33. package/samples/CharPadding.js +31 -0
  34. package/samples/CommitRollback.js +31 -0
  35. package/samples/DecimalDigits.js +49 -0
  36. package/samples/DriverDatabaseVersion.js +14 -0
  37. package/samples/ElicitFile.js +19 -0
  38. package/samples/ExportCSVResult.js +54 -0
  39. package/samples/ExportCSVResults.js +60 -0
  40. package/samples/FakeExportCSVResults.js +82 -0
  41. package/samples/FakeResultSetCon.js +72 -0
  42. package/samples/FakeResultSetEsc.js +72 -0
  43. package/samples/FastExportCSV.js +102 -0
  44. package/samples/FastExportTable.js +76 -0
  45. package/samples/FastLoadBatch.js +152 -0
  46. package/samples/FastLoadCSV.js +116 -0
  47. package/samples/HelpSession.js +18 -0
  48. package/samples/IgnoreErrors.js +125 -0
  49. package/samples/InsertLob.js +62 -0
  50. package/samples/InsertXML.js +37 -0
  51. package/samples/LoadCSVFile.js +41 -0
  52. package/samples/LobLocators.js +57 -0
  53. package/samples/MetadataFromPrepare.js +23 -0
  54. package/samples/ParamDataTypes.js +70 -0
  55. package/samples/ShowCommand.js +31 -0
  56. package/samples/StoredProc.js +77 -0
  57. package/samples/TJEncryptPassword.js +270 -0
  58. package/samples/airports.csv +9 -0
  59. package/samples/udfinc.c +6 -0
package/LICENSE ADDED
@@ -0,0 +1,196 @@
1
+ Teradata SQL Driver for Node.js
2
+ Copyright 2023 Teradata. All rights reserved.
3
+
4
+ LICENSE AGREEMENT
5
+
6
+ PRODUCT: Teradata SQL Driver for Node.js
7
+
8
+ IMPORTANT - READ THIS AGREEMENT CAREFULLY BEFORE INSTALLING OR USING THE SOFTWARE.
9
+ TERADATA WILL LICENSE THE SOFTWARE TO YOU ONLY IF YOU ACCEPT THE TERMS AND CONDITIONS OF
10
+ THIS AGREEMENT AND MEET THE CONDITIONS FOR USING THE SOFTWARE DESCRIBED BELOW. BY
11
+ DOWNLOADING, INSTALLING OR USING THE SOFTWARE, YOU (1) AGREE TO THE TERMS AND CONDITIONS
12
+ OF THIS AGREEMENT, AND (2) REPRESENT AND WARRANT THAT YOU POSSESS THE AUTHORITY TO ENTER
13
+ INTO THIS AGREEMENT ON BEHALF OF YOU, YOUR EMPLOYER (WHEN ACTING ON BEHALF OF YOUR EMPLOYER),
14
+ AND/OR A TERADATA-AUTHORIZED LICENSEE (WHEN YOU AND YOUR EMPLOYER ARE ACTING ON BEHALF OF A
15
+ TERADATA-AUTHORIZED LICENSEE). IF YOU DO NOT ACCEPT THE TERMS AND CONDITIONS OF THIS
16
+ AGREEMENT, DO NOT DOWNLOAD, INSTALL OR USE THE SOFTWARE.
17
+
18
+ IMPORTANT - BY DOWNLOADING THE SOFTWARE:
19
+ * YOU ACKNOWLEDGE THAT THE SOFTWARE YOU ARE DOWNLOADING FROM TERADATA IS SUBJECT
20
+ TO THE RESTRICTIONS AND CONTROLS IMPOSED BY UNITED STATES EXPORT REGULATIONS.
21
+ * YOU CERTIFY THAT:
22
+ ** YOU DO NOT INTEND TO USE THE SOFTWARE FOR ANY PURPOSE PROHIBITED BY UNITED STATES EXPORT
23
+ REGULATIONS, INCLUDING, WITHOUT LIMITATION, TERRORISM, CYBER-ATTACKS, CYBER-CRIMES,
24
+ MONEY-LAUNDERING, INDUSTRIAL ESPIONAGE, OR NUCLEAR, CHEMICAL OR BIOLOGICAL WEAPONS
25
+ PROLIFERATION.
26
+ ** YOU ARE NOT LISTED AS A DENIED PARTY ON ANY LIST GOVERNING UNITED STATES EXPORTS.
27
+ ** YOU ARE NOT A NATIONAL OF ANY COUNTRY THAT IS NOT APPROVED FOR EXPORT OF THE SOFTWARE.
28
+ AS OF 2017, THESE COUNTRIES ARE CUBA, IRAN, NORTH KOREA, AND SYRIA.
29
+
30
+ This License Agreement ("Agreement") is a legal contract between you (as defined below) and
31
+ Teradata (as defined below) regarding the Software (as defined below). The terms "you",
32
+ "your" and "yours" collectively and individually refer to you as an individual and to any
33
+ company for which you are acting. The term "Teradata" refers to either Teradata U.S., Inc.
34
+ for Software deliveries in the US or Teradata Ireland Ltd. for Software deliveries outside
35
+ the United States. "Software" refers to the software product identified above, which
36
+ consists of computer software code in object code form only, as well as associated
37
+ documentation that Teradata may elect in its sole discretion to provide you. "Software"
38
+ also includes any and all error corrections, bug fixes, updates, upgrades, or new versions
39
+ or releases of the Software (collectively and individually, "Enhancements") that Teradata
40
+ may elect in its sole discretion to provide you.
41
+
42
+ 1. Term. This Agreement commences on the earliest date of the first download, first
43
+ copying, first installation, or first use of the Software (the "Effective Date").
44
+ Unless terminated earlier as provided herein, this agreement, including your license
45
+ to the Software, will expire or terminate on the same date that your Teradata-authorized
46
+ license to use the Teradata Analytics Platform product expires or terminates (whichever
47
+ occurs first).
48
+
49
+ 2. License.
50
+
51
+ (a) Subject to your compliance with all of the terms and conditions of this Agreement
52
+ and only during the term of this Agreement, Teradata grants you a nonexclusive,
53
+ nontransferable, paid up license to install and use the Software on your computer
54
+ solely for purposes of facilitating your Teradata-authorized license to use the
55
+ Teradata Analytics Platform. You may make reasonable archival backup copies of the
56
+ Software, but may only use an archival copy in lieu of your primary copy and subject
57
+ to the same restrictions as your primary copy.
58
+
59
+ (b) The term Third Party Software means computer programs or modules (including their
60
+ documentation) that bear the logo, copyright and/or trademark of a third party
61
+ (including open source software that are contained in files marked as "open source"
62
+ or the like) or are otherwise subject to the written license terms of a third party.
63
+ The term "Software" does not include Third Party Software. Third Party Software is
64
+ licensed to you subject to the applicable license terms accompanying it, included
65
+ in/with it, referenced in it, or otherwise entered into by you with respect to it.
66
+ Third Party Software license terms include those found in the FOSS licensing zip file
67
+ accompanying the Software. Teradata provides source code to certain Third Party
68
+ Software for certain periods of time in compliance with certain applicable licenses.
69
+ To request such source code, visit http://developer.teradata.com/download/license/oss-request.
70
+
71
+ (c) You will not sell, copy, rent, loan, modify, transfer, disclose, embed, sublicense,
72
+ create derivative works of or distribute the Software, in whole or in part, without
73
+ Teradata's prior written consent. You are granted no rights to obtain or use the
74
+ Software's source code. You will not reverse-assemble, reverse compile or reverse-
75
+ engineer the Software, except as expressly permitted by applicable law without the
76
+ possibility of contractual waiver. Notwithstanding anything to the contrary, you do
77
+ not have any license, right, or authority to subject the Software, in whole or in part
78
+ or as part of a larger work, to any terms of any other agreement, including GNU Public
79
+ Licenses.
80
+
81
+ (d) No license rights to the Software will be implied. The Software, which includes all
82
+ copies thereof (whether in whole or in part), is and remains the exclusive property of
83
+ Teradata. You will ensure that all copies of the Software contain Teradata's copyright
84
+ notices, as well as all other proprietary legends. Teradata reserves the right to
85
+ inspect your use of the Software for purposes of verifying your compliance with the
86
+ terms and conditions of this Agreement.
87
+
88
+ 3. Responsibilities. You are responsible for the installation of the Software, as
89
+ well as for providing data security and backup operations. This Agreement does not
90
+ require Teradata to provide you with any Enhancements, consulting services, technical
91
+ assistance, installation, training, support, or maintenance of any kind (collectively
92
+ and individually, "Services"). To the extent that Teradata elects to provide you
93
+ with any Services, such Services are provided to you at Teradata's sole discretion
94
+ and may be modified or discontinued at any time for any reason.
95
+
96
+ 4. DISCLAIMER OF WARRANTY. TERADATA: (a) PROVIDES SERVICES (IF ANY), (b) LICENSES THE
97
+ SOFTWARE, AND (c) PROVIDES THIRD PARTY SOFTWARE TO YOU ON AN "AS-IS" BASIS WITHOUT
98
+ WARRANTIES OF ANY KIND (ORAL OR WRITTEN, EXPRESS OR IMPLIED, OR STATUTORY). WITHOUT
99
+ LIMITATION TO THE FOREGOING, THERE ARE NO IMPLIED WARRANTIES OF MERCHANTABILITY,
100
+ FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. TERADATA DOES NOT WARRANT
101
+ THAT THE SOFTWARE, THIRD PARTY SOFTWARE, OR SERVICES WILL MEET YOUR REQUIREMENTS
102
+ OR CONFORM TO ANY SPECIFICATIONS, OR THAT THE OPERATION OF THE SOFTWARE OR THIRD
103
+ PARTY SOFTWARE WILL BE UNINTERRUPTED OR ERROR FREE. YOU BEAR THE ENTIRE RISK AS
104
+ TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY, AND RESULTS OBTAINED FROM THE
105
+ SOFTWARE, THIRD PARTY SOFTWARE, AND SERVICES.
106
+
107
+ SOME JURISDICTIONS RESTRICT DISCLAIMERS OF WARRANTY, SO THE ABOVE DISCLAIMERS MAY
108
+ NOT FULLY APPLY TO YOU.
109
+
110
+ 5. LIMITATIONS ON LIABILITY: UNDER NO CIRCUMSTANCES WILL TERADATA'S AND ITS LICENSORS'
111
+ TOTAL CUMULATIVE LIABILITY FOR CLAIMS RELATING TO THIS AGREEMENT, THE SERVICES,
112
+ THE SOFTWARE, AND/OR THIRD PARTY SOFTWARE (WHETHER BASED IN CONTRACT, STATUTE,
113
+ TORT (INCLUDING NEGLIGENCE) OR OTHERWISE) EXCEED US$1,000; PROVIDED, HOWEVER,
114
+ THAT THE FOREGOING WILL NOT APPLY TO CLAIMS FOR (A) PERSONAL INJURY, INCLUDING
115
+ DEATH, TO THE EXTENT CAUSED BY TERADATA'S NEGLIGENCE OR WILLFUL MISCONDUCT; OR
116
+ (B) PHYSICAL DAMAGE TO TANGIBLE REAL OR PERSONAL PROPERTY TO THE EXTENT CAUSED
117
+ BY TERADATA'S NEGLIGENCE OR WILLFUL MISCONDUCT EQUAL TO THE AMOUNT OF DIRECT
118
+ DAMAGES UP TO ONE MILLION DOLLARS PER OCCURRENCE. IN NO EVENT WILL TERADATA
119
+ OR ITS LICENSORS BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL OR
120
+ CONSEQUENTIAL DAMAGES, OR FOR LOSS OF PROFITS, REVENUE, TIME, OPPORTUNITY OR
121
+ DATA, EVEN IF INFORMED OF THE POSSIBILITY OF SUCH DAMAGES.
122
+
123
+ SOME JURISDICTIONS RESTRICT LIMITATIONS OF LIABILITY, SO THE ABOVE LIMITATIONS MAY
124
+ NOT FULLY APPLY TO YOU.
125
+
126
+ 6. Government Restrictions. You agree that you will not, directly or indirectly, export
127
+ or transmit any Software without obtaining Teradata's prior written authorization,
128
+ as well as appropriate governmental approvals, including those required by the
129
+ U.S. Government. Use and or distribution of this software is subject to export laws
130
+ and regulations of the United States and other jurisdictions. The links below connect
131
+ you to applicable U.S. government agencies, and their regulations, that have
132
+ jurisdiction over this transaction.
133
+ http://www.bis.doc.gov/
134
+ http://www.treas.gov/offices/enforcement/ofac/
135
+
136
+ In downloading this product, you acknowledge that this transaction is subject to
137
+ applicable export control laws and you certify that your download, use and/or subsequent
138
+ distribution of this product is not prohibited under applicable laws and regulations.
139
+
140
+ The Government's use, duplication, or disclosure of Teradata's commercial computer
141
+ software and commercial computer software documentation is subject to: (a) the
142
+ Restricted Rights Notice set forth in 48 C.F.R. 52.227-14 (Rights In Data - General);
143
+ (b) Teradata's standard commercial license rights supplemented by 48 C.F.R. 52.227-19
144
+ (Commercial Computer Software - Restricted Rights); and/or (c) the limited rights and
145
+ license set forth 48 C.F.R. 252.227-7015 (Technical Data - Commercial Items), as applicable.
146
+
147
+ 7. Termination and Expiration. A party may terminate this Agreement with or without
148
+ cause, upon providing written notice to the other parties. When this Agreement
149
+ terminates or expires, you will immediately cease all use of the Software, permanently
150
+ remove the Software from all computers, destroy all copies of the Software, and (upon
151
+ receipt of Teradata's request) provide a signed written certification that the
152
+ foregoing has occurred. Sections 4, 5, 6, 7, 8, 9, 10, and 11 will survive expiration
153
+ or termination of this Agreement.
154
+
155
+ 8. Choice of Law and Dispute Resolution. The parties will attempt in good faith to resolve
156
+ any controversy or claim by negotiation or mediation. If they are unable to do so, and
157
+ regardless of the causes of action alleged and whether they arise under this Agreement
158
+ or otherwise, the claim will be resolved by arbitration before a sole arbitrator in
159
+ Dayton, Ohio pursuant to the then-current Commercial Rules of the American Arbitration
160
+ Association and the federal substantive and procedural law of arbitration. The
161
+ arbitrator's award will be final and binding, and may be entered in any court having
162
+ jurisdiction thereof, but may include only damages consistent with the limitations in
163
+ this Agreement. Each party will bear its own attorney's fees and costs related to the
164
+ arbitration. The obligations to negotiate, mediate and arbitrate shall not apply to
165
+ claims for misuse or infringement of a party's intellectual property rights. Any
166
+ claim or action must be brought within two years after the claimant knows or should
167
+ have known of the claim. New York law will govern the interpretation and enforcement
168
+ of this Agreement, except that the Federal Arbitration Act will govern the
169
+ interpretation and enforcement of the arbitrability of claims under this Section.
170
+
171
+ 9. Feedback. Notwithstanding anything to the contrary: (a) Teradata will have no
172
+ obligation of any kind with respect to any Software-related comments, suggestions,
173
+ design changes or improvements that you elect to provide to Teradata in either verbal
174
+ or written form (collectively, "Software Feedback"), and (b) Teradata and its
175
+ affiliates are hereby free to use any ideas, concepts, know-how or techniques, in
176
+ whole or in part, contained in Software Feedback: (i) for any purpose whatsoever,
177
+ including developing, manufacturing, and/or marketing products and/or services
178
+ incorporating Software Feedback in whole or in part, and (ii) without any
179
+ restrictions or limitations, including requiring the payment of any license fees,
180
+ royalties, or other consideration.
181
+
182
+ 10. Confidentiality. You will not disclose the results of any testing or evaluations,
183
+ including any benchmarks, insofar as it relates to the Software without Teradata's
184
+ prior written consent.
185
+
186
+ 11. Entire Agreement. This Agreement constitutes the entire understanding of the parties
187
+ with respect to the Software and Services, and supersede all other prior agreements
188
+ and understandings whether oral or written. No oral representation or change to this
189
+ Agreement will be binding upon either party unless agreed to in writing and signed by
190
+ authorized representatives of all parties. You will not assign this Agreement or your
191
+ rights, nor will you delegate your obligations under this Agreement. Failure by
192
+ either party to enforce any term or condition of this Agreement will not be deemed
193
+ a waiver of future enforcement of that or any other term or condition. The provisions
194
+ of this Agreement are severable. "Include", "includes", and "including" shall be
195
+ interpreted as introducing a list of examples which do not limit the generality of
196
+ any preceding words or any words in the list of examples.