preparing for db access

This commit is contained in:
Shlomi Noach 2016-04-01 16:05:54 +02:00
parent f5b276415a
commit 1b8c5ff286
3 changed files with 11 additions and 1 deletions

View File

@ -88,6 +88,10 @@ func (this *GoMySQLReader) ReadEntries(logFile string, startPos uint64, stopPos
} else {
ev.Dump(os.Stdout)
}
// TODO : convert to entries
// need to parse multi-row entries
// insert & delete are just one row per db orw
// update: where-row_>values-row, repeating
}
}
log.Debugf("done")

View File

@ -18,7 +18,7 @@ func init() {
log.SetLevel(log.ERROR)
}
func TestRBRSample0(t *testing.T) {
func __TestRBRSample0(t *testing.T) {
testFile, err := os.Open("testdata/rbr-sample-0.txt")
test.S(t).ExpectNil(err)
defer testFile.Close()

6
go/mysql/inspect.go Normal file
View File

@ -0,0 +1,6 @@
/*
Copyright 2016 GitHub Inc.
See https://github.com/github/gh-osc/blob/master/LICENSE
*/
package mysql