Skip to content

Commit a15e7e1

Browse files
committed
Implementing first round of feedback.
1 parent 58dbd64 commit a15e7e1

File tree

26 files changed

+187
-130
lines changed

26 files changed

+187
-130
lines changed

src/content/docs/browser-rendering/workers-binding-api/browser-rendering-with-DO.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class_name = "Browser"
9292

9393
[[migrations]]
9494
tag = "v1" # Should be unique for each entry
95-
new_classes = ["Browser"] # Array of new classes
95+
new_sqlite_classes = ["Browser"] # Array of new classes
9696

9797
```
9898

src/content/docs/durable-objects/api/sql-storage.mdx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,16 @@ export class MyDurableObject extends DurableObject {
3737
SQL API methods accessed with `ctx.storage.sql` are only allowed on [Durable Object classes with SQLite storage backend](/durable-objects/reference/durable-objects-migrations/#enable-sqlite-storage-backend-on-new-durable-object-class-migration) and will return an error if called on Durable Object classes with a key-value storage backend.
3838
:::
3939

40+
## Methods
41+
42+
<Render file="storage-intro-text"/>
43+
4044
:::note[Writing to indexes or virtual tables]
4145
When writing data, every index counts as an additional row. However, indexes may be beneficial for read-heavy use cases. Refer to [Index for SQLite Durable Objects](/durable-objects/features/access-durable-objects-storage/#index-for-sqlite-durable-objects).
4246

4347
Writing data to [SQLite virtual tables](https://www.sqlite.org/vtab.html) also counts towards rows written.
4448
:::
4549

46-
Specifically for Durable Object classes with SQLite storage backend, KV operations which were previously asynchronous (for example, [`get`](/durable-objects/api/storage-api/#get), [`put`](/durable-objects/api/storage-api/#put), [`delete`](/durable-objects/api/storage-api/#delete), [`deleteAll`](/durable-objects/api/storage-api/#deleteall), [`list`](/durable-objects/api/storage-api/#list)) are synchronous, even though they return promises. These methods will have completed their operations before they return the promise.
47-
48-
## Methods
49-
50-
<Render file="storage-intro-text"/>
51-
5250
### `exec`
5351

5452
<code>exec(query: <Type text='string'/>, ...bindings: <Type text='any[]'/>)</code>: <Type text='SqlStorageCursor' />

src/content/docs/durable-objects/examples/alarms-api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class_name = "Batcher"
8686

8787
[[migrations]]
8888
tag = "v1"
89-
new_classes = ["Batcher"]
89+
new_sqlite_classes = ["Batcher"]
9090
```
9191

9292
</WranglerConfig>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class_name = "Counter"
178178

179179
[[migrations]]
180180
tag = "v1"
181-
new_classes = ["Counter"]
181+
new_sqlite_classes = ["Counter"]
182182
```
183183

184184
</WranglerConfig>

src/content/docs/durable-objects/examples/build-a-rate-limiter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ class_name = "RateLimiter"
290290

291291
[[migrations]]
292292
tag = "v1"
293-
new_classes = ["RateLimiter"]
293+
new_sqlite_classes = ["RateLimiter"]
294294
```
295295

296296
</WranglerConfig>

src/content/docs/durable-objects/examples/durable-object-in-memory-state.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class_name = "Location"
8080

8181
[[migrations]]
8282
tag = "v1"
83-
new_classes = ["Location"]
83+
new_sqlite_classes = ["Location"]
8484
```
8585

8686
</WranglerConfig>

src/content/docs/durable-objects/examples/durable-object-ttl.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class_name = "MyDurableObject"
109109

110110
[[migrations]]
111111
tag = "v1"
112-
new_classes = ["MyDurableObject"]
112+
new_sqlite_classes = ["MyDurableObject"]
113113
```
114114

115115
</WranglerConfig>

src/content/docs/durable-objects/examples/kv-storage-examples/index.mdx

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/content/docs/durable-objects/examples/websocket-hibernation-server.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class_name = "WebSocketHibernationServer"
201201

202202
[[migrations]]
203203
tag = "v1"
204-
new_classes = ["WebSocketHibernationServer"]
204+
new_sqlite_classes = ["WebSocketHibernationServer"]
205205
```
206206

207207
</WranglerConfig>

src/content/docs/durable-objects/examples/websocket-server.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class_name = "WebSocketServer"
205205

206206
[[migrations]]
207207
tag = "v1"
208-
new_classes = ["WebSocketServer"]
208+
new_sqlite_classes = ["WebSocketServer"]
209209
```
210210

211211
</WranglerConfig>

0 commit comments

Comments
 (0)