Skip to content

Commit 91427a1

Browse files
committed
Whitespace.
1 parent a9aaa4e commit 91427a1

File tree

1 file changed

+5
-1
lines changed
  • client-sdk-references/javascript-web/javascript-orm

1 file changed

+5
-1
lines changed

client-sdk-references/javascript-web/javascript-orm/drizzle.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Below are examples comparing Drizzle and PowerSync syntax for common database op
9797
const result = await powerSyncDb.getAll('SELECT * from users');
9898
9999
// [{ id: '1', name: 'user1' }, { id: '2', name: 'user2' }]
100+
100101
````
101102
102103
</CodeGroup>
@@ -117,6 +118,7 @@ await powerSyncDb.execute('INSERT INTO users (id, name) VALUES(1, ?)', ['John'])
117118
const result = await powerSyncDb.getAll('SELECT * from users');
118119
119120
// [{ id: '1', name: 'John' }]
121+
120122
````
121123
122124
</CodeGroup>
@@ -139,6 +141,7 @@ await powerSyncDb.execute(`DELETE FROM users WHERE name = ?`, ['Ben']);
139141
const result = await powerSyncDb.getAll('SELECT * from users');
140142
141143
// []
144+
142145
````
143146
144147
</CodeGroup>
@@ -161,6 +164,7 @@ await powerSyncDb.execute('UPDATE users SET name = ? WHERE name = ?', ['Lucy Smi
161164
const result = await powerSyncDb.get('SELECT name FROM users WHERE name = ?', ['Lucy Smith'])
162165
163166
// 'Lucy Smith'
167+
164168
````
165169
166170
</CodeGroup>
@@ -191,7 +195,7 @@ await powerSyncDb.writeTransaction((transaction) => {
191195
const result = await powerSyncDb.get('SELECT name FROM users WHERE name = ?', ['James Smith'])
192196

193197
// 'James Smith'
198+
194199
```
195200
196201
</CodeGroup>
197-
````

0 commit comments

Comments
 (0)