Skip to content

Releases: bhaveshdev09/sql-executor

v0.1.0 — Initial release

Choose a tag to compare

@bhaveshdev09 bhaveshdev09 released this 20 Jun 08:01

Here First release of sql-executor: a backend-agnostic stored-procedure / SQL executor for SQL Server (pyodbc), built around a pluggable BaseSqlExecutor base class.

Features

  • BaseSqlExecutor — abstract base handling cursor lifecycle, commit/rollback, fetch-to-dict, chunked streaming, and error wrapping. New backends only implement _connect() and _call_procedure_sql().
  • SqlServerExecutor — concrete SQL Server implementation via pyodbc.
  • FakeExecutor — in-memory test double for unit tests, no real DB needed.
  • DatabaseError — failures are always raised, never silently swallowed as None/False.
  • call_procedure(), execute(), stream(), stream_procedure() for stored procedures, raw SQL, and chunked large result sets.

Installation

```bash
pip install sql-executor
```

See the docs for usage and examples on adding a new backend.