Csql

Latest version: v0.11.0

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

Scan your dependencies

Page 1 of 2

0.11.0

Breaking changes:
- RenderedQuery now has a third member, `parameter_names`. This will be a breaking change if you're splatting it.

New stuff:
- Dialects and Overrides will be inferred from previous queries where possible.
- RenderedQuery now has a third member, `parameter_names`.

Deprecations:
- `csql.Overrides` moved to `csql.overrides.Overrides`.

0.10.0

Breaking changes:
- Implementations of Cacher._persist should no longer be declared as async.

0.9.0

Breaking changes:
- Queries and Parameters are now immutable. This makes a bunch of stuff simpler for me and avoids a couple of bugs. There are
possibly race conditions related to id() usage that are also now all gone, woohoo. This does mean parameter values must be hashable, but there's a check in there to turn any lists/seq etc into a tuple, and I'm not sure what else you'd run into frequently that would hit this.
- Drop Python 3.6 and 3.7 support... sorry :( 3.10 added to CI as well.
- Passing parameters to Q(sql, params) is removed (was deprecated ages ago).
- Passing a lambda to Q(lambda: f'sql') is removed (was deprecated ages ago).

New stuff:
- Implement Extensions and Replacers system - this is considered internal for now but it's quite general purpose, you may
be able to do some fun stuff with it. (everybody wants an ECS implementation in their SQL preprocessor, right?)
- Implement query persistance/caching using extensions/replacers
- Refactor reparameterization to use extensions/replacers

Deprecations:
- ParameterList is deprecated in the public API - it was only ever really a type alias, so you
probably have no need to import it, but it can sneak in with autoimport in IDEs and stuff, so I'm
not removing it right away...

0.8.0

- add parameters.add()
- fix for preview_pd
- make parameterlist look like a list

0.7.0

- implement Overrides system as a hook to supply your own weird renderers and stuff (e.g. i'm using it in another
project to render as a UDF body, where params need to look like `:param`.)

0.6.0

- implement reparameterization (so you can run your queries with different params to their original values)

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.