Skip to content

Files

Latest commit

Oct 12, 2021
126c4f5 · Oct 12, 2021

History

History
41 lines (30 loc) · 906 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 906 Bytes

sqldiffer

中文 | English

A wrapper of SQLite sqldiff util for use with git diff.

Build

This repo is a Nimble package with some code written in Nim.

Before you get started, set up your Nim environment (by choosenim or manual installation), install SQLite sqldiff util and make sure they are working.

To build it, simply treat it as a usual Nimble package like:

nimble build

Then install it into your $(PATH) use something like:

install sqldiffer /usr/local/bin

Usage

To use it as a external differ for git diff, you may edit your gitconfig and gitattributes following the instructions in their man pages after placing the tool in your $(PATH).

For example, in gitconfig adds:

[diff sqldiffer]
command=sqldiffer

In gitattributes adds:

*.db3 diff=sqldiffer
*.sqlite3 diff=sqldiffer