NewTx wraps an active *sql.Tx transation and returns a SQLBuilder transaction. The adapter needs to be imported to the blank namespace in order for it to be used. This method is internally used by upper-db to create a builder backed by the given transaction. You may want to use your adapter's New
(*sql.Tx)
| 63 | // given transaction. You may want to use your adapter's NewTx function |
| 64 | // instead of this one. |
| 65 | NewTx(*sql.Tx) (Tx, error) |
| 66 | |
| 67 | // Open opens a SQL database. |
| 68 | OpenDSN(db.ConnectionURL) (db.Session, error) |