package
Version:
v0.0.0-...-83fcdd0
Opens a new window with list of versions in this module.
Published: Sep 24, 2026
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package db 负责打开 SQLite 并建表。
Open 打开(必要时创建)SQLite 数据库并执行建表。
使用 glebarez/sqlite(纯 Go 驱动),因此可以 CGO_ENABLED=0 静态编译。
连接池限制为 1:写入来自后台任务、读取来自 HTTP 接口,串行化可以彻底避免
SQLITE_BUSY;WAL 与 busy_timeout 进一步提高并发下的稳定性。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.