How to seed SpiceDB?
# spicedb
d
Hi guys, is there a way to populate the database with relationships upon booting a new environment? Similar to a seed script for a SQL database.
v
You can with the the bootstrap flags:
Copy code
--datastore-bootstrap-files strings                             bootstrap data yaml files to load
      --datastore-bootstrap-overwrite                                 overwrite any existing data with bootstrap data
      --datastore-bootstrap-timeout duration                          maximum duration before timeout for the bootstrap data to be written (default 10s)
d
Thank you. Where in the documentation would I be able to find this?
v
this is something you can find when calling
spicedb serve --help
I'm not 100% we have this documented in the docs, let me check
nope, not on the docs. Feel free to open an issue in https://github.com/authzed/docs
6 Views