Ensure the target schema/collection exists for a table. Creates it if it doesn't exist, using a sample row to infer column types.
Table name to create.
A sample row to derive schema from.
Write a batch of rows to the target. Uses INSERT OR REPLACE / upsert semantics to handle duplicates.
Table name to write to.
Array of row objects.
Number of rows successfully written.
Optional scopeThese brains as the target holds them, with their scope-id forms, for the handshake the engine runs before it copies any table; a brain the target does not hold reads as holding nothing. With no ids, every brain the target holds. A Qdrant target reads its sidecar, and counts a brain the sidecar holds as holding traces whose scope ids the two forms read apart, since its traces are in Qdrant; one with no sidecar leaves it out.
Optional brainIds: readonly string[]Optional clear
Adapter for writing data to a migration target backend. Implementations exist for SQLite, Postgres, and Qdrant.