README ¶ sqlitediff go sqlite databases diff tool Installation go get github.com/vazrupe/sqlitediff Usage import ( ... "github.com/vazrupe/sqlitediff" ... ) ... d, err := sqlitediff.Diff(YOUR_BEFORE_DBNAME, YOUR_AFTER_DBNAME) ... License MIT Lisense. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type DiffDatabase func Diff(before, after string) (*DiffDatabase, error) type DiffTable Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DiffDatabase ¶ type DiffDatabase struct { ChanageTables map[string]DiffTable AddTables []string RemoveTables []string } DiffDatabase change database info func Diff ¶ func Diff(before, after string) (*DiffDatabase, error) Diff returns Diff datas type DiffTable ¶ type DiffTable struct { Name string ChangeSchema bool BeforeSQL string AfterSQL string ChangeRows []int64 AddRows []int64 RemoveRows []int64 } DiffTable is one table's difference before and after rows RemoveRows is BeforeTable data Source Files ¶ View all Source files diff.gohashs.go Click to show internal directories. Click to hide internal directories.