@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.
- package/AGENTS.md +1 -1
- 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.
|
|
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