We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f298aeb commit b68da97Copy full SHA for b68da97
src/content/docs/durable-objects/api/storage-api.mdx
@@ -91,14 +91,16 @@ export class MyDurableObject extends DurableObject {
91
super(ctx, env);
92
this.sql = ctx.storage.sql;
93
94
- this.sql.exec(`CREATE TABLE IF NOT EXISTS artist(
95
- artistid INTEGER PRIMARY KEY,
96
- artistname TEXT
97
- );INSERT INTO artist (artistid, artistname) VALUES
98
- (123, 'Alice'),
99
- (456, 'Bob'),
100
- (789, 'Charlie');`
101
- );
+ this.sql.exec(`
+ CREATE TABLE IF NOT EXISTS artist(
+ artistid INTEGER PRIMARY KEY,
+ artistname TEXT
+ );
+ INSERT INTO artist (artistid, artistname) VALUES
+ (123, 'Alice'),
+ (456, 'Bob'),
102
+ (789, 'Charlie');
103
+ `);
104
}
105
106
````
0 commit comments