anbaric 1.21.0 → 1.21.2
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 +2 -2
- package/docs/api/environment.md +2 -4
- package/docs/features/sql-store.md +3 -4
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -273,8 +273,8 @@ to the platform automatically. The same applies to `JsonStoreFactory`
|
|
|
273
273
|
`SqlStoreFactory` (a relational store) from `anbaric-data-store`.
|
|
274
274
|
|
|
275
275
|
The SQL store is backed by SQLite locally (in-memory by default) and, once
|
|
276
|
-
deployed, by the tenant's PostgreSQL in a
|
|
277
|
-
|
|
276
|
+
deployed, by the tenant's PostgreSQL in a dedicated `anbaric_app_data` schema
|
|
277
|
+
shared by the tenant's apps. Write portable SQL where you can — the two
|
|
278
278
|
differ in a few places, notably parameter placeholders (`?` for SQLite, `$1`
|
|
279
279
|
for PostgreSQL); see the [`anbaric-data-store`](anbaric-data-store/README.md)
|
|
280
280
|
docs for the full list.
|
package/docs/api/environment.md
CHANGED
|
@@ -43,9 +43,7 @@ Used by the store implementations the factories return:
|
|
|
43
43
|
| --- | --- | --- |
|
|
44
44
|
| `ANBARIC_SQL_FILE` | SQLite | file path to persist to (default `:memory:`) |
|
|
45
45
|
| `ANBARIC_SQL_DATABASE_URL` | PostgreSQL | connection string |
|
|
46
|
-
|
|
47
|
-
Deployed, the PostgreSQL schema defaults to your **app's name** (each app gets
|
|
48
|
-
its own, isolated schema); pass a schema to the store constructor to override.
|
|
46
|
+
| `ANBARIC_SQL_SCHEMA` | PostgreSQL | schema name (default `anbaric_app_data`) |
|
|
49
47
|
|
|
50
48
|
## Platform-injected variables
|
|
51
49
|
|
|
@@ -55,7 +53,7 @@ set or depend on their exact values**:
|
|
|
55
53
|
| Variable | Meaning |
|
|
56
54
|
| --- | --- |
|
|
57
55
|
| `PORT` | the port your app should listen on |
|
|
58
|
-
| `ANBARIC_APP_ID` | your app's name; scopes your workflows, documents
|
|
56
|
+
| `ANBARIC_APP_ID` | your app's name; scopes your workflows, documents and secrets |
|
|
59
57
|
| `ANBARIC_CLOUD_URL` | the platform endpoint the cloud clients call |
|
|
60
58
|
| `ANBARIC_ADMIN_PORT` | the built-in admin/liveness port |
|
|
61
59
|
| `ANBARIC_CONSUMER_PORT` / `ANBARIC_CONSUMER_URL` | job-consumer wiring |
|
|
@@ -50,10 +50,9 @@ on each. (A future helper may smooth this over; for now, be aware of it.)
|
|
|
50
50
|
|
|
51
51
|
- **Local** — SQLite, in-memory by default. Set `ANBARIC_SQL_FILE` to persist to
|
|
52
52
|
a file on disk.
|
|
53
|
-
- **Deployed** — PostgreSQL, in a schema
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
schema instead, pass one to the store constructor.
|
|
53
|
+
- **Deployed** — PostgreSQL, in a dedicated schema (`anbaric_app_data` by
|
|
54
|
+
default) shared by the tenant's apps and kept apart from the platform's own
|
|
55
|
+
schemas. The platform provides the connection; you don't configure it.
|
|
57
56
|
|
|
58
57
|
Selection is by `ANBARIC_SQL_STORE_TYPE` (`sqlite` locally, `cloud`/`postgres`
|
|
59
58
|
deployed) — set by the platform. See [Environment and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anbaric",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.2",
|
|
4
4
|
"description": "Everything needed to write an Anbaric app: state machines, jobs, document and secret stores, local in-memory implementations and the Anbaric Cloud clients",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"postpack": "rm -f README.md && ln -s ../README.md README.md"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"anbaric-impl-cloud": "^1.21.
|
|
19
|
-
"anbaric-data-store": "^1.21.
|
|
20
|
-
"anbaric-state-machine": "^1.21.
|
|
21
|
-
"anbaric-tsapi": "^1.21.
|
|
18
|
+
"anbaric-impl-cloud": "^1.21.2",
|
|
19
|
+
"anbaric-data-store": "^1.21.2",
|
|
20
|
+
"anbaric-state-machine": "^1.21.2",
|
|
21
|
+
"anbaric-tsapi": "^1.21.2"
|
|
22
22
|
}
|
|
23
23
|
}
|