Skip to content

Pipelines & Events ​

A pipeline runs a fixed sequence of points; plugins attach handlers to a point (<pipeline>.<point>) at a priority, and VDB's own handlers run at priority 10. A handler error stops the pipeline and fails the operation that ran it. An event is a notification after something happened; subscriber errors are logged and change nothing.

Pipelines ​

PipelineRuns whenPoints
vdb.server.startVDB starts, after plugins connectconfigure (persistence plugins return change sets), launch, emit
vdb.connection.openedA client connectsaccept (an error refuses the connection), track, emit
vdb.connection.closedA client disconnectscleanup, release, emit
vdb.query.receivedBefore a statement is parsedintercept (rewrite Query), emit
vdb.transaction.beginA transaction startsauthorize (an error refuses it), emit
vdb.transaction.commitA transaction commits, with its change setapply (persistence plugins below 10), emit
vdb.transaction.rollbackA rollback or rollback to a savepointapply, emit
vdb.records.sourceEach batch of Source rows, only when a plugin is attachedtransform, emit
vdb.records.mergedEach batch of merged rows, only when a plugin is attachedtransform, emit
vdb.write.insert, .update, .delete, .truncateEach writeapply, emit

Every pipeline also starts with a build_context point. A plugin, written in any language, receives each payload as a JSON object and returns it, changed or not. Connection IDs are integers; a row is an array of column values in the order of the payload's Columns, each a string when its bytes are valid UTF-8, null for SQL NULL, and {"base64": "..."} otherwise.

Events ​

EventWhen
vdb.server.stoppedVDB has stopped
vdb.connection.opened, vdb.connection.closedA client connected or disconnected
vdb.transaction.started, .committed, .rolledbackA transaction began, committed (with its change set) or rolled back
vdb.query.completedA statement finished: duration, rows, error code
vdb.record.inserted, .updated, .deletedRows were written to the Delta
vdb.table.truncatedA table was truncated and detached from the Source
vdb.schema.loaded, vdb.schema.invalidatedA table was discovered; a table was changed by the Source or a client
vdb.source.requestedVDB read the Source: shape, table, duration, rows, bytes
vdb.snapshot.expiredA Source snapshot reached its age limit
vdb.limit.reachedThe memory or lock limit refused work
vdb.key.conflictA Source row was hidden by a Delta row with the same key

Released under the Elastic License 2.0.