Skip to main content

Crate dibs_proto

Crate dibs_proto 

Source
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§

AppliedMigration
A migration that was already applied before this run.
ChangeInfo
A single schema change.
ColumnInfo
Column information.
CreateRequest
Request to create a new row.
DeleteRequest
Request to delete a row.
DibsServiceClient
Client for the DibsService service.
DibsServiceDispatcher
Dispatcher for this service.
DiffRequest
Request to diff schema against a database.
DiffResult
Full diff result.
Filter
A single filter condition.
ForeignKeyInfo
Foreign key information.
GetRequest
Request to get a single row by primary key.
IndexColumnInfo
A column in an index with optional sort order and nulls ordering.
IndexInfo
Index information.
ListRequest
Request to list rows from a table.
ListResponse
Response from listing rows.
MigrateRequest
Request to run migrations.
MigrateResult
Result of running migrations.
MigrationInfo
Migration status.
MigrationLog
Log message streamed during migration.
MigrationStatusRequest
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.
SchemaInfo
The full schema (list of tables).
Sort
A sort clause.
SqlError
SQL error with context for rich error display.
SquelServiceClient
Client for the SquelService service.
SquelServiceDispatcher
Dispatcher for this service.
TableDiffInfo
Diff result for a single table.
TableInfo
Schema information for a table.
UpdateRequest
Request to update a row.

Enums§

ChangeKind
Kind of schema change.
DibsError
Error from the dibs service.
FilterOp
Filter operator for backoffice queries.
LogLevel
Log level.
SortDir
Sort direction.
Value
A runtime value for backoffice queries.

Traits§

DibsService
The dibs service trait.
SquelService
The Squel service trait - the data plane.

Functions§

dibs_service_service_descriptor
squel_service_service_descriptor