ent/migrate: add writedriver for dumping sql exec commands

Reviewed By: alexsn

Differential Revision: D17200893

fbshipit-source-id: 09ec631b5a52d617d0ee97bda81c52f67486889e
This commit is contained in:
Ariel Mashraki
2019-09-08 06:00:00 -07:00
committed by Facebook Github Bot
parent 397ff3b79d
commit 6c20ef1d3a
3 changed files with 93 additions and 1 deletions

View File

@@ -100,7 +100,7 @@ func (d *DebugDriver) Tx(ctx context.Context) (Tx, error) {
return &DebugTx{tx, id, d.log}, nil
}
// DebugTx is a driver that logs all transaction operations.
// DebugTx is a transaction implementation that logs all transaction operations.
type DebugTx struct {
Tx // underlying transaction.
id string // transaction logging id.