NewLocalExecutor creates a new LocalExecutor wrapping the given *sql.DB.
(db *sql.DB)
| 27 | |
| 28 | // NewLocalExecutor creates a new LocalExecutor wrapping the given *sql.DB. |
| 29 | func NewLocalExecutor(db *sql.DB) *LocalExecutor { |
| 30 | return &LocalExecutor{db: db} |
| 31 | } |
| 32 | |
| 33 | // DB returns the underlying *sql.DB (for credential refresh and other direct access). |
| 34 | func (e *LocalExecutor) DB() *sql.DB { |
no outgoing calls