Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/at15/sqlite3
A pure go package for reading sqlite3 database file
https://github.com/at15/sqlite3
Last synced: about 1 month ago
JSON representation
A pure go package for reading sqlite3 database file
- Host: GitHub
- URL: https://github.com/at15/sqlite3
- Owner: at15
- License: mit
- Created: 2020-08-16T01:42:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-16T14:22:27.000Z (over 4 years ago)
- Last Synced: 2023-08-06T06:38:48.586Z (over 1 year ago)
- Language: Go
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sqlite3
A pure go package for reading sqlite3 database file.
## Motivation
I need to read sqlite3 database file on windows. There is an existing [sqlite3 cgo binding](http20github.com/mattn/go-sqlite3).
However a pure go version is more portable and easier to compile.## Alternative
Export to csv using sqlite3 binary, e.g. write `a.txt` and shell out to `sqlite3`
```
.mode csv
.output data.csv
SELECT * FROM page_views LIMIT 100
``````bash
sqlite3 foo.db < a.txt
```