Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/schollz/sqlite3dump

A Golang library for dumping SQL text
https://github.com/schollz/sqlite3dump

backup golang-library sql sqlite3

Last synced: 14 days ago
JSON representation

A Golang library for dumping SQL text

Awesome Lists containing this project

README

        


sqlitedump


Code Coverage
Code Coverage

This is a Golang port of [Python's `sqlite3 .iterdump()`](https://github.com/python/cpython/blob/3.6/Lib/sqlite3/dump.py) command. This is written to use [mattn/go-sqlite3](https://github.com/mattn/go-sqlite3). Both are supposed to be functionally equivalent to `sqlite3 DATABASE .dump`.

There is also a command-line tool that you can use.

```
$ go get github.com/schollz/sqlite3dump/...
$ sqlite3dump database.db > database.sql
```

# License

MIT