sqliteio

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 7 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 sqliteio 通过系统 sqlite3 命令行工具只读查询本地 SQLite 文件。

仅由本包树内的 provider 使用;SQL 必须是 provider 控制的常量,参数来自受 约束的 CookieQuery。任何失败的错误都是静态分类,绝不包含路径、SQL、命令 输出或参数值。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

func Query(ctx context.Context, dbPath, sql string, params map[string]string) ([][]string, error)

Query 在 dbPath 上以只读方式执行 sql。参数通过 sqlite3 CLI 的 `.parameter set` 绑定(不进行 SQL 字符串拼接)。返回 CSV 行(每行按 SELECT 列序)。

分类错误:

  • 数据库被浏览器锁定时返回 browsercookies.ErrDatabaseLocked;
  • sqlite3 命令缺失时返回 browsercookies.ErrSQLiteUnavailable;
  • 其余失败返回 browsercookies.ErrQueryFailed。

Types

This section is empty.

Jump to

Keyboard shortcuts

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