Documentation
¶
Overview ¶
Package sqlite provides the official single-owner SQLite implementation of workspace.Store. The transport-neutral workspace package does not import this adapter or the SQLite driver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInUse means another live resource owns the same SQLite journal file. ErrInUse = errors.New("workspace/sqlite: apply journal is already in use") // ErrUnsupportedSchema means the file is neither empty nor the exact schema // supported by this clean-break adapter. ErrUnsupportedSchema = errors.New("workspace/sqlite: unsupported apply journal schema; recreate database") )
Functions ¶
func Open ¶
Open initializes a clean-break schema, takes exclusive process ownership, then atomically terminalizes every pending row recovered from a previous owner. It never invokes a workspace.CASApplier during recovery. The returned owned Resource must be released after every consumer has stopped using it.
Types ¶
Click to show internal directories.
Click to hide internal directories.