mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
ent/migrate: add writedriver for dumping sql exec commands
Reviewed By: alexsn Differential Revision: D17200893 fbshipit-source-id: 09ec631b5a52d617d0ee97bda81c52f67486889e
This commit is contained in:
committed by
Facebook Github Bot
parent
397ff3b79d
commit
6c20ef1d3a
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user