Sqlite3
pure-Go sqlite3 file reader
Install / Use
/learn @go-sqlite/Sqlite3README
sqlite3
sqlite3 is a pure Go package decoding the SQLite file format as
described by:
http://www.sqlite.org/fileformat.html
Current status
WIP: The near-term aim for sqlite3 is to iterate through the
data in tables in SQLite files: ie., readonly access, and no actual
SQL queries.
It doesn't quite do that yet: so far it just parses the
sqlite_master data enough to find a list of tables and their names.
Installation
$ go get github.com/go-sqlite/sqlite3
License
sqlite3 is released under the BSD-3 license.
Example
package main
import (
"fmt"
"github.com/go-sqlite/sqlite3"
)
func main() {
db, err := sqlite3.Open("test.sqlite")
if err != nil {
panic(err)
}
defer db.Close()
for _, table := range db.Tables() {
fmt.Printf(">>> table=%#v\n", table)
}
}
Contributing
We're always looking for new contributing finding bugs, fixing issues, or writing some docs. If you're interested in contriburing source code changes you'll just need to pull down the source code. You can run tests with go test ./... in the root of this project.
Make sure to add yourself to AUTHORS and CONTRIBUTORS if you submit a PR. We want you to take credit for your work!
Related Skills
xurl
342.0kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
feishu-drive
342.0k|
things-mac
342.0kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
342.0kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
