Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/schollz/sqlite3dump
- Owner: schollz
- License: mit
- Created: 2018-02-24T17:14:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T18:46:39.000Z (almost 2 years ago)
- Last Synced: 2024-10-18T20:16:43.239Z (27 days ago)
- Topics: backup, golang-library, sql, sqlite3
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 41
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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