Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compactor ¶
type Compactor struct {
// contains filtered or unexported fields
}
Compactor merges data from an applied sync into a base sync using SQL ATTACH DATABASE. Both stores must be *dotc1z.C1File (SQLite-backed). An interface-level C1ZStore is accepted for caller convenience, but Compact returns an error if either store is not SQLite-backed.
func NewAttachedCompactor ¶
NewAttachedCompactor builds a Compactor that merges `applied` into `base`. Both arguments are C1ZStore; the constructor type-asserts to *dotc1z.C1File and returns an error on mismatch. This keeps the public entry point clean while confining the SQLite-specific concern to the attached package.
Click to show internal directories.
Click to hide internal directories.