@aws-sdk/client-rds-data 3.1056.0 → 3.1057.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/README.md +1 -15
- package/dist-cjs/schemas/schemas_0.js +37 -18
- package/dist-es/schemas/schemas_0.js +37 -18
- package/dist-types/RDSData.d.ts +1 -15
- package/dist-types/RDSDataClient.d.ts +1 -15
- package/dist-types/commands/BatchExecuteStatementCommand.d.ts +5 -32
- package/dist-types/commands/BeginTransactionCommand.d.ts +4 -26
- package/dist-types/commands/CommitTransactionCommand.d.ts +3 -16
- package/dist-types/commands/ExecuteSqlCommand.d.ts +2 -8
- package/dist-types/commands/ExecuteStatementCommand.d.ts +9 -40
- package/dist-types/commands/RollbackTransactionCommand.d.ts +2 -14
- package/dist-types/index.d.ts +1 -15
- package/dist-types/models/errors.d.ts +4 -29
- package/dist-types/models/models_0.d.ts +49 -188
- package/dist-types/ts3.4/models/models_0.d.ts +10 -10
- package/package.json +2 -2
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { DecimalReturnType, LongReturnType, RecordsFormatType, TypeHint } from "./enums";
|
|
2
2
|
/**
|
|
3
|
-
* <p>The request parameters represent the input of a request to start a SQL
|
|
4
|
-
* transaction.</p>
|
|
3
|
+
* <p>The request parameters represent the input of a request to start a SQL transaction.</p>
|
|
5
4
|
* @public
|
|
6
5
|
*/
|
|
7
6
|
export interface BeginTransactionRequest {
|
|
@@ -27,8 +26,7 @@ export interface BeginTransactionRequest {
|
|
|
27
26
|
schema?: string | undefined;
|
|
28
27
|
}
|
|
29
28
|
/**
|
|
30
|
-
* <p>The response elements represent the output of a request to start a SQL
|
|
31
|
-
* transaction.</p>
|
|
29
|
+
* <p>The response elements represent the output of a request to start a SQL transaction.</p>
|
|
32
30
|
* @public
|
|
33
31
|
*/
|
|
34
32
|
export interface BeginTransactionResponse {
|
|
@@ -147,8 +145,7 @@ export interface CommitTransactionResponse {
|
|
|
147
145
|
transactionStatus?: string | undefined;
|
|
148
146
|
}
|
|
149
147
|
/**
|
|
150
|
-
* <p>The request parameters represent the input of a request to run one or more SQL
|
|
151
|
-
* statements.</p>
|
|
148
|
+
* <p>The request parameters represent the input of a request to run one or more SQL statements.</p>
|
|
152
149
|
* @public
|
|
153
150
|
*/
|
|
154
151
|
export interface ExecuteSqlRequest {
|
|
@@ -158,17 +155,12 @@ export interface ExecuteSqlRequest {
|
|
|
158
155
|
*/
|
|
159
156
|
dbClusterOrInstanceArn: string | undefined;
|
|
160
157
|
/**
|
|
161
|
-
* <p>The Amazon Resource Name (ARN) of the secret that enables access to the DB cluster. Enter the database user name and password
|
|
162
|
-
* for the credentials in the secret.</p>
|
|
163
|
-
* <p>For information about creating the secret, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_database_secret.html">Create a database secret</a>.</p>
|
|
158
|
+
* <p>The Amazon Resource Name (ARN) of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in the secret.</p> <p>For information about creating the secret, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_database_secret.html">Create a database secret</a>.</p>
|
|
164
159
|
* @public
|
|
165
160
|
*/
|
|
166
161
|
awsSecretStoreArn: string | undefined;
|
|
167
162
|
/**
|
|
168
|
-
* <p>One or more SQL statements to run on the DB cluster.</p>
|
|
169
|
-
* <p>You can separate SQL statements from each other with a semicolon (;). Any valid SQL
|
|
170
|
-
* statement is permitted, including data definition, data manipulation, and commit
|
|
171
|
-
* statements. </p>
|
|
163
|
+
* <p>One or more SQL statements to run on the DB cluster.</p> <p>You can separate SQL statements from each other with a semicolon (;). Any valid SQL statement is permitted, including data definition, data manipulation, and commit statements. </p>
|
|
172
164
|
* @public
|
|
173
165
|
*/
|
|
174
166
|
sqlStatements: string | undefined;
|
|
@@ -205,31 +197,18 @@ export interface ResultSetMetadata {
|
|
|
205
197
|
*/
|
|
206
198
|
export interface ResultSetOptions {
|
|
207
199
|
/**
|
|
208
|
-
* <p>A value that indicates how a field of <code>DECIMAL</code> type is represented
|
|
209
|
-
* in the response. The value of <code>STRING</code>, the default, specifies that
|
|
210
|
-
* it is converted to a String value. The value of <code>DOUBLE_OR_LONG</code>
|
|
211
|
-
* specifies that it is converted to a Long value if its scale is 0, or to a Double
|
|
212
|
-
* value otherwise.</p>
|
|
213
|
-
* <note>
|
|
214
|
-
* <p>Conversion to Double or Long can result in roundoff errors due to precision loss.
|
|
215
|
-
* We recommend converting to String, especially when working with currency values.</p>
|
|
216
|
-
* </note>
|
|
200
|
+
* <p>A value that indicates how a field of <code>DECIMAL</code> type is represented in the response. The value of <code>STRING</code>, the default, specifies that it is converted to a String value. The value of <code>DOUBLE_OR_LONG</code> specifies that it is converted to a Long value if its scale is 0, or to a Double value otherwise.</p> <note> <p>Conversion to Double or Long can result in roundoff errors due to precision loss. We recommend converting to String, especially when working with currency values.</p> </note>
|
|
217
201
|
* @public
|
|
218
202
|
*/
|
|
219
203
|
decimalReturnType?: DecimalReturnType | undefined;
|
|
220
204
|
/**
|
|
221
|
-
* <p>A value that indicates how a field of <code>LONG</code> type is represented.
|
|
222
|
-
* Allowed values are <code>LONG</code> and <code>STRING</code>. The default
|
|
223
|
-
* is <code>LONG</code>. Specify <code>STRING</code> if the length or
|
|
224
|
-
* precision of numeric values might cause truncation or rounding errors.
|
|
225
|
-
* </p>
|
|
205
|
+
* <p>A value that indicates how a field of <code>LONG</code> type is represented. Allowed values are <code>LONG</code> and <code>STRING</code>. The default is <code>LONG</code>. Specify <code>STRING</code> if the length or precision of numeric values might cause truncation or rounding errors. </p>
|
|
226
206
|
* @public
|
|
227
207
|
*/
|
|
228
208
|
longReturnType?: LongReturnType | undefined;
|
|
229
209
|
}
|
|
230
210
|
/**
|
|
231
|
-
* <p>The request parameters represent the input of a request to perform a rollback of a
|
|
232
|
-
* transaction.</p>
|
|
211
|
+
* <p>The request parameters represent the input of a request to perform a rollback of a transaction.</p>
|
|
233
212
|
* @public
|
|
234
213
|
*/
|
|
235
214
|
export interface RollbackTransactionRequest {
|
|
@@ -250,8 +229,7 @@ export interface RollbackTransactionRequest {
|
|
|
250
229
|
transactionId: string | undefined;
|
|
251
230
|
}
|
|
252
231
|
/**
|
|
253
|
-
* <p>The response elements represent the output of a request to perform a rollback of a
|
|
254
|
-
* transaction.</p>
|
|
232
|
+
* <p>The response elements represent the output of a request to perform a rollback of a transaction.</p>
|
|
255
233
|
* @public
|
|
256
234
|
*/
|
|
257
235
|
export interface RollbackTransactionResponse {
|
|
@@ -271,11 +249,11 @@ export type ArrayValue = ArrayValue.ArrayValuesMember | ArrayValue.BooleanValues
|
|
|
271
249
|
*/
|
|
272
250
|
export declare namespace ArrayValue {
|
|
273
251
|
/**
|
|
274
|
-
* <p>An array of Boolean values.</p>
|
|
252
|
+
* <p>An array of Boolean values. Can contain null values.</p>
|
|
275
253
|
* @public
|
|
276
254
|
*/
|
|
277
255
|
interface BooleanValuesMember {
|
|
278
|
-
booleanValues: boolean[];
|
|
256
|
+
booleanValues: (boolean | null)[];
|
|
279
257
|
longValues?: never;
|
|
280
258
|
doubleValues?: never;
|
|
281
259
|
stringValues?: never;
|
|
@@ -283,43 +261,43 @@ export declare namespace ArrayValue {
|
|
|
283
261
|
$unknown?: never;
|
|
284
262
|
}
|
|
285
263
|
/**
|
|
286
|
-
* <p>An array of integers.</p>
|
|
264
|
+
* <p>An array of integers. Can contain null values.</p>
|
|
287
265
|
* @public
|
|
288
266
|
*/
|
|
289
267
|
interface LongValuesMember {
|
|
290
268
|
booleanValues?: never;
|
|
291
|
-
longValues: number[];
|
|
269
|
+
longValues: (number | null)[];
|
|
292
270
|
doubleValues?: never;
|
|
293
271
|
stringValues?: never;
|
|
294
272
|
arrayValues?: never;
|
|
295
273
|
$unknown?: never;
|
|
296
274
|
}
|
|
297
275
|
/**
|
|
298
|
-
* <p>An array of floating-point numbers.</p>
|
|
276
|
+
* <p>An array of floating-point numbers. Can contain null values.</p>
|
|
299
277
|
* @public
|
|
300
278
|
*/
|
|
301
279
|
interface DoubleValuesMember {
|
|
302
280
|
booleanValues?: never;
|
|
303
281
|
longValues?: never;
|
|
304
|
-
doubleValues: number[];
|
|
282
|
+
doubleValues: (number | null)[];
|
|
305
283
|
stringValues?: never;
|
|
306
284
|
arrayValues?: never;
|
|
307
285
|
$unknown?: never;
|
|
308
286
|
}
|
|
309
287
|
/**
|
|
310
|
-
* <p>An array of strings.</p>
|
|
288
|
+
* <p>An array of strings. Can contain null values.</p>
|
|
311
289
|
* @public
|
|
312
290
|
*/
|
|
313
291
|
interface StringValuesMember {
|
|
314
292
|
booleanValues?: never;
|
|
315
293
|
longValues?: never;
|
|
316
294
|
doubleValues?: never;
|
|
317
|
-
stringValues: string[];
|
|
295
|
+
stringValues: (string | null)[];
|
|
318
296
|
arrayValues?: never;
|
|
319
297
|
$unknown?: never;
|
|
320
298
|
}
|
|
321
299
|
/**
|
|
322
|
-
* <p>An array of arrays.</p>
|
|
300
|
+
* <p>An array of arrays. Can contain null values.</p>
|
|
323
301
|
* @public
|
|
324
302
|
*/
|
|
325
303
|
interface ArrayValuesMember {
|
|
@@ -327,7 +305,7 @@ export declare namespace ArrayValue {
|
|
|
327
305
|
longValues?: never;
|
|
328
306
|
doubleValues?: never;
|
|
329
307
|
stringValues?: never;
|
|
330
|
-
arrayValues: ArrayValue[];
|
|
308
|
+
arrayValues: (ArrayValue | null)[];
|
|
331
309
|
$unknown?: never;
|
|
332
310
|
}
|
|
333
311
|
/**
|
|
@@ -346,11 +324,11 @@ export declare namespace ArrayValue {
|
|
|
346
324
|
*
|
|
347
325
|
*/
|
|
348
326
|
interface Visitor<T> {
|
|
349
|
-
booleanValues: (value: boolean[]) => T;
|
|
350
|
-
longValues: (value: number[]) => T;
|
|
351
|
-
doubleValues: (value: number[]) => T;
|
|
352
|
-
stringValues: (value: string[]) => T;
|
|
353
|
-
arrayValues: (value: ArrayValue[]) => T;
|
|
327
|
+
booleanValues: (value: (boolean | null)[]) => T;
|
|
328
|
+
longValues: (value: (number | null)[]) => T;
|
|
329
|
+
doubleValues: (value: (number | null)[]) => T;
|
|
330
|
+
stringValues: (value: (string | null)[]) => T;
|
|
331
|
+
arrayValues: (value: (ArrayValue | null)[]) => T;
|
|
354
332
|
_: (name: string, value: any) => T;
|
|
355
333
|
}
|
|
356
334
|
}
|
|
@@ -505,41 +483,7 @@ export interface SqlParameter {
|
|
|
505
483
|
*/
|
|
506
484
|
value?: Field | undefined;
|
|
507
485
|
/**
|
|
508
|
-
* <p>A hint that specifies the correct object type for data type mapping. Possible values
|
|
509
|
-
* are as follows:</p>
|
|
510
|
-
* <ul>
|
|
511
|
-
* <li>
|
|
512
|
-
* <p>
|
|
513
|
-
* <code>DATE</code> - The corresponding <code>String</code> parameter value is sent as an object
|
|
514
|
-
* of <code>DATE</code> type to the database. The accepted format is <code>YYYY-MM-DD</code>.</p>
|
|
515
|
-
* </li>
|
|
516
|
-
* <li>
|
|
517
|
-
* <p>
|
|
518
|
-
* <code>DECIMAL</code> - The corresponding <code>String</code> parameter value is sent as an object
|
|
519
|
-
* of <code>DECIMAL</code> type to the database.</p>
|
|
520
|
-
* </li>
|
|
521
|
-
* <li>
|
|
522
|
-
* <p>
|
|
523
|
-
* <code>JSON</code> - The corresponding <code>String</code> parameter value is sent as an
|
|
524
|
-
* object of <code>JSON</code> type to the database.</p>
|
|
525
|
-
* </li>
|
|
526
|
-
* <li>
|
|
527
|
-
* <p>
|
|
528
|
-
* <code>TIME</code> - The corresponding <code>String</code> parameter value is sent as an object
|
|
529
|
-
* of <code>TIME</code> type to the database. The accepted format is <code>HH:MM:SS[.FFF]</code>.</p>
|
|
530
|
-
* </li>
|
|
531
|
-
* <li>
|
|
532
|
-
* <p>
|
|
533
|
-
* <code>TIMESTAMP</code> - The corresponding <code>String</code> parameter value is sent as an object
|
|
534
|
-
* of <code>TIMESTAMP</code> type to the database. The accepted format is <code>YYYY-MM-DD HH:MM:SS[.FFF]</code>.</p>
|
|
535
|
-
* </li>
|
|
536
|
-
* <li>
|
|
537
|
-
* <p>
|
|
538
|
-
* <code>UUID</code> - The corresponding <code>String</code> parameter value is sent as an object of
|
|
539
|
-
* <code>UUID</code> type to the database.
|
|
540
|
-
* </p>
|
|
541
|
-
* </li>
|
|
542
|
-
* </ul>
|
|
486
|
+
* <p>A hint that specifies the correct object type for data type mapping. Possible values are as follows:</p> <ul> <li> <p> <code>DATE</code> - The corresponding <code>String</code> parameter value is sent as an object of <code>DATE</code> type to the database. The accepted format is <code>YYYY-MM-DD</code>.</p> </li> <li> <p> <code>DECIMAL</code> - The corresponding <code>String</code> parameter value is sent as an object of <code>DECIMAL</code> type to the database.</p> </li> <li> <p> <code>JSON</code> - The corresponding <code>String</code> parameter value is sent as an object of <code>JSON</code> type to the database.</p> </li> <li> <p> <code>TIME</code> - The corresponding <code>String</code> parameter value is sent as an object of <code>TIME</code> type to the database. The accepted format is <code>HH:MM:SS[.FFF]</code>.</p> </li> <li> <p> <code>TIMESTAMP</code> - The corresponding <code>String</code> parameter value is sent as an object of <code>TIMESTAMP</code> type to the database. The accepted format is <code>YYYY-MM-DD HH:MM:SS[.FFF]</code>.</p> </li> <li> <p> <code>UUID</code> - The corresponding <code>String</code> parameter value is sent as an object of <code>UUID</code> type to the database. </p> </li> </ul>
|
|
543
487
|
* @public
|
|
544
488
|
*/
|
|
545
489
|
typeHint?: TypeHint | undefined;
|
|
@@ -556,11 +500,7 @@ export interface UpdateResult {
|
|
|
556
500
|
generatedFields?: Field[] | undefined;
|
|
557
501
|
}
|
|
558
502
|
/**
|
|
559
|
-
* <p>Contains the value of a column.</p>
|
|
560
|
-
* <note>
|
|
561
|
-
* <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation.
|
|
562
|
-
* Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p>
|
|
563
|
-
* </note>
|
|
503
|
+
* <p>Contains the value of a column.</p> <note> <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation. Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p> </note>
|
|
564
504
|
* @public
|
|
565
505
|
*/
|
|
566
506
|
export type Value = Value.ArrayValuesMember | Value.BigIntValueMember | Value.BitValueMember | Value.BlobValueMember | Value.DoubleValueMember | Value.IntValueMember | Value.IsNullMember | Value.RealValueMember | Value.StringValueMember | Value.StructValueMember | Value.$UnknownMember;
|
|
@@ -773,8 +713,7 @@ export declare namespace Value {
|
|
|
773
713
|
}
|
|
774
714
|
}
|
|
775
715
|
/**
|
|
776
|
-
* <p>The request parameters represent the input of a request to run a SQL statement against
|
|
777
|
-
* a database.</p>
|
|
716
|
+
* <p>The request parameters represent the input of a request to run a SQL statement against a database.</p>
|
|
778
717
|
* @public
|
|
779
718
|
*/
|
|
780
719
|
export interface ExecuteStatementRequest {
|
|
@@ -784,9 +723,7 @@ export interface ExecuteStatementRequest {
|
|
|
784
723
|
*/
|
|
785
724
|
resourceArn: string | undefined;
|
|
786
725
|
/**
|
|
787
|
-
* <p>The ARN of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in
|
|
788
|
-
* the secret.</p>
|
|
789
|
-
* <p>For information about creating the secret, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_database_secret.html">Create a database secret</a>.</p>
|
|
726
|
+
* <p>The ARN of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in the secret.</p> <p>For information about creating the secret, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_database_secret.html">Create a database secret</a>.</p> <note> <p>When you use the CLI on Linux to reference a secret created in the RDS console, the ARN might include special characters like <code>rds!cluster</code>. If you enclose the ARN in double quotes, the <code>!</code> character might trigger a shell expansion error, such as <code>-bash: !cluster: event not found</code>. To avoid this, escape the exclamation mark (\!) in the ARN or enclose the entire ARN in single quotes (') instead of double quotes.</p> <p>Alternatively, disable shell history expansion by running <code>set +H</code> before you execute the command.</p> </note>
|
|
790
727
|
* @public
|
|
791
728
|
*/
|
|
792
729
|
secretArn: string | undefined;
|
|
@@ -801,26 +738,17 @@ export interface ExecuteStatementRequest {
|
|
|
801
738
|
*/
|
|
802
739
|
database?: string | undefined;
|
|
803
740
|
/**
|
|
804
|
-
* <p>The name of the database schema.</p>
|
|
805
|
-
* <note>
|
|
806
|
-
* <p>Currently, the <code>schema</code> parameter isn't supported.</p>
|
|
807
|
-
* </note>
|
|
741
|
+
* <p>The name of the database schema.</p> <note> <p>Currently, the <code>schema</code> parameter isn't supported.</p> </note>
|
|
808
742
|
* @public
|
|
809
743
|
*/
|
|
810
744
|
schema?: string | undefined;
|
|
811
745
|
/**
|
|
812
|
-
* <p>The parameters for the SQL statement.</p>
|
|
813
|
-
* <note>
|
|
814
|
-
* <p>Array parameters are not supported.</p>
|
|
815
|
-
* </note>
|
|
746
|
+
* <p>The parameters for the SQL statement.</p> <note> <p>Array parameters are not supported.</p> </note>
|
|
816
747
|
* @public
|
|
817
748
|
*/
|
|
818
749
|
parameters?: SqlParameter[] | undefined;
|
|
819
750
|
/**
|
|
820
|
-
* <p>The identifier of a transaction that was started by using the
|
|
821
|
-
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
|
|
822
|
-
* transaction that you want to include the SQL statement in.</p>
|
|
823
|
-
* <p>If the SQL statement is not part of a transaction, don't set this parameter.</p>
|
|
751
|
+
* <p>The identifier of a transaction that was started by using the <code>BeginTransaction</code> operation. Specify the transaction ID of the transaction that you want to include the SQL statement in.</p> <p>If the SQL statement is not part of a transaction, don't set this parameter.</p>
|
|
824
752
|
* @public
|
|
825
753
|
*/
|
|
826
754
|
transactionId?: string | undefined;
|
|
@@ -830,14 +758,7 @@ export interface ExecuteStatementRequest {
|
|
|
830
758
|
*/
|
|
831
759
|
includeResultMetadata?: boolean | undefined;
|
|
832
760
|
/**
|
|
833
|
-
* <p>A value that indicates whether to continue running the statement after
|
|
834
|
-
* the call times out. By default, the statement stops running when the call
|
|
835
|
-
* times out.</p>
|
|
836
|
-
* <note>
|
|
837
|
-
* <p>For DDL statements, we recommend continuing to run the statement after
|
|
838
|
-
* the call times out. When a DDL statement terminates before it is finished
|
|
839
|
-
* running, it can result in errors and possibly corrupted data structures.</p>
|
|
840
|
-
* </note>
|
|
761
|
+
* <p>A value that indicates whether to continue running the statement after the call times out. By default, the statement stops running when the call times out.</p> <note> <p>For DDL statements, we recommend continuing to run the statement after the call times out. When a DDL statement terminates before it is finished running, it can result in errors and possibly corrupted data structures.</p> </note>
|
|
841
762
|
* @public
|
|
842
763
|
*/
|
|
843
764
|
continueAfterTimeout?: boolean | undefined;
|
|
@@ -847,23 +768,13 @@ export interface ExecuteStatementRequest {
|
|
|
847
768
|
*/
|
|
848
769
|
resultSetOptions?: ResultSetOptions | undefined;
|
|
849
770
|
/**
|
|
850
|
-
* <p>A value that indicates whether to format the result set as a single JSON string.
|
|
851
|
-
* This parameter only applies to <code>SELECT</code> statements and is ignored for
|
|
852
|
-
* other types of statements. Allowed values are <code>NONE</code> and <code>JSON</code>.
|
|
853
|
-
* The default value is <code>NONE</code>. The result is returned in the <code>formattedRecords</code> field.</p>
|
|
854
|
-
* <p>For usage information about the JSON format for result sets, see
|
|
855
|
-
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using the Data API</a>
|
|
856
|
-
* in the <i>Amazon Aurora User Guide</i>.</p>
|
|
771
|
+
* <p>A value that indicates whether to format the result set as a single JSON string. This parameter only applies to <code>SELECT</code> statements and is ignored for other types of statements. Allowed values are <code>NONE</code> and <code>JSON</code>. The default value is <code>NONE</code>. The result is returned in the <code>formattedRecords</code> field.</p> <p>For usage information about the JSON format for result sets, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using the Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
|
|
857
772
|
* @public
|
|
858
773
|
*/
|
|
859
774
|
formatRecordsAs?: RecordsFormatType | undefined;
|
|
860
775
|
}
|
|
861
776
|
/**
|
|
862
|
-
* <p>A structure value returned by a call.</p>
|
|
863
|
-
* <note>
|
|
864
|
-
* <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation.
|
|
865
|
-
* Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p>
|
|
866
|
-
* </note>
|
|
777
|
+
* <p>A structure value returned by a call.</p> <note> <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation. Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p> </note>
|
|
867
778
|
* @public
|
|
868
779
|
*/
|
|
869
780
|
export interface StructValue {
|
|
@@ -874,8 +785,7 @@ export interface StructValue {
|
|
|
874
785
|
attributes?: Value[] | undefined;
|
|
875
786
|
}
|
|
876
787
|
/**
|
|
877
|
-
* <p>The request parameters represent the input of a SQL statement over an array of
|
|
878
|
-
* data.</p>
|
|
788
|
+
* <p>The request parameters represent the input of a SQL statement over an array of data.</p>
|
|
879
789
|
* @public
|
|
880
790
|
*/
|
|
881
791
|
export interface BatchExecuteStatementRequest {
|
|
@@ -885,9 +795,7 @@ export interface BatchExecuteStatementRequest {
|
|
|
885
795
|
*/
|
|
886
796
|
resourceArn: string | undefined;
|
|
887
797
|
/**
|
|
888
|
-
* <p>The ARN of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in
|
|
889
|
-
* the secret.</p>
|
|
890
|
-
* <p>For information about creating the secret, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_database_secret.html">Create a database secret</a>.</p>
|
|
798
|
+
* <p>The ARN of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in the secret.</p> <p>For information about creating the secret, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_database_secret.html">Create a database secret</a>.</p>
|
|
891
799
|
* @public
|
|
892
800
|
*/
|
|
893
801
|
secretArn: string | undefined;
|
|
@@ -902,44 +810,23 @@ export interface BatchExecuteStatementRequest {
|
|
|
902
810
|
*/
|
|
903
811
|
database?: string | undefined;
|
|
904
812
|
/**
|
|
905
|
-
* <p>The name of the database schema.</p>
|
|
906
|
-
* <note>
|
|
907
|
-
* <p>Currently, the <code>schema</code> parameter isn't supported.</p>
|
|
908
|
-
* </note>
|
|
813
|
+
* <p>The name of the database schema.</p> <note> <p>Currently, the <code>schema</code> parameter isn't supported.</p> </note>
|
|
909
814
|
* @public
|
|
910
815
|
*/
|
|
911
816
|
schema?: string | undefined;
|
|
912
817
|
/**
|
|
913
|
-
* <p>The parameter set for the batch operation.</p>
|
|
914
|
-
* <p>The SQL statement is executed as many times as the number of parameter sets provided.
|
|
915
|
-
* To execute a SQL statement with no parameters, use one of the following options:</p>
|
|
916
|
-
* <ul>
|
|
917
|
-
* <li>
|
|
918
|
-
* <p>Specify one or more empty parameter sets.</p>
|
|
919
|
-
* </li>
|
|
920
|
-
* <li>
|
|
921
|
-
* <p>Use the <code>ExecuteStatement</code> operation instead of the <code>BatchExecuteStatement</code> operation.</p>
|
|
922
|
-
* </li>
|
|
923
|
-
* </ul>
|
|
924
|
-
* <note>
|
|
925
|
-
* <p>Array parameters are not supported.</p>
|
|
926
|
-
* </note>
|
|
818
|
+
* <p>The parameter set for the batch operation.</p> <p>The SQL statement is executed as many times as the number of parameter sets provided. To execute a SQL statement with no parameters, use one of the following options:</p> <ul> <li> <p>Specify one or more empty parameter sets.</p> </li> <li> <p>Use the <code>ExecuteStatement</code> operation instead of the <code>BatchExecuteStatement</code> operation.</p> </li> </ul> <note> <p>Array parameters are not supported.</p> </note>
|
|
927
819
|
* @public
|
|
928
820
|
*/
|
|
929
821
|
parameterSets?: SqlParameter[][] | undefined;
|
|
930
822
|
/**
|
|
931
|
-
* <p>The identifier of a transaction that was started by using the
|
|
932
|
-
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
|
|
933
|
-
* transaction that you want to include the SQL statement in.</p>
|
|
934
|
-
* <p>If the SQL statement is not part of a transaction, don't set this
|
|
935
|
-
* parameter.</p>
|
|
823
|
+
* <p>The identifier of a transaction that was started by using the <code>BeginTransaction</code> operation. Specify the transaction ID of the transaction that you want to include the SQL statement in.</p> <p>If the SQL statement is not part of a transaction, don't set this parameter.</p>
|
|
936
824
|
* @public
|
|
937
825
|
*/
|
|
938
826
|
transactionId?: string | undefined;
|
|
939
827
|
}
|
|
940
828
|
/**
|
|
941
|
-
* <p>The response elements represent the output of a SQL statement over an array of
|
|
942
|
-
* data.</p>
|
|
829
|
+
* <p>The response elements represent the output of a SQL statement over an array of data.</p>
|
|
943
830
|
* @public
|
|
944
831
|
*/
|
|
945
832
|
export interface BatchExecuteStatementResponse {
|
|
@@ -950,11 +837,7 @@ export interface BatchExecuteStatementResponse {
|
|
|
950
837
|
updateResults?: UpdateResult[] | undefined;
|
|
951
838
|
}
|
|
952
839
|
/**
|
|
953
|
-
* <p>A record returned by a call.</p>
|
|
954
|
-
* <note>
|
|
955
|
-
* <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation.
|
|
956
|
-
* Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p>
|
|
957
|
-
* </note>
|
|
840
|
+
* <p>A record returned by a call.</p> <note> <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation. Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p> </note>
|
|
958
841
|
* @public
|
|
959
842
|
*/
|
|
960
843
|
export interface _Record {
|
|
@@ -965,20 +848,17 @@ export interface _Record {
|
|
|
965
848
|
values?: Value[] | undefined;
|
|
966
849
|
}
|
|
967
850
|
/**
|
|
968
|
-
* <p>The response elements represent the output of a request to run a SQL statement against
|
|
969
|
-
* a database.</p>
|
|
851
|
+
* <p>The response elements represent the output of a request to run a SQL statement against a database.</p>
|
|
970
852
|
* @public
|
|
971
853
|
*/
|
|
972
854
|
export interface ExecuteStatementResponse {
|
|
973
855
|
/**
|
|
974
|
-
* <p>The records returned by the SQL statement. This field is blank if the
|
|
975
|
-
* <code>formatRecordsAs</code> parameter is set to <code>JSON</code>.</p>
|
|
856
|
+
* <p>The records returned by the SQL statement. This field is blank if the <code>formatRecordsAs</code> parameter is set to <code>JSON</code>.</p>
|
|
976
857
|
* @public
|
|
977
858
|
*/
|
|
978
859
|
records?: Field[][] | undefined;
|
|
979
860
|
/**
|
|
980
|
-
* <p>Metadata for the columns included in the results. This field is blank if the
|
|
981
|
-
* <code>formatRecordsAs</code> parameter is set to <code>JSON</code>.</p>
|
|
861
|
+
* <p>Metadata for the columns included in the results. This field is blank if the <code>formatRecordsAs</code> parameter is set to <code>JSON</code>.</p>
|
|
982
862
|
* @public
|
|
983
863
|
*/
|
|
984
864
|
columnMetadata?: ColumnMetadata[] | undefined;
|
|
@@ -988,32 +868,18 @@ export interface ExecuteStatementResponse {
|
|
|
988
868
|
*/
|
|
989
869
|
numberOfRecordsUpdated?: number | undefined;
|
|
990
870
|
/**
|
|
991
|
-
* <p>Values for fields generated during a DML request.</p>
|
|
992
|
-
* <note>
|
|
993
|
-
* <p>The <code>generatedFields</code> data isn't supported by Aurora PostgreSQL.
|
|
994
|
-
* To get the values of generated fields, use the <code>RETURNING</code> clause. For
|
|
995
|
-
* more information, see <a href="https://www.postgresql.org/docs/10/dml-returning.html">Returning Data From
|
|
996
|
-
* Modified Rows</a> in the PostgreSQL documentation.</p>
|
|
997
|
-
* </note>
|
|
871
|
+
* <p>Values for fields generated during a DML request.</p> <note> <p>The <code>generatedFields</code> data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the <code>RETURNING</code> clause. For more information, see <a href="https://www.postgresql.org/docs/10/dml-returning.html">Returning Data From Modified Rows</a> in the PostgreSQL documentation.</p> </note>
|
|
998
872
|
* @public
|
|
999
873
|
*/
|
|
1000
874
|
generatedFields?: Field[] | undefined;
|
|
1001
875
|
/**
|
|
1002
|
-
* <p>A string value that represents the result set of a <code>SELECT</code> statement
|
|
1003
|
-
* in JSON format. This value is only present when the <code>formatRecordsAs</code>
|
|
1004
|
-
* parameter is set to <code>JSON</code>.</p>
|
|
1005
|
-
* <p>The size limit for this field is currently 10 MB. If the JSON-formatted string representing the
|
|
1006
|
-
* result set requires more than 10 MB, the call returns an error.</p>
|
|
876
|
+
* <p>A string value that represents the result set of a <code>SELECT</code> statement in JSON format. This value is only present when the <code>formatRecordsAs</code> parameter is set to <code>JSON</code>.</p> <p>The size limit for this field is currently 10 MB. If the JSON-formatted string representing the result set requires more than 10 MB, the call returns an error.</p>
|
|
1007
877
|
* @public
|
|
1008
878
|
*/
|
|
1009
879
|
formattedRecords?: string | undefined;
|
|
1010
880
|
}
|
|
1011
881
|
/**
|
|
1012
|
-
* <p>The result set returned by a SQL statement.</p>
|
|
1013
|
-
* <note>
|
|
1014
|
-
* <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation.
|
|
1015
|
-
* Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p>
|
|
1016
|
-
* </note>
|
|
882
|
+
* <p>The result set returned by a SQL statement.</p> <note> <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation. Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p> </note>
|
|
1017
883
|
* @public
|
|
1018
884
|
*/
|
|
1019
885
|
export interface ResultFrame {
|
|
@@ -1029,11 +895,7 @@ export interface ResultFrame {
|
|
|
1029
895
|
records?: _Record[] | undefined;
|
|
1030
896
|
}
|
|
1031
897
|
/**
|
|
1032
|
-
* <p>The result of a SQL statement.</p>
|
|
1033
|
-
* <note>
|
|
1034
|
-
* <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation.
|
|
1035
|
-
* Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p>
|
|
1036
|
-
* </note>
|
|
898
|
+
* <p>The result of a SQL statement.</p> <note> <p>This data structure is only used with the deprecated <code>ExecuteSql</code> operation. Use the <code>BatchExecuteStatement</code> or <code>ExecuteStatement</code> operation instead.</p> </note>
|
|
1037
899
|
* @public
|
|
1038
900
|
*/
|
|
1039
901
|
export interface SqlStatementResult {
|
|
@@ -1049,8 +911,7 @@ export interface SqlStatementResult {
|
|
|
1049
911
|
numberOfRecordsUpdated?: number | undefined;
|
|
1050
912
|
}
|
|
1051
913
|
/**
|
|
1052
|
-
* <p>The response elements represent the output of a request to run one or more SQL
|
|
1053
|
-
* statements.</p>
|
|
914
|
+
* <p>The response elements represent the output of a request to run one or more SQL statements.</p>
|
|
1054
915
|
* @public
|
|
1055
916
|
*/
|
|
1056
917
|
export interface ExecuteSqlResponse {
|
|
@@ -69,7 +69,7 @@ export type ArrayValue =
|
|
|
69
69
|
| ArrayValue.$UnknownMember;
|
|
70
70
|
export declare namespace ArrayValue {
|
|
71
71
|
interface BooleanValuesMember {
|
|
72
|
-
booleanValues: boolean[];
|
|
72
|
+
booleanValues: (boolean | null)[];
|
|
73
73
|
longValues?: never;
|
|
74
74
|
doubleValues?: never;
|
|
75
75
|
stringValues?: never;
|
|
@@ -78,7 +78,7 @@ export declare namespace ArrayValue {
|
|
|
78
78
|
}
|
|
79
79
|
interface LongValuesMember {
|
|
80
80
|
booleanValues?: never;
|
|
81
|
-
longValues: number[];
|
|
81
|
+
longValues: (number | null)[];
|
|
82
82
|
doubleValues?: never;
|
|
83
83
|
stringValues?: never;
|
|
84
84
|
arrayValues?: never;
|
|
@@ -87,7 +87,7 @@ export declare namespace ArrayValue {
|
|
|
87
87
|
interface DoubleValuesMember {
|
|
88
88
|
booleanValues?: never;
|
|
89
89
|
longValues?: never;
|
|
90
|
-
doubleValues: number[];
|
|
90
|
+
doubleValues: (number | null)[];
|
|
91
91
|
stringValues?: never;
|
|
92
92
|
arrayValues?: never;
|
|
93
93
|
$unknown?: never;
|
|
@@ -96,7 +96,7 @@ export declare namespace ArrayValue {
|
|
|
96
96
|
booleanValues?: never;
|
|
97
97
|
longValues?: never;
|
|
98
98
|
doubleValues?: never;
|
|
99
|
-
stringValues: string[];
|
|
99
|
+
stringValues: (string | null)[];
|
|
100
100
|
arrayValues?: never;
|
|
101
101
|
$unknown?: never;
|
|
102
102
|
}
|
|
@@ -105,7 +105,7 @@ export declare namespace ArrayValue {
|
|
|
105
105
|
longValues?: never;
|
|
106
106
|
doubleValues?: never;
|
|
107
107
|
stringValues?: never;
|
|
108
|
-
arrayValues: ArrayValue[];
|
|
108
|
+
arrayValues: (ArrayValue | null)[];
|
|
109
109
|
$unknown?: never;
|
|
110
110
|
}
|
|
111
111
|
interface $UnknownMember {
|
|
@@ -117,11 +117,11 @@ export declare namespace ArrayValue {
|
|
|
117
117
|
$unknown: [string, any];
|
|
118
118
|
}
|
|
119
119
|
interface Visitor<T> {
|
|
120
|
-
booleanValues: (value: boolean[]) => T;
|
|
121
|
-
longValues: (value: number[]) => T;
|
|
122
|
-
doubleValues: (value: number[]) => T;
|
|
123
|
-
stringValues: (value: string[]) => T;
|
|
124
|
-
arrayValues: (value: ArrayValue[]) => T;
|
|
120
|
+
booleanValues: (value: (boolean | null)[]) => T;
|
|
121
|
+
longValues: (value: (number | null)[]) => T;
|
|
122
|
+
doubleValues: (value: (number | null)[]) => T;
|
|
123
|
+
stringValues: (value: (string | null)[]) => T;
|
|
124
|
+
arrayValues: (value: (ArrayValue | null)[]) => T;
|
|
125
125
|
_: (name: string, value: any) => T;
|
|
126
126
|
}
|
|
127
127
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-rds-data",
|
|
3
3
|
"description": "AWS SDK for JavaScript Rds Data Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1057.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-rds-data",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
24
|
"@aws-sdk/core": "^3.974.15",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.47",
|
|
26
26
|
"@aws-sdk/types": "^3.973.9",
|
|
27
27
|
"@smithy/core": "^3.24.5",
|
|
28
28
|
"@smithy/fetch-http-handler": "^5.4.5",
|