Socket
Socket
Sign inDemoInstall

github.com/go-sqlite/sqlite3

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/go-sqlite/sqlite3

Package sqlite3 decodes the SQLite-3 file format.


Version published

Readme

Source

sqlite3

GoDoc Build Status

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!

FAQs

Last updated on 13 Mar 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc