Interface SnapshotDialect
- All Known Implementing Classes:
AbstractJdbcDialect,H2Dialect,MysqlDialect,PostgresDialect,SqliteDialect
public interface SnapshotDialect
Table-domain dialect interface for the snapshots table.
Stores binary workspace tar archives keyed by snapshot_id.
Method names are prefixed with snapshot to avoid collision when
the aggregate class implements multiple table-domain interfaces.
- Author:
- shanhongyu
-
Method Summary
Modifier and TypeMethodDescriptionDDL statements (one or more) to create the snapshots table.default BoundSqlsnapshotExists(String snapshotId) Snapshot existence probe.default BoundSqlsnapshotSelect(String snapshotId) Single-snapshot SELECT.default StringBase table name (without prefix).snapshotUpsert(String snapshotId, InputStream data) Idempotent UPSERT for uploading a snapshot.
-
Method Details
-
snapshotTableName
Base table name (without prefix). -
snapshotCreateTableDdls
DDL statements (one or more) to create the snapshots table. Must be idempotent. -
snapshotUpsert
Idempotent UPSERT for uploading a snapshot.The
dataparam is bound as a binary stream viaPreparedStatement.setBinaryStream(int, InputStream)by the client, so snapshots of arbitrary size are streamed straight to the database without loading the whole archive into heap memory. -
snapshotSelect
Single-snapshot SELECT. Projection: data. -
snapshotExists
Snapshot existence probe.
-