CLI
riverbase_form ships a binary behind its cli feature. Install it from the repository:
cargo install --git https://github.com/riverbase-io/riverbase riverbase_form --features cli
The binary reads RIVERBASE_* configuration like a service, for example RIVERBASE_DB_URL.
riverbase_form
Form and document spec tooling. See riverbase_form.
riverbase_form validate specs/ # checks elements/, forms/, documents/
riverbase_form codegen --elements specs/elements --out-rs src/generated --out-migrations migrations/
| Subcommand | Options |
|---|---|
validate <DIR> | A base directory containing elements/, forms/, and/or documents/ |
codegen | --elements <DIR>, --out-rs <DIR> (writes mod.rs, schema.rs, entities.rs), --out-migrations <DIR> (SQL) |
codegen turns element specs into Diesel schema, entity code, and SQL migrations, so form data
persists in ordinary typed tables.