Expand description
Protocol definitions for dibs CLI-to-service communication.
This crate defines the vox service interface between the dibs CLI
and the user’s db crate (e.g., my-app-db).
The db crate runs as a short-lived vox service, responding to schema and migration queries from the CLI.
Structs§
- Applied
Migration - A migration that was already applied before this run.
- Change
Info - A single schema change.
- Column
Info - Column information.
- Create
Request - Request to create a new row.
- Delete
Request - Request to delete a row.
- Dibs
Service Client - Client for the
DibsServiceservice. - Dibs
Service Dispatcher - Dispatcher for this service.
- Diff
Request - Request to diff schema against a database.
- Diff
Result - Full diff result.
- Filter
- A single filter condition.
- Foreign
KeyInfo - Foreign key information.
- GetRequest
- Request to get a single row by primary key.
- Index
Column Info - A column in an index with optional sort order and nulls ordering.
- Index
Info - Index information.
- List
Request - Request to list rows from a table.
- List
Response - Response from listing rows.
- Migrate
Request - Request to run migrations.
- Migrate
Result - Result of running migrations.
- Migration
Info - Migration status.
- Migration
Log - Log message streamed during migration.
- Migration
Status Request - Request to get migration status.
- RanMigration
- A migration that was just run.
- Row
- A row of data as field name → value pairs.
- RowField
- A single field in a row.
- Schema
Info - The full schema (list of tables).
- Sort
- A sort clause.
- SqlError
- SQL error with context for rich error display.
- Squel
Service Client - Client for the
SquelServiceservice. - Squel
Service Dispatcher - Dispatcher for this service.
- Table
Diff Info - Diff result for a single table.
- Table
Info - Schema information for a table.
- Update
Request - Request to update a row.
Enums§
- Change
Kind - Kind of schema change.
- Dibs
Error - Error from the dibs service.
- Filter
Op - Filter operator for backoffice queries.
- LogLevel
- Log level.
- SortDir
- Sort direction.
- Value
- A runtime value for backoffice queries.
Traits§
- Dibs
Service - The dibs service trait.
- Squel
Service - The Squel service trait - the data plane.