Pymssql-utils

Latest version: v0.4.2

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.4.2

Changed
- `DatabaseResult.to_dataframe` does not take *args anymore (this would have thrown an error anyway).
- `DatabaseResult.to_dataframe` now throws a ValueError if data is passed as a kwarg.
Fixed
- Fixed type hints (and added missing type hints). This library now passes mypy strict check.

0.4.1

Added
- Added a `py.typed` file so that mypy etc will treat this library as being typed.

0.4.0

Changed
- `DatabaseResult.to_dataframe()` will now return an empty dataframe with the correct
column names if the result has column information but no rows. Warning: Pandas will
not be able to infer the correct dtypes from these columns.
- Loosened version restrictions on `Pandas` and `ORJSON` dependencies to be any version number.

0.3.0

Added
- Added support for multiple result sets, you can move between result sets using the new
`next_set()` and `previous_set()` methods on `DatabaseResult`. `DatabaseResult` class
also has a new attribute `set_count` to tell you how many result sets the query
returned.
- `DatabaseResult.to_json()` now has an optional `with_columns` parameter.
- Added some missing doc strings.

0.2.0

Added
- Added some more tests, coverage now at 92%.
Changed
- BREAKING: DatabaseResult's `source_types`, `columns`, `raw_data` and `data`,
attributes/properties now cannot be `None`, in order to decrease type ambiguity. To
facilitate this change, they will raise a ValueError if they are called when the
DatabaseResult instance errored, or fetch was false.
- The SQLParameter type hint (used in various places) is now just an alias for Any.
- Miscellaneous refactoring and type hinting/guarding throughout the library. The
library now passes a basic `pyright` check with no errors.

0.1.5

Fixed
- Handle specific length byte strings raising exceptions when parsing database result, [closes 15](https://github.com/invokermain/pymssql-utils/issues/15).

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.