You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add State Persistence section to publishing guide
Documents PR #503 which adds DuckDB-based state persistence:
- How state persistence works (config sync to DB)
- The --init flag to reinitialize from config
- Mutable vs frozen configuration (frozenConfig option)
- Storage location (publisher.db, publisher_data/)
Signed-off-by: James Swirhun <james@ms2.co>
Copy file name to clipboardExpand all lines: src/documentation/user_guides/publishing/publishing.malloynb
+53Lines changed: 53 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -187,6 +187,59 @@ See the [REST API](rest_api.malloynb) documentation for all available endpoints.
187
187
188
188
---
189
189
190
+
## State Persistence
191
+
192
+
Publisher persists configuration changes in a local DuckDB database (`publisher.db`). This means changes made via the REST API—adding projects, packages, or connections—survive server restarts.
193
+
194
+
### How It Works
195
+
196
+
1. **First start**: Publisher reads `publisher.config.json` and syncs it to `publisher.db`
197
+
2. **Subsequent starts**: Publisher loads from the database, ignoring config file changes
198
+
3. **API changes**: Adding/removing projects, packages, or connections updates the database
199
+
200
+
### Reinitializing from Config
201
+
202
+
To reset the database and reload from `publisher.config.json`:
0 commit comments