enhance: bb task for creating graphs from EDN file

Converted inferred graph to an EDN file now that this task exists. Also
merge last of tasks.create-graph to relevant ns so that external users
can also create such tasks
This commit is contained in:
Gabriel Horner
2024-06-11 10:03:02 -04:00
parent 2d3f152454
commit 0e1ada2ef6
12 changed files with 151 additions and 117 deletions

View File

@@ -387,6 +387,20 @@ These tasks are specific to database graphs. For these tasks there is a one time
Updated 16 block(s) for graph test-db!
```
* `dev:db-create` - Create a DB graph given a `sqlite.build` EDN file
First in Electron, create the name of the graph you want create e.g. `inferred`.
Then:
```sh
bb dev:db-create inferred deps/db/script/create_graph/inferred.edn
Generating 11 pages and 0 blocks ...
Created graph inferred!
```
Finally, upload this created graph with the dev command: `Replace graph with`
... Switch to the graph and you can use the created graph!
* `dev:db-datoms` and `dev:diff-datoms` - Save a db's datoms to file and diff two datom files
```sh