@sap/async-xsjs 1.0.2

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 (178) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/LICENSE +37 -0
  3. package/README.md +445 -0
  4. package/differences.md +162 -0
  5. package/docs/$.Application.html +262 -0
  6. package/docs/$.Session.html +674 -0
  7. package/docs/$.db.CallableStatement.html +2524 -0
  8. package/docs/$.db.Connection.html +511 -0
  9. package/docs/$.db.ParameterMetaData.html +805 -0
  10. package/docs/$.db.PreparedStatement.html +1796 -0
  11. package/docs/$.db.ResultSet.html +1308 -0
  12. package/docs/$.db.ResultSetMetaData.html +800 -0
  13. package/docs/$.db.SQLException.html +259 -0
  14. package/docs/$.db.html +773 -0
  15. package/docs/$.hdb.ColumnMetadata.html +438 -0
  16. package/docs/$.hdb.Connection.html +663 -0
  17. package/docs/$.hdb.ProcedureResult.html +280 -0
  18. package/docs/$.hdb.ResultSet.html +324 -0
  19. package/docs/$.hdb.ResultSetIterator.html +315 -0
  20. package/docs/$.hdb.ResultSetMetaData.html +259 -0
  21. package/docs/$.hdb.SQLException.html +259 -0
  22. package/docs/$.hdb.html +557 -0
  23. package/docs/$.html +471 -0
  24. package/docs/$.jobs.Job.html +783 -0
  25. package/docs/$.jobs.JobLog.html +380 -0
  26. package/docs/$.jobs.JobSchedules.html +852 -0
  27. package/docs/$.jobs.html +238 -0
  28. package/docs/$.net.Destination.html +304 -0
  29. package/docs/$.net.Mail.Part.html +510 -0
  30. package/docs/$.net.Mail.html +504 -0
  31. package/docs/$.net.SMTPConnection.html +347 -0
  32. package/docs/$.net.html +749 -0
  33. package/docs/$.net.http.Client.html +562 -0
  34. package/docs/$.net.http.Destination.html +237 -0
  35. package/docs/$.net.http.Request.html +567 -0
  36. package/docs/$.net.http.html +292 -0
  37. package/docs/$.security.AntiVirus.html +361 -0
  38. package/docs/$.security.Store.html +636 -0
  39. package/docs/$.security.crypto.html +414 -0
  40. package/docs/$.security.html +247 -0
  41. package/docs/$.security.x509.html +373 -0
  42. package/docs/$.text.analysis.Session.html +983 -0
  43. package/docs/$.text.analysis.html +242 -0
  44. package/docs/$.text.html +246 -0
  45. package/docs/$.text.mining.Session.html +2018 -0
  46. package/docs/$.text.mining.html +242 -0
  47. package/docs/$.trace.html +525 -0
  48. package/docs/$.util.SAXParser.html +955 -0
  49. package/docs/$.util.Zip.html +474 -0
  50. package/docs/$.util.codec.html +414 -0
  51. package/docs/$.util.compression.html +357 -0
  52. package/docs/$.util.html +325 -0
  53. package/docs/$.util.sql.html +290 -0
  54. package/docs/$.web.Body.html +333 -0
  55. package/docs/$.web.EntityList.html +296 -0
  56. package/docs/$.web.TupelList.html +496 -0
  57. package/docs/$.web.WebEntityRequest.html +393 -0
  58. package/docs/$.web.WebEntityResponse.html +392 -0
  59. package/docs/$.web.WebRequest.html +560 -0
  60. package/docs/$.web.WebResponse.html +609 -0
  61. package/docs/$.web.html +246 -0
  62. package/docs/Copyright-SAP.html +39 -0
  63. package/docs/Disclaimer-SAP.html +55 -0
  64. package/docs/index.html +232 -0
  65. package/docs/styles/jsdoc-default.css +382 -0
  66. package/lib/AppConfig.js +36 -0
  67. package/lib/AuditLogger.js +41 -0
  68. package/lib/cacert.js +26 -0
  69. package/lib/ctypes.js +153 -0
  70. package/lib/destinations/dest-provider.js +57 -0
  71. package/lib/index.js +235 -0
  72. package/lib/jobs/Action.js +40 -0
  73. package/lib/jobs/Job.js +100 -0
  74. package/lib/jobs/JobManager.js +150 -0
  75. package/lib/jobs/JobsRuntime.js +133 -0
  76. package/lib/jobs/SqlScriptJobRunner.js +36 -0
  77. package/lib/jobs/XsjsJobRunner.js +78 -0
  78. package/lib/jobs/index.js +11 -0
  79. package/lib/logging.js +16 -0
  80. package/lib/middleware.js +125 -0
  81. package/lib/odata/ODataService.js +125 -0
  82. package/lib/odata/index.js +7 -0
  83. package/lib/odata/service-factory.js +26 -0
  84. package/lib/passport-noauth.js +17 -0
  85. package/lib/routes.js +115 -0
  86. package/lib/runtime.js +740 -0
  87. package/lib/sandbox.js +40 -0
  88. package/lib/utils/XsJsFunctionRunner.js +57 -0
  89. package/lib/utils/XsJsLibFunctionRunner.js +57 -0
  90. package/lib/utils/buffer-utils.js +77 -0
  91. package/lib/utils/compression-utils.js +14 -0
  92. package/lib/utils/date-utils.js +104 -0
  93. package/lib/utils/errors/HttpError.js +20 -0
  94. package/lib/utils/errors/wrap-app-error.js +18 -0
  95. package/lib/utils/index.js +17 -0
  96. package/lib/utils/xs-function-runner.js +51 -0
  97. package/lib/utils/xs-types.js +21 -0
  98. package/lib/utils/xspath.js +36 -0
  99. package/lib/utils/xsstack.js +28 -0
  100. package/lib/views/error.html +28 -0
  101. package/lib/xsjs/Application.js +28 -0
  102. package/lib/xsjs/Locale.js +53 -0
  103. package/lib/xsjs/Session.js +31 -0
  104. package/lib/xsjs/constants.js +71 -0
  105. package/lib/xsjs/db/common/DbBase.js +85 -0
  106. package/lib/xsjs/db/common/DbOptions.js +163 -0
  107. package/lib/xsjs/db/common/arguments-validation.js +102 -0
  108. package/lib/xsjs/db/common/connection.js +12 -0
  109. package/lib/xsjs/db/common/enums.js +93 -0
  110. package/lib/xsjs/db/common/execute-batch.js +38 -0
  111. package/lib/xsjs/db/common/parse-time.js +139 -0
  112. package/lib/xsjs/db/dbapi/CallableStatement.js +192 -0
  113. package/lib/xsjs/db/dbapi/Connection.js +78 -0
  114. package/lib/xsjs/db/dbapi/DB.js +39 -0
  115. package/lib/xsjs/db/dbapi/ParameterMetaData.js +118 -0
  116. package/lib/xsjs/db/dbapi/PreparedStatement.js +78 -0
  117. package/lib/xsjs/db/dbapi/ResultSet.js +220 -0
  118. package/lib/xsjs/db/dbapi/ResultSetMetaData.js +116 -0
  119. package/lib/xsjs/db/dbapi/Statement.js +514 -0
  120. package/lib/xsjs/db/dbapi/conversions.js +113 -0
  121. package/lib/xsjs/db/dbapi/fetch-rows.js +32 -0
  122. package/lib/xsjs/db/hdbapi/Connection.js +525 -0
  123. package/lib/xsjs/db/hdbapi/HDB.js +32 -0
  124. package/lib/xsjs/db/hdbapi/ResultSetIterator.js +40 -0
  125. package/lib/xsjs/db/hdbapi/convert.js +77 -0
  126. package/lib/xsjs/db/hdbapi/table-string-parser.js +52 -0
  127. package/lib/xsjs/db/index.js +4 -0
  128. package/lib/xsjs/index.js +13 -0
  129. package/lib/xsjs/jobs/Job.js +228 -0
  130. package/lib/xsjs/jobs/Jobs.js +11 -0
  131. package/lib/xsjs/jobs/Logs.js +127 -0
  132. package/lib/xsjs/jobs/Schedule.js +110 -0
  133. package/lib/xsjs/jobs/Schedules.js +108 -0
  134. package/lib/xsjs/net/Destination.js +43 -0
  135. package/lib/xsjs/net/http/Client.js +220 -0
  136. package/lib/xsjs/net/http/HTTP.js +72 -0
  137. package/lib/xsjs/net/index.js +5 -0
  138. package/lib/xsjs/net/smtp/Mail.js +38 -0
  139. package/lib/xsjs/net/smtp/Part.js +30 -0
  140. package/lib/xsjs/net/smtp/SMTPConnection.js +39 -0
  141. package/lib/xsjs/net/smtp/index.js +18 -0
  142. package/lib/xsjs/net/smtp/nodemailer-util.js +77 -0
  143. package/lib/xsjs/require.js +39 -0
  144. package/lib/xsjs/security/AntiVirus.js +31 -0
  145. package/lib/xsjs/security/Store.js +119 -0
  146. package/lib/xsjs/security/crypto.js +23 -0
  147. package/lib/xsjs/security/index.js +5 -0
  148. package/lib/xsjs/security/x509.js +12 -0
  149. package/lib/xsjs/text/analysis/Session.js +128 -0
  150. package/lib/xsjs/text/index.js +30 -0
  151. package/lib/xsjs/text/mining/Session.js +82 -0
  152. package/lib/xsjs/trace/trace.js +41 -0
  153. package/lib/xsjs/util/SAXParser.js +174 -0
  154. package/lib/xsjs/util/Zip.js +220 -0
  155. package/lib/xsjs/util/codec.js +33 -0
  156. package/lib/xsjs/util/compression.js +24 -0
  157. package/lib/xsjs/util/index.js +22 -0
  158. package/lib/xsjs/web/BasicWebEntity.js +41 -0
  159. package/lib/xsjs/web/EntityList.js +11 -0
  160. package/lib/xsjs/web/TupelLists/CookiesTupelList.js +47 -0
  161. package/lib/xsjs/web/TupelLists/HeadersTupelList.js +55 -0
  162. package/lib/xsjs/web/TupelLists/ParametersTupelList.js +83 -0
  163. package/lib/xsjs/web/TupelLists/TupelListBase.js +45 -0
  164. package/lib/xsjs/web/WebBody.js +135 -0
  165. package/lib/xsjs/web/WebEntityRequest.js +40 -0
  166. package/lib/xsjs/web/WebEntityResponse.js +26 -0
  167. package/lib/xsjs/web/WebRequest.js +209 -0
  168. package/lib/xsjs/web/WebResponse.js +183 -0
  169. package/lib/xsjs/web/index.js +4 -0
  170. package/lib/xsjs/web/utils/HeadersParser.js +53 -0
  171. package/lib/xsjs/web/utils/HttpRequestParser.js +93 -0
  172. package/lib/xsjs/web/utils/MultipartParser.js +163 -0
  173. package/lib/xsjs/web/utils/MultipartResponseBuilder.js +73 -0
  174. package/lib/xsjs/web/utils/SetCookieParser.js +32 -0
  175. package/lib/xsjslib/TextBundleWrapper.js +46 -0
  176. package/lib/xsjslib/index.js +11 -0
  177. package/npm-shrinkwrap.json +11540 -0
  178. package/package.json +84 -0
@@ -0,0 +1,325 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <title>JSDoc: Namespace: util</title>
7
+ <script src="scripts/prettify/prettify.js"></script>
8
+ <script src="scripts/prettify/lang-css.js"></script>
9
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
10
+
11
+
12
+ <script src="scripts/launch-8b3c5ca29b9e.min.js"></script>
13
+ <script src="scripts/highlight.js"></script>
14
+ <link rel="canonical" href="$.util.html">
15
+ </head>
16
+ <body>
17
+ <div id="main">
18
+ <h1 class="page-title">Namespace: util</h1>
19
+ <section>
20
+ <header>
21
+ <h2>
22
+ <span class="ancestors"><a href="$.html">$</a>.</span>
23
+ util
24
+ </h2>
25
+ </header>
26
+ <article>
27
+ <div class="container-overview">
28
+ <div class="description">Namespace: util</div>
29
+ <dl class="details">
30
+ </dl>
31
+ </div>
32
+ <h3 class="subsection-title">Classes</h3>
33
+ <dl>
34
+ <dt><a href="$.util.SAXParser.html">SAXParser</a></dt>
35
+ <dd></dd>
36
+ <dt><a href="$.util.Zip.html">Zip</a></dt>
37
+ <dd></dd>
38
+ </dl>
39
+ <h3 class="subsection-title">Namespaces</h3>
40
+ <dl>
41
+ <dt>
42
+ <a href="https://help.sap.com/http.svc/outputlink?productname=SAP_HANA_PLATFORM&amp;projectname=Manual upload&amp;deliverable=3de842783af24336b6305a3c0223a369&amp;version=2.0.01&amp;language=en-US&amp;state=PRODUCTION&amp;filepath=namespaces.html&amp;transtype=custom-html&amp;buildablemaploio=&amp;projectphio=&amp;dependantprojects=#$.util.codec"><a
43
+ href="$.util.codec.html">codec</a></a></dt>
44
+ <dd></dd>
45
+ <dt>
46
+ <a href="https://help.sap.com/http.svc/outputlink?productname=SAP_HANA_PLATFORM&amp;projectname=Manual upload&amp;deliverable=3de842783af24336b6305a3c0223a369&amp;version=2.0.01&amp;language=en-US&amp;state=PRODUCTION&amp;filepath=namespaces.html&amp;transtype=custom-html&amp;buildablemaploio=&amp;projectphio=&amp;dependantprojects=#$.util.compression"><a
47
+ href="$.util.compression.html">compression</a></a></dt>
48
+ <dd></dd>
49
+ <dt>
50
+ <a href="https://help.sap.com/http.svc/outputlink?productname=SAP_HANA_PLATFORM&amp;projectname=Manual upload&amp;deliverable=3de842783af24336b6305a3c0223a369&amp;version=2.0.01&amp;language=en-US&amp;state=PRODUCTION&amp;filepath=namespaces.html&amp;transtype=custom-html&amp;buildablemaploio=&amp;projectphio=&amp;dependantprojects=#$.util.sql"><a
51
+ href="$.util.sql.html">sql</a></a></dt>
52
+ <dd></dd>
53
+ </dl>
54
+ <h3 class="subsection-title">Methods</h3>
55
+ <dl>
56
+ <dt>
57
+ <h4 class="name" id="createUuid"><span class="type-signature">&lt;static> </span>createUuid<span
58
+ class="signature">()</span><span class="type-signature"> &rarr; {String}</span></h4>
59
+ </dt>
60
+ <dd>
61
+ <div class="description">
62
+ Creates a unique guid
63
+ </div>
64
+ <dl class="details">
65
+ </dl>
66
+ <h5>Throws:</h5>
67
+ <div class="param-desc">
68
+ Throws an error if the input content cannot be converted
69
+ </div>
70
+ <h5>Returns:</h5>
71
+ <div class="param-desc">
72
+ uuid
73
+ </div>
74
+ <dl>
75
+ <dt>
76
+ Type
77
+ </dt>
78
+ <dd>
79
+ <span class="param-type">String</span>
80
+ </dd>
81
+ </dl>
82
+ </dd>
83
+ <dt>
84
+ <h4 class="name" id="stringify"><span class="type-signature">&lt;static> </span>stringify<span
85
+ class="signature">(arrayBuffer)</span><span class="type-signature"> &rarr; {String}</span>
86
+ </h4>
87
+ </dt>
88
+ <dd>
89
+ <div class="description">
90
+ Converts an ArrayBuffer containing UTF-8 encoded string to a JavaScript String object
91
+ </div>
92
+ <h5>Parameters:</h5>
93
+ <table class="params">
94
+ <thead>
95
+ <tr>
96
+ <th>Name</th>
97
+ <th>Type</th>
98
+ <th class="last">Description</th>
99
+ </tr>
100
+ </thead>
101
+ <tbody>
102
+ <tr>
103
+ <td class="name"><code>arrayBuffer</code></td>
104
+ <td class="type">
105
+ <span class="param-type">ArrayBuffer</span>
106
+ </td>
107
+ <td class="description last">Object used for the conversion</td>
108
+ </tr>
109
+ </tbody>
110
+ </table>
111
+ <dl class="details">
112
+ </dl>
113
+ <h5>Throws:</h5>
114
+ <div class="param-desc">
115
+ Throws an error if the input content cannot be converted
116
+ </div>
117
+ <h5>Returns:</h5>
118
+ <dl>
119
+ <dt>
120
+ Type
121
+ </dt>
122
+ <dd>
123
+ <span class="param-type">String</span>
124
+ </dd>
125
+ </dl>
126
+ </dd>
127
+ </dl>
128
+ </article>
129
+ </section>
130
+ </div>
131
+ <nav>
132
+ <h2><a href="index.html">Index</a></h2>
133
+ <h3>Classes</h3>
134
+ <table>
135
+ <tr>
136
+ <td><a href="$.security.AntiVirus.html">AntiVirus</a></td>
137
+ <td class="oblique">$.security</td>
138
+ </tr>
139
+ <tr>
140
+ <td><a href="$.Application.html">Application</a></td>
141
+ <td class="oblique">$</td>
142
+ </tr>
143
+ <tr>
144
+ <td><a href="$.web.Body.html">Body</a></td>
145
+ <td class="oblique">$.web</td>
146
+ </tr>
147
+ <tr>
148
+ <td><a href="$.db.CallableStatement.html">CallableStatement</a></td>
149
+ <td class="oblique">$.db</td>
150
+ </tr>
151
+ <tr>
152
+ <td><a href="$.net.http.Client.html">Client</a></td>
153
+ <td class="oblique">$.net.http</td>
154
+ </tr>
155
+ <tr>
156
+ <td><a href="$.hdb.ColumnMetadata.html">ColumnMetadata</a></td>
157
+ <td class="oblique">$.hdb</td>
158
+ </tr>
159
+ <tr>
160
+ <td><a href="$.db.Connection.html">Connection</a></td>
161
+ <td class="oblique">$.db</td>
162
+ </tr>
163
+ <tr>
164
+ <td><a href="$.hdb.Connection.html">Connection</a></td>
165
+ <td class="oblique">$.hdb</td>
166
+ </tr>
167
+ <tr>
168
+ <td><a href="$.net.Destination.html">Destination</a></td>
169
+ <td class="oblique">$.net</td>
170
+ </tr>
171
+ <tr>
172
+ <td><a href="$.net.http.Destination.html">Destination</a></td>
173
+ <td class="oblique">$.net.http</td>
174
+ </tr>
175
+ <tr>
176
+ <td><a href="$.web.EntityList.html">EntityList</a></td>
177
+ <td class="oblique">$.web</td>
178
+ </tr>
179
+ <tr>
180
+ <td><a href="$.jobs.Job.html">Job</a></td>
181
+ <td class="oblique">$.jobs</td>
182
+ </tr>
183
+ <tr>
184
+ <td><a href="$.jobs.JobLog.html">JobLog</a></td>
185
+ <td class="oblique">$.jobs</td>
186
+ </tr>
187
+ <tr>
188
+ <td><a href="$.jobs.JobSchedules.html">JobSchedules</a></td>
189
+ <td class="oblique">$.jobs</td>
190
+ </tr>
191
+ <tr>
192
+ <td><a href="$.net.Mail.html">Mail</a></td>
193
+ <td class="oblique">$.net</td>
194
+ </tr>
195
+ <tr>
196
+ <td><a href="$.db.ParameterMetaData.html">ParameterMetaData</a></td>
197
+ <td class="oblique">$.db</td>
198
+ </tr>
199
+ <tr>
200
+ <td><a href="$.net.Mail.Part.html">Part</a></td>
201
+ <td class="oblique">$.net.Mail</td>
202
+ </tr>
203
+ <tr>
204
+ <td><a href="$.db.PreparedStatement.html">PreparedStatement</a></td>
205
+ <td class="oblique">$.db</td>
206
+ </tr>
207
+ <tr>
208
+ <td><a href="$.hdb.ProcedureResult.html">ProcedureResult</a></td>
209
+ <td class="oblique">$.hdb</td>
210
+ </tr>
211
+ <tr>
212
+ <td><a href="$.net.http.Request.html">Request</a></td>
213
+ <td class="oblique">$.net.http</td>
214
+ </tr>
215
+ <tr>
216
+ <td><a href="$.db.ResultSet.html">ResultSet</a></td>
217
+ <td class="oblique">$.db</td>
218
+ </tr>
219
+ <tr>
220
+ <td><a href="$.hdb.ResultSet.html">ResultSet</a></td>
221
+ <td class="oblique">$.hdb</td>
222
+ </tr>
223
+ <tr>
224
+ <td><a href="$.hdb.ResultSetIterator.html">ResultSetIterator</a></td>
225
+ <td class="oblique">$.hdb</td>
226
+ </tr>
227
+ <tr>
228
+ <td><a href="$.db.ResultSetMetaData.html">ResultSetMetaData</a></td>
229
+ <td class="oblique">$.db</td>
230
+ </tr>
231
+ <tr>
232
+ <td><a href="$.hdb.ResultSetMetaData.html">ResultSetMetaData</a></td>
233
+ <td class="oblique">$.hdb</td>
234
+ </tr>
235
+ <tr>
236
+ <td><a href="$.util.SAXParser.html">SAXParser</a></td>
237
+ <td class="oblique">$.util</td>
238
+ </tr>
239
+ <tr>
240
+ <td><a href="$.Session.html">Session</a></td>
241
+ <td class="oblique">$</td>
242
+ </tr>
243
+ <tr>
244
+ <td><a href="$.text.analysis.Session.html">Session</a></td>
245
+ <td class="oblique">$.text.analysis</td>
246
+ </tr>
247
+ <tr>
248
+ <td><a href="$.text.mining.Session.html">Session</a></td>
249
+ <td class="oblique">$.text.mining</td>
250
+ </tr>
251
+ <tr>
252
+ <td><a href="$.net.SMTPConnection.html">SMTPConnection</a></td>
253
+ <td class="oblique">$.net</td>
254
+ </tr>
255
+ <tr>
256
+ <td><a href="$.db.SQLException.html">SQLException</a></td>
257
+ <td class="oblique">$.db</td>
258
+ </tr>
259
+ <tr>
260
+ <td><a href="$.hdb.SQLException.html">SQLException</a></td>
261
+ <td class="oblique">$.hdb</td>
262
+ </tr>
263
+ <tr>
264
+ <td><a href="$.security.Store.html">Store</a></td>
265
+ <td class="oblique">$.security</td>
266
+ </tr>
267
+ <tr>
268
+ <td><a href="$.web.TupelList.html">TupelList</a></td>
269
+ <td class="oblique">$.web</td>
270
+ </tr>
271
+ <tr>
272
+ <td><a href="$.web.WebEntityRequest.html">WebEntityRequest</a></td>
273
+ <td class="oblique">$.web</td>
274
+ </tr>
275
+ <tr>
276
+ <td><a href="$.web.WebEntityResponse.html">WebEntityResponse</a></td>
277
+ <td class="oblique">$.web</td>
278
+ </tr>
279
+ <tr>
280
+ <td><a href="$.web.WebRequest.html">WebRequest</a></td>
281
+ <td class="oblique">$.web</td>
282
+ </tr>
283
+ <tr>
284
+ <td><a href="$.web.WebResponse.html">WebResponse</a></td>
285
+ <td class="oblique">$.web</td>
286
+ </tr>
287
+ <tr>
288
+ <td><a href="$.util.Zip.html">Zip</a></td>
289
+ <td class="oblique">$.util</td>
290
+ </tr>
291
+ </table>
292
+ <h3>Namespaces</h3>
293
+ <ul>
294
+ <li><a href="$.html"><span class="oblique"></span>$</a></li>
295
+ <li><a href="$.db.html"><span class="oblique">$.</span>db</a></li>
296
+ <li><a href="$.hdb.html"><span class="oblique">$.</span>hdb</a></li>
297
+ <li><a href="$.jobs.html"><span class="oblique">$.</span>jobs</a></li>
298
+ <li><a href="$.net.html"><span class="oblique">$.</span>net</a></li>
299
+ <li><a href="$.net.http.html"><span class="oblique">$.net.</span>http</a></li>
300
+ <li><a href="$.security.html"><span class="oblique">$.</span>security</a></li>
301
+ <li><a href="$.security.crypto.html"><span class="oblique">$.security.</span>crypto</a></li>
302
+ <li><a href="$.security.x509.html"><span class="oblique">$.security.</span>x509</a></li>
303
+ <li><a href="$.text.html"><span class="oblique">$.</span>text</a></li>
304
+ <li><a href="$.text.analysis.html"><span class="oblique">$.text.</span>analysis</a></li>
305
+ <li><a href="$.text.mining.html"><span class="oblique">$.text.</span>mining</a></li>
306
+ <li><a href="$.trace.html"><span class="oblique">$.</span>trace</a></li>
307
+ <li><a href="$.util.html"><span class="oblique">$.</span>util</a></li>
308
+ <li><a href="$.util.codec.html"><span class="oblique">$.util.</span>codec</a></li>
309
+ <li><a href="$.util.compression.html"><span class="oblique">$.util.</span>compression</a></li>
310
+ <li><a href="$.util.sql.html"><span class="oblique">$.util.</span>sql</a></li>
311
+ <li><a href="$.web.html"><span class="oblique">$.</span>web</a></li>
312
+ </ul>
313
+ </nav>
314
+ <br clear="both">
315
+ <footer>
316
+ <a href="Copyright-SAP.html">Copyright</a>
317
+ &
318
+ <a href="Disclaimer-SAP.html">Disclaimer</a>
319
+ </footer>
320
+ <script>prettyPrint();</script>
321
+ <script src="scripts/linenumber.js"></script>
322
+
323
+ </body>
324
+
325
+ </html>
@@ -0,0 +1,290 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <title>JSDoc: Namespace: sql</title>
7
+ <script src="scripts/prettify/prettify.js"></script>
8
+ <script src="scripts/prettify/lang-css.js"></script>
9
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
10
+
11
+
12
+ <script src="scripts/launch-8b3c5ca29b9e.min.js"></script>
13
+ <script src="scripts/highlight.js"></script>
14
+ <link rel="canonical" href="$.util.sql.html">
15
+ </head>
16
+ <body>
17
+ <div id="main">
18
+ <h1 class="page-title">Namespace: sql</h1>
19
+ <section>
20
+ <header>
21
+ <h2>
22
+ <span class="ancestors"><a href="$.html">$</a><a href="$.util.html">.util</a>.</span>
23
+ sql
24
+ </h2>
25
+ </header>
26
+ <article>
27
+ <div class="container-overview">
28
+ <div class="description">Namespace: sql</div>
29
+ <dl class="details">
30
+ </dl>
31
+ </div>
32
+ <h3 class="subsection-title">Methods</h3>
33
+ <dl>
34
+ <dt>
35
+ <h4 class="name" id="isValidParam"><span class="type-signature">&lt;static> </span>isValidParam<span
36
+ class="signature">(parameter)</span><span class="type-signature"> &rarr; {Boolean}</span>
37
+ </h4>
38
+ </dt>
39
+ <dd>
40
+ <div class="description">
41
+ Checks if an unquoted SQL parameter is valid.<br>
42
+ This function checks if the parameter contains characters (for example, SQL comments) which an
43
+ attacker could use to break out of the unquoted parameter.<br><br>
44
+ For single quoted or double quoted parameters (for example, in WHERE statements) please replace
45
+ single quotes (') with two single quotes ('') and double quotes (") with two double quotes ("").
46
+ </div>
47
+ <h5>Parameters:</h5>
48
+ <table class="params">
49
+ <thead>
50
+ <tr>
51
+ <th>Name</th>
52
+ <th>Type</th>
53
+ <th class="last">Description</th>
54
+ </tr>
55
+ </thead>
56
+ <tbody>
57
+ <tr>
58
+ <td class="name"><code>parameter</code></td>
59
+ <td class="type">
60
+ <span class="param-type">String</span>
61
+ </td>
62
+ <td class="description last">parameter which has to be checked</td>
63
+ </tr>
64
+ </tbody>
65
+ </table>
66
+ <dl class="details">
67
+ </dl>
68
+ <h5>Returns:</h5>
69
+ <dl>
70
+ <dt>
71
+ Type
72
+ </dt>
73
+ <dd>
74
+ <span class="param-type">Boolean</span>
75
+ </dd>
76
+ </dl>
77
+ <h5>Example</h5>
78
+ <pre class="prettyprint"><code>&#47;&#47; in this example the app actually wants to deactivate a user but
79
+ &#47;&#47; the attacker breaks out of the SQL statement with the sql comments and the
80
+ &#47;&#47; user is never deactivated since DEACTIVATE USER NOW was commented
81
+ &#47;&#47; to avoid this you can use $.util.isValidParam()
82
+ var maliciousParam = "testUsr99/&#42;&#42;/PASSWORD/&#42;&#42;/UserPassword123!--";
83
+ if ($.util.sql.isValidParam(maliciousParam)) {
84
+ var commandDeactivate = "ALTER USER " + maliciousParam + " DEACTIVATE USER NOW";
85
+ var conn = <b>await </b>$.db.getConnection();
86
+ var statement = <b>await </b>conn.prepareStatement(commandDeactivate);
87
+ <b>await </b>statement.execute();
88
+ } else {
89
+ &#47;&#47; malicious param detected
90
+ }</code></pre>
91
+ </dd>
92
+ </dl>
93
+ </article>
94
+ </section>
95
+ </div>
96
+ <nav>
97
+ <h2><a href="index.html">Index</a></h2>
98
+ <h3>Classes</h3>
99
+ <table>
100
+ <tr>
101
+ <td><a href="$.security.AntiVirus.html">AntiVirus</a></td>
102
+ <td class="oblique">$.security</td>
103
+ </tr>
104
+ <tr>
105
+ <td><a href="$.Application.html">Application</a></td>
106
+ <td class="oblique">$</td>
107
+ </tr>
108
+ <tr>
109
+ <td><a href="$.web.Body.html">Body</a></td>
110
+ <td class="oblique">$.web</td>
111
+ </tr>
112
+ <tr>
113
+ <td><a href="$.db.CallableStatement.html">CallableStatement</a></td>
114
+ <td class="oblique">$.db</td>
115
+ </tr>
116
+ <tr>
117
+ <td><a href="$.net.http.Client.html">Client</a></td>
118
+ <td class="oblique">$.net.http</td>
119
+ </tr>
120
+ <tr>
121
+ <td><a href="$.hdb.ColumnMetadata.html">ColumnMetadata</a></td>
122
+ <td class="oblique">$.hdb</td>
123
+ </tr>
124
+ <tr>
125
+ <td><a href="$.db.Connection.html">Connection</a></td>
126
+ <td class="oblique">$.db</td>
127
+ </tr>
128
+ <tr>
129
+ <td><a href="$.hdb.Connection.html">Connection</a></td>
130
+ <td class="oblique">$.hdb</td>
131
+ </tr>
132
+ <tr>
133
+ <td><a href="$.net.Destination.html">Destination</a></td>
134
+ <td class="oblique">$.net</td>
135
+ </tr>
136
+ <tr>
137
+ <td><a href="$.net.http.Destination.html">Destination</a></td>
138
+ <td class="oblique">$.net.http</td>
139
+ </tr>
140
+ <tr>
141
+ <td><a href="$.web.EntityList.html">EntityList</a></td>
142
+ <td class="oblique">$.web</td>
143
+ </tr>
144
+ <tr>
145
+ <td><a href="$.jobs.Job.html">Job</a></td>
146
+ <td class="oblique">$.jobs</td>
147
+ </tr>
148
+ <tr>
149
+ <td><a href="$.jobs.JobLog.html">JobLog</a></td>
150
+ <td class="oblique">$.jobs</td>
151
+ </tr>
152
+ <tr>
153
+ <td><a href="$.jobs.JobSchedules.html">JobSchedules</a></td>
154
+ <td class="oblique">$.jobs</td>
155
+ </tr>
156
+ <tr>
157
+ <td><a href="$.net.Mail.html">Mail</a></td>
158
+ <td class="oblique">$.net</td>
159
+ </tr>
160
+ <tr>
161
+ <td><a href="$.db.ParameterMetaData.html">ParameterMetaData</a></td>
162
+ <td class="oblique">$.db</td>
163
+ </tr>
164
+ <tr>
165
+ <td><a href="$.net.Mail.Part.html">Part</a></td>
166
+ <td class="oblique">$.net.Mail</td>
167
+ </tr>
168
+ <tr>
169
+ <td><a href="$.db.PreparedStatement.html">PreparedStatement</a></td>
170
+ <td class="oblique">$.db</td>
171
+ </tr>
172
+ <tr>
173
+ <td><a href="$.hdb.ProcedureResult.html">ProcedureResult</a></td>
174
+ <td class="oblique">$.hdb</td>
175
+ </tr>
176
+ <tr>
177
+ <td><a href="$.net.http.Request.html">Request</a></td>
178
+ <td class="oblique">$.net.http</td>
179
+ </tr>
180
+ <tr>
181
+ <td><a href="$.db.ResultSet.html">ResultSet</a></td>
182
+ <td class="oblique">$.db</td>
183
+ </tr>
184
+ <tr>
185
+ <td><a href="$.hdb.ResultSet.html">ResultSet</a></td>
186
+ <td class="oblique">$.hdb</td>
187
+ </tr>
188
+ <tr>
189
+ <td><a href="$.hdb.ResultSetIterator.html">ResultSetIterator</a></td>
190
+ <td class="oblique">$.hdb</td>
191
+ </tr>
192
+ <tr>
193
+ <td><a href="$.db.ResultSetMetaData.html">ResultSetMetaData</a></td>
194
+ <td class="oblique">$.db</td>
195
+ </tr>
196
+ <tr>
197
+ <td><a href="$.hdb.ResultSetMetaData.html">ResultSetMetaData</a></td>
198
+ <td class="oblique">$.hdb</td>
199
+ </tr>
200
+ <tr>
201
+ <td><a href="$.util.SAXParser.html">SAXParser</a></td>
202
+ <td class="oblique">$.util</td>
203
+ </tr>
204
+ <tr>
205
+ <td><a href="$.Session.html">Session</a></td>
206
+ <td class="oblique">$</td>
207
+ </tr>
208
+ <tr>
209
+ <td><a href="$.text.analysis.Session.html">Session</a></td>
210
+ <td class="oblique">$.text.analysis</td>
211
+ </tr>
212
+ <tr>
213
+ <td><a href="$.text.mining.Session.html">Session</a></td>
214
+ <td class="oblique">$.text.mining</td>
215
+ </tr>
216
+ <tr>
217
+ <td><a href="$.net.SMTPConnection.html">SMTPConnection</a></td>
218
+ <td class="oblique">$.net</td>
219
+ </tr>
220
+ <tr>
221
+ <td><a href="$.db.SQLException.html">SQLException</a></td>
222
+ <td class="oblique">$.db</td>
223
+ </tr>
224
+ <tr>
225
+ <td><a href="$.hdb.SQLException.html">SQLException</a></td>
226
+ <td class="oblique">$.hdb</td>
227
+ </tr>
228
+ <tr>
229
+ <td><a href="$.security.Store.html">Store</a></td>
230
+ <td class="oblique">$.security</td>
231
+ </tr>
232
+ <tr>
233
+ <td><a href="$.web.TupelList.html">TupelList</a></td>
234
+ <td class="oblique">$.web</td>
235
+ </tr>
236
+ <tr>
237
+ <td><a href="$.web.WebEntityRequest.html">WebEntityRequest</a></td>
238
+ <td class="oblique">$.web</td>
239
+ </tr>
240
+ <tr>
241
+ <td><a href="$.web.WebEntityResponse.html">WebEntityResponse</a></td>
242
+ <td class="oblique">$.web</td>
243
+ </tr>
244
+ <tr>
245
+ <td><a href="$.web.WebRequest.html">WebRequest</a></td>
246
+ <td class="oblique">$.web</td>
247
+ </tr>
248
+ <tr>
249
+ <td><a href="$.web.WebResponse.html">WebResponse</a></td>
250
+ <td class="oblique">$.web</td>
251
+ </tr>
252
+ <tr>
253
+ <td><a href="$.util.Zip.html">Zip</a></td>
254
+ <td class="oblique">$.util</td>
255
+ </tr>
256
+ </table>
257
+ <h3>Namespaces</h3>
258
+ <ul>
259
+ <li><a href="$.html"><span class="oblique"></span>$</a></li>
260
+ <li><a href="$.db.html"><span class="oblique">$.</span>db</a></li>
261
+ <li><a href="$.hdb.html"><span class="oblique">$.</span>hdb</a></li>
262
+ <li><a href="$.jobs.html"><span class="oblique">$.</span>jobs</a></li>
263
+ <li><a href="$.net.html"><span class="oblique">$.</span>net</a></li>
264
+ <li><a href="$.net.http.html"><span class="oblique">$.net.</span>http</a></li>
265
+ <li><a href="$.security.html"><span class="oblique">$.</span>security</a></li>
266
+ <li><a href="$.security.crypto.html"><span class="oblique">$.security.</span>crypto</a></li>
267
+ <li><a href="$.security.x509.html"><span class="oblique">$.security.</span>x509</a></li>
268
+ <li><a href="$.text.html"><span class="oblique">$.</span>text</a></li>
269
+ <li><a href="$.text.analysis.html"><span class="oblique">$.text.</span>analysis</a></li>
270
+ <li><a href="$.text.mining.html"><span class="oblique">$.text.</span>mining</a></li>
271
+ <li><a href="$.trace.html"><span class="oblique">$.</span>trace</a></li>
272
+ <li><a href="$.util.html"><span class="oblique">$.</span>util</a></li>
273
+ <li><a href="$.util.codec.html"><span class="oblique">$.util.</span>codec</a></li>
274
+ <li><a href="$.util.compression.html"><span class="oblique">$.util.</span>compression</a></li>
275
+ <li><a href="$.util.sql.html"><span class="oblique">$.util.</span>sql</a></li>
276
+ <li><a href="$.web.html"><span class="oblique">$.</span>web</a></li>
277
+ </ul>
278
+ </nav>
279
+ <br clear="both">
280
+ <footer>
281
+ <a href="Copyright-SAP.html">Copyright</a>
282
+ &
283
+ <a href="Disclaimer-SAP.html">Disclaimer</a>
284
+ </footer>
285
+ <script>prettyPrint();</script>
286
+ <script src="scripts/linenumber.js"></script>
287
+
288
+ </body>
289
+
290
+ </html>