Csql

Latest version: v0.11.0

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

Scan your dependencies

Page 2 of 2

0.5.0

- implement Dialects for where we need to know about SQL dialects (param styles, limit method I think is all atm)

0.4.0

- add .db() renderer `-> (sql, params)` to pass to dbapi like `execute(*.db())`

0.3.2

- patch release to remove extraneous print

0.3.1

- make big queries format more nicely by using textwrap.dedent() and indent() - i haven't tested in a huge amount of cases and I probably can't
make every possible query beautiful, but most things should look a bit better now.

0.3.0

- allow parameters to be called as attributes as well as keys
( `p.myparam` vs `p['myparam']` ) (thanks tomfunk)

- Implement string parsing as an alternative to AST manipulation, so Q(lambda: f"select 1 from {q}") can now be written as Q(f"select 1 from {q}") (thanks alexmojaki)

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.