@rindle/sql-client 0.8.0 → 0.9.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 +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,9 @@ the schema subset: [rindle.sh/docs/schema](https://rindle.sh/docs/schema) · for
|
|
|
13
13
|
import { createSqlClient } from "@rindle/sql-client";
|
|
14
14
|
|
|
15
15
|
const sql = createSqlClient({
|
|
16
|
-
|
|
16
|
+
// `rindle dev` / `rindle exec` inject this. Don't hardcode a local port: each project gets its
|
|
17
|
+
// own block, so the write-master's URL differs per checkout.
|
|
18
|
+
url: process.env.RINDLE_REPLICATOR_URL!,
|
|
17
19
|
authToken: process.env.RINDLE_DATABASE_TOKEN!,
|
|
18
20
|
});
|
|
19
21
|
|
|
@@ -42,7 +44,7 @@ commits:
|
|
|
42
44
|
```ts
|
|
43
45
|
const api = createRindleApiServer({
|
|
44
46
|
daemon, // named queries, materializations, and rooms
|
|
45
|
-
database: { url: process.env.RINDLE_REPLICATOR_URL
|
|
47
|
+
database: { url: process.env.RINDLE_REPLICATOR_URL!, authToken: process.env.RINDLE_DATABASE_TOKEN! },
|
|
46
48
|
schema,
|
|
47
49
|
queries,
|
|
48
50
|
mutators,
|