An open API service indexing awesome lists of open source software.

https://github.com/kawakami-o3/go-sqlite3-utils

Libraries for manipulating a SQLite file
https://github.com/kawakami-o3/go-sqlite3-utils

golang sqlite

Last synced: 3 days ago
JSON representation

Libraries for manipulating a SQLite file

Awesome Lists containing this project

README

          

# go-sqlite-utils
[![Go Report Card](https://goreportcard.com/badge/github.com/kawakami-o3/go-sqlite3-utils)](https://goreportcard.com/report/github.com/kawakami-o3/go-sqlite3-utils)
[![Build Status](https://travis-ci.org/kawakami-o3/go-sqlite3-utils.svg?branch=master)](https://travis-ci.org/kawakami-o3/go-sqlite3-utils)

Pure Go Libraries for manipulating a SQLite file.

## Installation

```
go get github.com/kawakami-o3/go-sqlite3-utils
```

## Usage

Load the SQLite file, ```/tmp/test.db```,

```
sqlite3utils.Load("/tmp/test.db")
```

Get the first value at the second row in the table, "person",

```
pages.Tables["person"].Entries[1].Datas[0].Value
```

## Todo

- [x] Complicated file: Now, the parser can read wc.db of subversion.
- [x] Overflow page
- [ ] Schema parser
- [ ] Index page
- [ ] Writer