Skip to main content

Crate drasi_source_sqlite

Crate drasi_source_sqlite 

Source
Expand description

SQLite source plugin for Drasi.

This source owns an embedded SQLite connection running in a dedicated thread. Changes are captured through SQLite hooks:

  • preupdate_hook captures row-level INSERT/UPDATE/DELETE events
  • commit_hook flushes buffered changes
  • rollback_hook discards buffered changes

The source supports:

  • file-backed and in-memory SQLite databases
  • optional table filtering
  • optional REST CRUD + transactional batch endpoints
  • bootstrap via pluggable bootstrap providers

Modules§

descriptor
SQLite source plugin descriptor and configuration DTOs.

Structs§

RestApiConfig
Runtime configuration for the optional REST API.
SqliteSource
SQLite source implementation.
SqliteSourceBuilder
Builder for SqliteSource.
SqliteSourceConfig
SQLite source configuration.
SqliteSourceHandle
Cloneable handle for issuing SQL statements against the source-owned connection.
SqliteTxHandle
Transaction-scoped SQL handle.
TableKeyConfig
Element ID key configuration for a SQLite table.

Enums§

SqliteParam
A parameter value for parameterized SQL execution.
StartFrom
Initial start behavior. SQLite source does not use persisted cursors, but this is exposed for API consistency with other source plugins.