QueryExecutor abstracts database query execution, allowing both local (*sql.DB) and remote (Arrow Flight SQL) backends.
| 45 | Err() error |
| 46 | } |
| 47 | |
| 48 | // ExecResult represents the result of a non-query execution. |
| 49 | type ExecResult interface { |
| 50 | RowsAffected() (int64, error) |
| 51 | } |
| 52 | |
| 53 | // RawConn provides access to the underlying driver connection. |
| 54 | // *sql.Conn satisfies this interface. |
| 55 | type RawConn interface { |
| 56 | Raw(func(any) error) error |
| 57 | Close() error |
| 58 | } |
| 59 | |
| 60 | // QueryExecutor abstracts database query execution, allowing both local |
| 61 | // (*sql.DB) and remote (Arrow Flight SQL) backends. |
| 62 | type QueryExecutor interface { |
| 63 | QueryContext(ctx context.Context, query string, args ...any) (RowSet, error) |
no outgoing calls
no test coverage detected