Skip to content

Commit 173f642

Browse files
committed
Removing ctx.storage.sql from the definitions of the SQL methods.
1 parent 37b694d commit 173f642

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ SQL API methods accessed with `ctx.storage.sql` are only allowed on [Durable Obj
1616

1717
### exec
1818

19-
<code>ctx.storage.sql.exec(query: <Type text='string'/>, ...bindings: <Type text='any[]'/>)</code>: <Type text='SqlStorageCursor' />
19+
<code>exec(query: <Type text='string'/>, ...bindings: <Type text='any[]'/>)</code>: <Type text='SqlStorageCursor' />
2020

2121
#### Parameters
2222

@@ -71,7 +71,7 @@ Note that `sql.exec()` cannot execute transaction-related statements like `BEGIN
7171

7272
### databaseSize
7373

74-
`ctx.storage.sql.databaseSize`: <Type text ='number' />
74+
`databaseSize`: <Type text ='number' />
7575

7676
#### Returns
7777
The current SQLite database size in bytes.

0 commit comments

Comments
 (0)