@azure/data-tables 13.3.1-alpha.20250403.1 → 13.3.1-alpha.20250407.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.
- package/README.md +15 -18
- package/dist/browser/TableClient.d.ts +30 -24
- package/dist/browser/TableClient.d.ts.map +1 -1
- package/dist/browser/TableClient.js +30 -20
- package/dist/browser/TableClient.js.map +1 -1
- package/dist/browser/TableServiceClient.d.ts +0 -4
- package/dist/browser/TableServiceClient.d.ts.map +1 -1
- package/dist/browser/TableServiceClient.js.map +1 -1
- package/dist/commonjs/TableClient.d.ts +30 -24
- package/dist/commonjs/TableClient.d.ts.map +1 -1
- package/dist/commonjs/TableClient.js +30 -20
- package/dist/commonjs/TableClient.js.map +1 -1
- package/dist/commonjs/TableServiceClient.d.ts +0 -4
- package/dist/commonjs/TableServiceClient.d.ts.map +1 -1
- package/dist/commonjs/TableServiceClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/TableClient.d.ts +30 -24
- package/dist/esm/TableClient.d.ts.map +1 -1
- package/dist/esm/TableClient.js +30 -20
- package/dist/esm/TableClient.js.map +1 -1
- package/dist/esm/TableServiceClient.d.ts +0 -4
- package/dist/esm/TableServiceClient.d.ts.map +1 -1
- package/dist/esm/TableServiceClient.js.map +1 -1
- package/dist/react-native/TableClient.d.ts +30 -24
- package/dist/react-native/TableClient.d.ts.map +1 -1
- package/dist/react-native/TableClient.js +30 -20
- package/dist/react-native/TableClient.js.map +1 -1
- package/dist/react-native/TableServiceClient.d.ts +0 -4
- package/dist/react-native/TableServiceClient.d.ts.map +1 -1
- package/dist/react-native/TableServiceClient.js.map +1 -1
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -156,10 +156,6 @@ To learn more about Azure AD integration in Azure Storage, see the [Azure.Identi
|
|
|
156
156
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
157
157
|
import { TableServiceClient } from "@azure/data-tables";
|
|
158
158
|
|
|
159
|
-
// DefaultAzureCredential expects the following three environment variables:
|
|
160
|
-
// - AZURE_TENANT_ID: The tenant ID in Azure Active Directory
|
|
161
|
-
// - AZURE_CLIENT_ID: The application (client) ID registered in the AAD tenant
|
|
162
|
-
// - AZURE_CLIENT_SECRET: The client secret for the registered application
|
|
163
159
|
const credential = new DefaultAzureCredential();
|
|
164
160
|
const account = "<account name>";
|
|
165
161
|
|
|
@@ -190,12 +186,13 @@ const serviceClientWithSAS = new TableServiceClient(
|
|
|
190
186
|
You can list tables within an account through a `TableServiceClient` instance calling the `listTables` function. This function returns a `PageableAsyncIterator` that you can consume using `for-await-of`
|
|
191
187
|
|
|
192
188
|
```ts snippet:ReadmeSampleListTables
|
|
193
|
-
import {
|
|
189
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
190
|
+
import { TableServiceClient } from "@azure/data-tables";
|
|
194
191
|
|
|
195
192
|
const account = "<account>";
|
|
196
193
|
const accountKey = "<accountkey>";
|
|
197
194
|
|
|
198
|
-
const credential = new
|
|
195
|
+
const credential = new DefaultAzureCredential();
|
|
199
196
|
const serviceClient = new TableServiceClient(
|
|
200
197
|
`https://${account}.table.core.windows.net`,
|
|
201
198
|
credential,
|
|
@@ -214,12 +211,13 @@ You can create a table through a `TableServiceClient` instance calling the `crea
|
|
|
214
211
|
Note that `createTable` won't throw an error when the table already exists.
|
|
215
212
|
|
|
216
213
|
```ts snippet:ReadmeSampleCreateTable
|
|
217
|
-
import {
|
|
214
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
215
|
+
import { TableServiceClient } from "@azure/data-tables";
|
|
218
216
|
|
|
219
217
|
const account = "<account>";
|
|
220
218
|
const accountKey = "<accountkey>";
|
|
221
219
|
|
|
222
|
-
const credential = new
|
|
220
|
+
const credential = new DefaultAzureCredential();
|
|
223
221
|
const serviceClient = new TableServiceClient(
|
|
224
222
|
`https://${account}.table.core.windows.net`,
|
|
225
223
|
credential,
|
|
@@ -233,12 +231,13 @@ await serviceClient.createTable(tableName);
|
|
|
233
231
|
Here is a sample that demonstrates how to test if the table already exists when attempting to create it:
|
|
234
232
|
|
|
235
233
|
```ts snippet:ReadmeSampleCreateTable_IfExists
|
|
236
|
-
import {
|
|
234
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
235
|
+
import { TableServiceClient } from "@azure/data-tables";
|
|
237
236
|
|
|
238
237
|
const account = "<account>";
|
|
239
238
|
const accountKey = "<accountkey>";
|
|
240
239
|
|
|
241
|
-
const credential = new
|
|
240
|
+
const credential = new DefaultAzureCredential();
|
|
242
241
|
const serviceClient = new TableServiceClient(
|
|
243
242
|
`https://${account}.table.core.windows.net`,
|
|
244
243
|
credential,
|
|
@@ -292,10 +291,6 @@ To learn more about Azure AD integration in Azure Storage, see the [Azure.Identi
|
|
|
292
291
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
293
292
|
import { TableClient } from "@azure/data-tables";
|
|
294
293
|
|
|
295
|
-
// DefaultAzureCredential expects the following three environment variables:
|
|
296
|
-
// - AZURE_TENANT_ID: The tenant ID in Azure Active Directory
|
|
297
|
-
// - AZURE_CLIENT_ID: The application (client) ID registered in the AAD tenant
|
|
298
|
-
// - AZURE_CLIENT_SECRET: The client secret for the registered application
|
|
299
294
|
const credential = new DefaultAzureCredential();
|
|
300
295
|
const account = "<account name>";
|
|
301
296
|
const tableName = "<tableName>";
|
|
@@ -330,13 +325,14 @@ const clientWithSAS = new TableClient(
|
|
|
330
325
|
You can list entities within a table by through a `TableClient` instance calling the `listEntities` function. This function returns a `PageableAsyncIterator` that you can consume using `for-await-of`
|
|
331
326
|
|
|
332
327
|
```ts snippet:ReadmeSampleListEntities
|
|
333
|
-
import {
|
|
328
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
329
|
+
import { TableClient } from "@azure/data-tables";
|
|
334
330
|
|
|
335
331
|
const account = "<account>";
|
|
336
332
|
const accountKey = "<accountkey>";
|
|
337
333
|
const tableName = "<tableName>";
|
|
338
334
|
|
|
339
|
-
const credential = new
|
|
335
|
+
const credential = new DefaultAzureCredential();
|
|
340
336
|
const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
341
337
|
|
|
342
338
|
let i = 0;
|
|
@@ -351,13 +347,14 @@ for await (const entity of entities) {
|
|
|
351
347
|
You can create a new Entity in a table by through a `TableClient` instance calling the `createEntity` function. This function takes the entity to insert as a parameter. The entity must contain `partitionKey` and `rowKey`.
|
|
352
348
|
|
|
353
349
|
```ts snippet:ReadmeSampleCreateEntity
|
|
354
|
-
import {
|
|
350
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
351
|
+
import { TableClient } from "@azure/data-tables";
|
|
355
352
|
|
|
356
353
|
const account = "<account>";
|
|
357
354
|
const accountKey = "<accountkey>";
|
|
358
355
|
const tableName = "<tableName>";
|
|
359
356
|
|
|
360
|
-
const credential = new
|
|
357
|
+
const credential = new DefaultAzureCredential();
|
|
361
358
|
const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
362
359
|
|
|
363
360
|
const testEntity = {
|
|
@@ -94,10 +94,6 @@ export declare class TableClient {
|
|
|
94
94
|
* import { DefaultAzureCredential } from "@azure/identity";
|
|
95
95
|
* import { TableClient } from "@azure/data-tables";
|
|
96
96
|
*
|
|
97
|
-
* // DefaultAzureCredential expects the following three environment variables:
|
|
98
|
-
* // - AZURE_TENANT_ID: The tenant ID in Azure Active Directory
|
|
99
|
-
* // - AZURE_CLIENT_ID: The application (client) ID registered in the AAD tenant
|
|
100
|
-
* // - AZURE_CLIENT_SECRET: The client secret for the registered application
|
|
101
97
|
* const credential = new DefaultAzureCredential();
|
|
102
98
|
* const account = "<account name>";
|
|
103
99
|
* const tableName = "<tableName>";
|
|
@@ -141,13 +137,14 @@ export declare class TableClient {
|
|
|
141
137
|
*
|
|
142
138
|
* ### Example deleting a table
|
|
143
139
|
* ```ts snippet:ReadmeSampleDeleteTable
|
|
144
|
-
* import {
|
|
140
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
141
|
+
* import { TableClient } from "@azure/data-tables";
|
|
145
142
|
*
|
|
146
143
|
* const account = "<account>";
|
|
147
144
|
* const accountKey = "<accountkey>";
|
|
148
145
|
* const tableName = "<tableName>";
|
|
149
146
|
*
|
|
150
|
-
* const credential = new
|
|
147
|
+
* const credential = new DefaultAzureCredential();
|
|
151
148
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
152
149
|
*
|
|
153
150
|
* await client.deleteTable();
|
|
@@ -160,13 +157,14 @@ export declare class TableClient {
|
|
|
160
157
|
*
|
|
161
158
|
* ### Example creating a table
|
|
162
159
|
* ```ts snippet:ReadmeSampleTableClientCreateTable
|
|
163
|
-
* import {
|
|
160
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
161
|
+
* import { TableClient } from "@azure/data-tables";
|
|
164
162
|
*
|
|
165
163
|
* const account = "<account>";
|
|
166
164
|
* const accountKey = "<accountkey>";
|
|
167
165
|
* const tableName = "<tableName>";
|
|
168
166
|
*
|
|
169
|
-
* const credential = new
|
|
167
|
+
* const credential = new DefaultAzureCredential();
|
|
170
168
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
171
169
|
*
|
|
172
170
|
* // If the table 'newTable' already exists, createTable doesn't throw
|
|
@@ -182,13 +180,14 @@ export declare class TableClient {
|
|
|
182
180
|
*
|
|
183
181
|
* ### Example getting an entity
|
|
184
182
|
* ```ts snippet:ReadmeSampleGetEntity
|
|
185
|
-
* import {
|
|
183
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
184
|
+
* import { TableClient } from "@azure/data-tables";
|
|
186
185
|
*
|
|
187
186
|
* const account = "<account>";
|
|
188
187
|
* const accountKey = "<accountkey>";
|
|
189
188
|
* const tableName = "<tableName>";
|
|
190
189
|
*
|
|
191
|
-
* const credential = new
|
|
190
|
+
* const credential = new DefaultAzureCredential();
|
|
192
191
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
193
192
|
*
|
|
194
193
|
* const entity = await client.getEntity("<partitionKey>", "<rowKey>");
|
|
@@ -202,13 +201,14 @@ export declare class TableClient {
|
|
|
202
201
|
*
|
|
203
202
|
* Example listing entities
|
|
204
203
|
* ```ts snippet:ReadmeSampleListEntities
|
|
205
|
-
* import {
|
|
204
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
205
|
+
* import { TableClient } from "@azure/data-tables";
|
|
206
206
|
*
|
|
207
207
|
* const account = "<account>";
|
|
208
208
|
* const accountKey = "<accountkey>";
|
|
209
209
|
* const tableName = "<tableName>";
|
|
210
210
|
*
|
|
211
|
-
* const credential = new
|
|
211
|
+
* const credential = new DefaultAzureCredential();
|
|
212
212
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
213
213
|
*
|
|
214
214
|
* let i = 0;
|
|
@@ -229,13 +229,14 @@ export declare class TableClient {
|
|
|
229
229
|
*
|
|
230
230
|
* ### Example creating an entity
|
|
231
231
|
* ```ts snippet:ReadmeSampleCreateEntity
|
|
232
|
-
* import {
|
|
232
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
233
|
+
* import { TableClient } from "@azure/data-tables";
|
|
233
234
|
*
|
|
234
235
|
* const account = "<account>";
|
|
235
236
|
* const accountKey = "<accountkey>";
|
|
236
237
|
* const tableName = "<tableName>";
|
|
237
238
|
*
|
|
238
|
-
* const credential = new
|
|
239
|
+
* const credential = new DefaultAzureCredential();
|
|
239
240
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
240
241
|
*
|
|
241
242
|
* const testEntity = {
|
|
@@ -256,13 +257,14 @@ export declare class TableClient {
|
|
|
256
257
|
*
|
|
257
258
|
* ### Example deleting an entity
|
|
258
259
|
* ```ts snippet:ReadmeSampleDeleteEntity
|
|
259
|
-
* import {
|
|
260
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
261
|
+
* import { TableClient } from "@azure/data-tables";
|
|
260
262
|
*
|
|
261
263
|
* const account = "<account>";
|
|
262
264
|
* const accountKey = "<accountkey>";
|
|
263
265
|
* const tableName = "<tableName>";
|
|
264
266
|
*
|
|
265
|
-
* const credential = new
|
|
267
|
+
* const credential = new DefaultAzureCredential();
|
|
266
268
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
267
269
|
*
|
|
268
270
|
* // deleteEntity deletes the entity that matches exactly the partitionKey and rowKey
|
|
@@ -280,13 +282,14 @@ export declare class TableClient {
|
|
|
280
282
|
*
|
|
281
283
|
* ### Example updating an entity
|
|
282
284
|
* ```ts snippet:ReadmeSampleUpdateEntity
|
|
283
|
-
* import {
|
|
285
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
286
|
+
* import { TableClient } from "@azure/data-tables";
|
|
284
287
|
*
|
|
285
288
|
* const account = "<account>";
|
|
286
289
|
* const accountKey = "<accountkey>";
|
|
287
290
|
* const tableName = "<tableName>";
|
|
288
291
|
*
|
|
289
|
-
* const credential = new
|
|
292
|
+
* const credential = new DefaultAzureCredential();
|
|
290
293
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
291
294
|
*
|
|
292
295
|
* const entity = { partitionKey: "p1", rowKey: "r1", bar: "updatedBar" };
|
|
@@ -317,13 +320,14 @@ export declare class TableClient {
|
|
|
317
320
|
*
|
|
318
321
|
* ### Example upserting an entity
|
|
319
322
|
* ```ts snippet:ReadmeSampleUpsertEntity
|
|
320
|
-
* import {
|
|
323
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
324
|
+
* import { TableClient } from "@azure/data-tables";
|
|
321
325
|
*
|
|
322
326
|
* const account = "<account>";
|
|
323
327
|
* const accountKey = "<accountkey>";
|
|
324
328
|
* const tableName = "<tableName>";
|
|
325
329
|
*
|
|
326
|
-
* const credential = new
|
|
330
|
+
* const credential = new DefaultAzureCredential();
|
|
327
331
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
328
332
|
*
|
|
329
333
|
* const entity = { partitionKey: "p1", rowKey: "r1", bar: "updatedBar" };
|
|
@@ -358,13 +362,14 @@ export declare class TableClient {
|
|
|
358
362
|
*
|
|
359
363
|
* Example usage:
|
|
360
364
|
* ```ts snippet:ReadmeSampleSubmitTransaction
|
|
361
|
-
* import {
|
|
365
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
366
|
+
* import { TableClient, TransactionAction } from "@azure/data-tables";
|
|
362
367
|
*
|
|
363
368
|
* const account = "<account>";
|
|
364
369
|
* const accountKey = "<accountkey>";
|
|
365
370
|
* const tableName = "<tableName>";
|
|
366
371
|
*
|
|
367
|
-
* const credential = new
|
|
372
|
+
* const credential = new DefaultAzureCredential();
|
|
368
373
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
369
374
|
*
|
|
370
375
|
* const actions: TransactionAction[] = [
|
|
@@ -377,13 +382,14 @@ export declare class TableClient {
|
|
|
377
382
|
*
|
|
378
383
|
* Example usage with TableTransaction:
|
|
379
384
|
* ```ts snippet:ReadmeSampleSubmitTransactionWithTableTransaction
|
|
380
|
-
* import {
|
|
385
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
386
|
+
* import { TableClient, TableTransaction } from "@azure/data-tables";
|
|
381
387
|
*
|
|
382
388
|
* const account = "<account>";
|
|
383
389
|
* const accountKey = "<accountkey>";
|
|
384
390
|
* const tableName = "<tableName>";
|
|
385
391
|
*
|
|
386
|
-
* const credential = new
|
|
392
|
+
* const credential = new DefaultAzureCredential();
|
|
387
393
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
388
394
|
*
|
|
389
395
|
* const transaction = new TableTransaction();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableClient.d.ts","sourceRoot":"","sources":["../../src/TableClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,wBA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
71
|
* ### Example deleting a table
|
|
72
72
|
* ```ts snippet:ReadmeSampleDeleteTable
|
|
73
|
-
* import {
|
|
73
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
74
|
+
* import { TableClient } from "@azure/data-tables";
|
|
74
75
|
*
|
|
75
76
|
* const account = "<account>";
|
|
76
77
|
* const accountKey = "<accountkey>";
|
|
77
78
|
* const tableName = "<tableName>";
|
|
78
79
|
*
|
|
79
|
-
* const credential = new
|
|
80
|
+
* const credential = new DefaultAzureCredential();
|
|
80
81
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
81
82
|
*
|
|
82
83
|
* await client.deleteTable();
|
|
@@ -103,13 +104,14 @@ export class TableClient {
|
|
|
103
104
|
*
|
|
104
105
|
* ### Example creating a table
|
|
105
106
|
* ```ts snippet:ReadmeSampleTableClientCreateTable
|
|
106
|
-
* import {
|
|
107
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
108
|
+
* import { TableClient } from "@azure/data-tables";
|
|
107
109
|
*
|
|
108
110
|
* const account = "<account>";
|
|
109
111
|
* const accountKey = "<accountkey>";
|
|
110
112
|
* const tableName = "<tableName>";
|
|
111
113
|
*
|
|
112
|
-
* const credential = new
|
|
114
|
+
* const credential = new DefaultAzureCredential();
|
|
113
115
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
114
116
|
*
|
|
115
117
|
* // If the table 'newTable' already exists, createTable doesn't throw
|
|
@@ -134,13 +136,14 @@ export class TableClient {
|
|
|
134
136
|
*
|
|
135
137
|
* ### Example getting an entity
|
|
136
138
|
* ```ts snippet:ReadmeSampleGetEntity
|
|
137
|
-
* import {
|
|
139
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
140
|
+
* import { TableClient } from "@azure/data-tables";
|
|
138
141
|
*
|
|
139
142
|
* const account = "<account>";
|
|
140
143
|
* const accountKey = "<accountkey>";
|
|
141
144
|
* const tableName = "<tableName>";
|
|
142
145
|
*
|
|
143
|
-
* const credential = new
|
|
146
|
+
* const credential = new DefaultAzureCredential();
|
|
144
147
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
145
148
|
*
|
|
146
149
|
* const entity = await client.getEntity("<partitionKey>", "<rowKey>");
|
|
@@ -170,13 +173,14 @@ export class TableClient {
|
|
|
170
173
|
*
|
|
171
174
|
* Example listing entities
|
|
172
175
|
* ```ts snippet:ReadmeSampleListEntities
|
|
173
|
-
* import {
|
|
176
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
177
|
+
* import { TableClient } from "@azure/data-tables";
|
|
174
178
|
*
|
|
175
179
|
* const account = "<account>";
|
|
176
180
|
* const accountKey = "<accountkey>";
|
|
177
181
|
* const tableName = "<tableName>";
|
|
178
182
|
*
|
|
179
|
-
* const credential = new
|
|
183
|
+
* const credential = new DefaultAzureCredential();
|
|
180
184
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
181
185
|
*
|
|
182
186
|
* let i = 0;
|
|
@@ -273,13 +277,14 @@ export class TableClient {
|
|
|
273
277
|
*
|
|
274
278
|
* ### Example creating an entity
|
|
275
279
|
* ```ts snippet:ReadmeSampleCreateEntity
|
|
276
|
-
* import {
|
|
280
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
281
|
+
* import { TableClient } from "@azure/data-tables";
|
|
277
282
|
*
|
|
278
283
|
* const account = "<account>";
|
|
279
284
|
* const accountKey = "<accountkey>";
|
|
280
285
|
* const tableName = "<tableName>";
|
|
281
286
|
*
|
|
282
|
-
* const credential = new
|
|
287
|
+
* const credential = new DefaultAzureCredential();
|
|
283
288
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
284
289
|
*
|
|
285
290
|
* const testEntity = {
|
|
@@ -305,13 +310,14 @@ export class TableClient {
|
|
|
305
310
|
*
|
|
306
311
|
* ### Example deleting an entity
|
|
307
312
|
* ```ts snippet:ReadmeSampleDeleteEntity
|
|
308
|
-
* import {
|
|
313
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
314
|
+
* import { TableClient } from "@azure/data-tables";
|
|
309
315
|
*
|
|
310
316
|
* const account = "<account>";
|
|
311
317
|
* const accountKey = "<accountkey>";
|
|
312
318
|
* const tableName = "<tableName>";
|
|
313
319
|
*
|
|
314
|
-
* const credential = new
|
|
320
|
+
* const credential = new DefaultAzureCredential();
|
|
315
321
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
316
322
|
*
|
|
317
323
|
* // deleteEntity deletes the entity that matches exactly the partitionKey and rowKey
|
|
@@ -337,13 +343,14 @@ export class TableClient {
|
|
|
337
343
|
*
|
|
338
344
|
* ### Example updating an entity
|
|
339
345
|
* ```ts snippet:ReadmeSampleUpdateEntity
|
|
340
|
-
* import {
|
|
346
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
347
|
+
* import { TableClient } from "@azure/data-tables";
|
|
341
348
|
*
|
|
342
349
|
* const account = "<account>";
|
|
343
350
|
* const accountKey = "<accountkey>";
|
|
344
351
|
* const tableName = "<tableName>";
|
|
345
352
|
*
|
|
346
|
-
* const credential = new
|
|
353
|
+
* const credential = new DefaultAzureCredential();
|
|
347
354
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
348
355
|
*
|
|
349
356
|
* const entity = { partitionKey: "p1", rowKey: "r1", bar: "updatedBar" };
|
|
@@ -393,13 +400,14 @@ export class TableClient {
|
|
|
393
400
|
*
|
|
394
401
|
* ### Example upserting an entity
|
|
395
402
|
* ```ts snippet:ReadmeSampleUpsertEntity
|
|
396
|
-
* import {
|
|
403
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
404
|
+
* import { TableClient } from "@azure/data-tables";
|
|
397
405
|
*
|
|
398
406
|
* const account = "<account>";
|
|
399
407
|
* const accountKey = "<accountkey>";
|
|
400
408
|
* const tableName = "<tableName>";
|
|
401
409
|
*
|
|
402
|
-
* const credential = new
|
|
410
|
+
* const credential = new DefaultAzureCredential();
|
|
403
411
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
404
412
|
*
|
|
405
413
|
* const entity = { partitionKey: "p1", rowKey: "r1", bar: "updatedBar" };
|
|
@@ -460,13 +468,14 @@ export class TableClient {
|
|
|
460
468
|
*
|
|
461
469
|
* Example usage:
|
|
462
470
|
* ```ts snippet:ReadmeSampleSubmitTransaction
|
|
463
|
-
* import {
|
|
471
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
472
|
+
* import { TableClient, TransactionAction } from "@azure/data-tables";
|
|
464
473
|
*
|
|
465
474
|
* const account = "<account>";
|
|
466
475
|
* const accountKey = "<accountkey>";
|
|
467
476
|
* const tableName = "<tableName>";
|
|
468
477
|
*
|
|
469
|
-
* const credential = new
|
|
478
|
+
* const credential = new DefaultAzureCredential();
|
|
470
479
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
471
480
|
*
|
|
472
481
|
* const actions: TransactionAction[] = [
|
|
@@ -479,13 +488,14 @@ export class TableClient {
|
|
|
479
488
|
*
|
|
480
489
|
* Example usage with TableTransaction:
|
|
481
490
|
* ```ts snippet:ReadmeSampleSubmitTransactionWithTableTransaction
|
|
482
|
-
* import {
|
|
491
|
+
* import { DefaultAzureCredential } from "@azure/identity";
|
|
492
|
+
* import { TableClient, TableTransaction } from "@azure/data-tables";
|
|
483
493
|
*
|
|
484
494
|
* const account = "<account>";
|
|
485
495
|
* const accountKey = "<accountkey>";
|
|
486
496
|
* const tableName = "<tableName>";
|
|
487
497
|
*
|
|
488
|
-
* const credential = new
|
|
498
|
+
* const credential = new DefaultAzureCredential();
|
|
489
499
|
* const client = new TableClient(`https://${account}.table.core.windows.net`, tableName, credential);
|
|
490
500
|
*
|
|
491
501
|
* const transaction = new TableTransaction();
|