interface
VersionTransaction
Same-transaction snapshot persistence and access-filtered history reads.
Properties
| Property | Type | Description |
|---|---|---|
SaveVersion | func(context.Context, | The SaveVersion value. |
ListVersions | func(context.Context, | The ListVersions value. |
CountVersions | func(context.Context, | CountVersions counts retained snapshots with the same access and locale predicates as ListVersions, without reading snapshot values into the result. |
FindVersion | func(context.Context, | The FindVersion value. |
Full signature
type VersionTransaction interface {
SaveVersion(context.Context, schema.Collection, Document, int) (Version, error)
ListVersions(context.Context, VersionRequest) ([]Version, error)
// CountVersions counts retained snapshots with the same access and locale
// predicates as ListVersions, without reading snapshot values into the result.
CountVersions(context.Context, VersionRequest) (int, error)
FindVersion(context.Context, schema.Collection, string, int) (Version, error)
}