entc/gen: add the sql/execquery feature flag (#2447)

This commit is contained in:
Ariel Mashraki
2022-04-06 13:34:22 +03:00
committed by GitHub
parent 4f17a84dfa
commit 89c339209e
13 changed files with 229 additions and 8 deletions

View File

@@ -62,8 +62,8 @@ func (d *Driver) BeginTx(ctx context.Context, opts *TxOptions) (dialect.Tx, erro
return nil, err
}
return &Tx{
ExecQuerier: Conn{tx},
Tx: tx,
Conn: Conn{tx},
Tx: tx,
}, nil
}
@@ -72,7 +72,7 @@ func (d *Driver) Close() error { return d.DB().Close() }
// Tx implements dialect.Tx interface.
type Tx struct {
dialect.ExecQuerier
Conn
driver.Tx
}