@spooky-sync/query-builder 0.0.1-canary.235 → 0.0.1-canary.237

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/AGENTS.md +1 -1
  2. package/package.json +1 -1
package/AGENTS.md CHANGED
@@ -52,7 +52,7 @@ db.query('thread') // QueryBuilder<Schema, 'thread'
52
52
 
53
53
  - **`select()` is exclusive.** Either select specific fields or omit the call for `*` — don't chain `.select(...)` more than once.
54
54
  - **Relationships must exist in the schema.** `related('foo')` is a type error if `foo` isn't a relationship column. Run `spky generate` after editing the `.surql` to refresh the type.
55
- - **`where` is equality-only.** For `>`, `<`, `IN`, free-form predicates, use `db.useRemote(s => s.query(...))` and write SurQL directly.
55
+ - **`where` is equality-only.** For `>`, `<`, `IN`, free-form predicates, use `db.remoteQuery(sql, vars)` (one-shot, through the client's remote path) or `db.queryRaw(sql, params, ttl)` and write SurQL directly.
56
56
  - **Record-ID strings are auto-parsed.** Passing `"thread:abc"` into a `where` matches a `RecordId('thread', 'abc')`. Don't double-wrap.
57
57
  - **The serialized SurQL is hashable.** `cyrb53` over the query string drives cache keys — two builders that produce identical SurQL share a cache entry.
58
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spooky-sync/query-builder",
3
- "version": "0.0.1-canary.235",
3
+ "version": "0.0.1-canary.237",
4
4
  "description": "Type-safe query builder for SurrealDB with relationship support",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",