File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
configured_endpoints : 1256
2
- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-dc191ddbe3d3013cd1f90d1747ebd7022d0f938d1e547eb284ae675d34c87e78 .yml
2
+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2a553d49ea7dea09efa86fd5af7cdaba8c2a757071c4114a4d8de234cbcdc740 .yml
Original file line number Diff line number Diff line change @@ -209,6 +209,13 @@ export interface DatabaseCreateParams {
209
209
* Body param:
210
210
*/
211
211
name : string ;
212
+
213
+ /**
214
+ * Body param: Specify the region to create the D1 primary, if available. If this
215
+ * option is omitted, the D1 will be created as close as possible to the current
216
+ * user.
217
+ */
218
+ primary_location_hint ?: 'wnam' | 'enam' | 'weur' | 'eeur' | 'apac' | 'oc' ;
212
219
}
213
220
214
221
export interface DatabaseListParams extends V4PagePaginationArrayParams {
@@ -244,7 +251,8 @@ export interface DatabaseQueryParams {
244
251
account_id : string ;
245
252
246
253
/**
247
- * Body param:
254
+ * Body param: Your SQL query. Supports multiple statements, joined by semicolons,
255
+ * which will be executed as a batch.
248
256
*/
249
257
sql : string ;
250
258
@@ -261,7 +269,8 @@ export interface DatabaseRawParams {
261
269
account_id : string ;
262
270
263
271
/**
264
- * Body param:
272
+ * Body param: Your SQL query. Supports multiple statements, joined by semicolons,
273
+ * which will be executed as a batch.
265
274
*/
266
275
sql : string ;
267
276
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ describe('resource database', () => {
28
28
const response = await cloudflare . d1 . database . create ( {
29
29
account_id : '023e105f4ecef8ad9ca31a8372d0c353' ,
30
30
name : 'my-database' ,
31
+ primary_location_hint : 'wnam' ,
31
32
} ) ;
32
33
} ) ;
33
34
You can’t perform that action at this time.
0 commit comments