New wraps an active *sql.DB session and returns a SQLBuilder database. The adapter needs to be imported to the blank namespace in order for it to be used here. This method is internally used by upper-db to create a builder backed by the given database. You may want to use your adapter's New funct
(*sql.DB)
| 54 | // given database. You may want to use your adapter's New function instead of |
| 55 | // this one. |
| 56 | New(*sql.DB) (db.Session, error) |
| 57 | |
| 58 | // NewTx wraps an active *sql.Tx transation and returns a SQLBuilder |
| 59 | // transaction. The adapter needs to be imported to the blank namespace in |
no outgoing calls