File: sqlite3dump

package info (click to toggle)
unknown-horizons 2019.1-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 347,924 kB
  • sloc: python: 46,805; xml: 3,137; sql: 1,189; sh: 736; makefile: 39; perl: 35
file content (16 lines) | stat: -rwxr-xr-x 418 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Create a SQL dump of a SQLite database.
#
# This is used to provide diffs of .sqlite files when using Git.
# It needs at least git 1.6.1.
# To set it up, add the following to your ~/.gitconfig or .git/config:
#
# [diff "sqlite"]
#         textconv = sqlite3dump
#
# And make sure this file is in your PATH. Now git log/git diff/gitk/tig/etc.
# should show diffs of the .sqlite files.


sqlite3 "$1" .dump