sqlite

package
v0.0.0-...-d4e4f65 Latest Latest
Warning

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

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

Documentation

Overview

Package sqlite provides SQLite3-backed implementations of all LinkSelf storage interfaces. It uses a single WAL-mode database file and manages schema migrations via PRAGMA user_version.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

DB wraps a single SQLite3 connection and exposes typed storage accessors.

func Open

func Open(path string) (*DB, error)

Open opens (or creates) a SQLite3 database at path, enables WAL mode, and runs any pending schema migrations. Use ":memory:" for testing.

func (*DB) Close

func (db *DB) Close() error

Close closes the underlying database connection.

func (*DB) DeviceStorage

func (db *DB) DeviceStorage() devicesync.DeviceStorage

DeviceStorage returns a devicesync.DeviceStorage backed by this DB.

func (*DB) GroupStore

func (db *DB) GroupStore() group.Store

GroupStore returns a group.Store backed by this DB.

func (*DB) NetworkStore

func (db *DB) NetworkStore() network.Store

NetworkStore returns a network.Store backed by this DB.

func (*DB) RecordStorage

func (db *DB) RecordStorage() syncdb.RecordStorage

RecordStorage returns a syncdb.RecordStorage backed by this DB.

func (*DB) SharedStorage

func (db *DB) SharedStorage() groupshare.SharedStorage

SharedStorage returns a groupshare.SharedStorage backed by this DB.

func (*DB) SubscriptionStore

func (db *DB) SubscriptionStore() groupshare.SubscriptionStore

SubscriptionStore returns a groupshare.SubscriptionStore backed by this DB.

Jump to

Keyboard shortcuts

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