Skip to content

Commit b68da97

Browse files
authored
Adjust awkward spacing in sql string literal
1 parent f298aeb commit b68da97

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,16 @@ export class MyDurableObject extends DurableObject {
9191
super(ctx, env);
9292
this.sql = ctx.storage.sql;
9393

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-
);
94+
this.sql.exec(`
95+
CREATE TABLE IF NOT EXISTS artist(
96+
artistid INTEGER PRIMARY KEY,
97+
artistname TEXT
98+
);
99+
INSERT INTO artist (artistid, artistname) VALUES
100+
(123, 'Alice'),
101+
(456, 'Bob'),
102+
(789, 'Charlie');
103+
`);
102104
}
103105
}
104106
````

0 commit comments

Comments
 (0)