attached

package
v0.8.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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

func NewAttachedCompactor(base, applied dotc1z.C1ZStore) (*Compactor, error)

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.

func (*Compactor) Compact added in v0.6.11

func (c *Compactor) Compact(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL