marcidb-client 0.11.4 → 0.12.0

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.
package/README.md CHANGED
@@ -49,11 +49,10 @@ import { marcidb } from "marcidb-client";
49
49
 
50
50
  const db = marcidb("http://localhost:3000");
51
51
 
52
- // Find
53
- const users = await db.user.findMany({
54
- id: true,
55
- name: true,
56
- });
52
+ // Find — a chainable query; no select = id + every scalar
53
+ const users = await db.user.where({ name: { $startsWith: "A" } }).order("id", "desc").limit(20);
54
+ const named = await db.user.select({ id: true, name: true });
55
+ const one = await db.user.where({ id: 1 }).first();
57
56
 
58
57
  // Insert
59
58
  const id = await db.user.insert({
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "marcidb-client",
3
3
  "type": "module",
4
- "version": "0.11.4",
4
+ "version": "0.12.0",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "den59k"