zombiezen/go-sqlite
zombiezen/go-sqlite has 982 GitHub stars and 41 forks. GitHot measured -1 stars in 24 hours and 0 in 7 days. Last checked 2026-11-13 18:09 UTC. Last push 2026-07-17.
可以做什么
- Full SQLite functionality via modernc.org/sqlite, an automatically generated translation of the original C source code of SQLite into Go
- Builds with CGO_ENABLED=0, allowing cross-compiling and data race detection
- Allows access to SQLite-specific features like blob I/O and user-defined functions
- Includes a simple schema migration package
实测星标增长
- 24小时
- -1
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
Low-level Go interface to SQLite 3
数据README.md
原文zombiezen.com/go/sqlite
This package provides a low-level Go interface to SQLite 3.
It is a fork of crawshaw.io/sqlite that uses modernc.org/sqlite,
a CGo-free SQLite package.
It aims to be a mostly drop-in replacement for crawshaw.io/sqlite.
This package deliberately does not provide a database/sql driver.
See David Crawshaw's rationale for an in-depth explanation.
If you want to use database/sql with SQLite without CGo,
use modernc.org/sqlite directly.
Features
- Full SQLite functionality via
modernc.org/sqlite, an automatically generated translation of the original C source code of SQLite into Go - Builds with
CGO_ENABLED=0, allowing cross-compiling and data race detection - Allows access to SQLite-specific features like blob I/O and user-defined functions
- Includes a simple schema migration package
- Utilities for running embedded SQL scripts using the Go 1.16 embedding feature
- A
go fix-like tool for migrating existing code usingcrawshaw.io/sqlite - A simple REPL for debugging
Install
go get zombiezen.com/go/sqlite
While this library does not use CGo, make sure that you are building for one of the supported architectures.
Getting Started
import (
"fmt"
"zombiezen.com/go/sqlite"
"zombiezen.com/go/sqlite/sqlitex"
)
// ...
// Open an in-memory database.
conn, err := sqlite.OpenConn(":memory:", sqlite.OpenReadWrite)
if err != nil {
return err
}
defer conn.Close()
// Execute a query.
err = sqlitex.ExecuteTransient(conn, "SELECT 'hello, world';", &sqlitex.ExecOptions{
ResultFunc: func(stmt *sqlite.Stmt) error {
fmt.Println(stmt.ColumnText(0))
return nil
},
})
if err != nil {
return err
}
If you're creating a new application, see the package examples or the reference docs.
If you're looking to switch existing code that uses crawshaw.io/sqlite,
take a look at the migration docs.
License
探索相关项目
Asabeneh/30-Days-Of-Python
30 Days of Python 编程挑战是一份循序渐进的指南,用于在 30 天内学习 Python 编程语言。这项挑战可能需要超过 100 天。请按自己的节奏进行。这些视频或许也有帮助:https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,696 星标grafana/grafana
开放且可组合的可观测性与数据可视化平台。可对来自 Prometheus、Loki、Elasticsearch、InfluxDB、Postgres 等众多数据源的指标、日志和追踪进行可视化。
77,876 星标redis/redis
对于正在构建实时数据驱动应用的开发者而言,Redis 是首选、速度最快且功能最丰富的缓存、数据结构服务器和文档与向量查询引擎。
77,489 星标apache/superset
Apache Superset 是一个数据可视化与数据探索平台
75,515 星标