@trenskow/pged 5.0.9 → 5.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -15,20 +15,19 @@ const updatedUser = await db.transaction(async () => {
15
15
  await db
16
16
  .from('users')
17
17
  .where({ id: 12 })
18
- .update({ username: 'myusername' })
19
- .go();
18
+ .update({ username: 'myusername' });
20
19
 
21
20
  return await db
22
21
  .from('users')
23
22
  .select('id,username')
24
23
  .first()
25
24
  .where({
26
- $or: {
27
- id: 12,
25
+ $or: [{
28
26
  username: 'myusername'
29
- }
30
- })
31
- .go();
27
+ }, {
28
+ id: 12
29
+ }]
30
+ });
32
31
 
33
32
  });
34
33
  ````
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/pged",
3
- "version": "5.0.9",
3
+ "version": "5.0.10",
4
4
  "description": "Just a silly little db management and query builder for PostgreSQL.",
5
5
  "main": "index.js",
6
6
  "type": "module",