sqlitedb

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package sqlitedb 以原生 SQLite 打开服务的本地数据库

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

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

Open 打开或创建数据库,非增量收缩的已有库先整理为增量收缩,再交还空闲页

func Reclaim

func Reclaim(ctx context.Context, db *sql.DB) error

Reclaim 把空闲页交还文件系统并截短 WAL 文件,incremental_vacuum 每交还一页返回一行,读完全部行才交还全部空闲页

Types

This section is empty.

Jump to

Keyboard shortcuts

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