News for hackers. Stuff that matters.
Re:Show HN: Sqlbind a Python library to compose raw SQL by gpapilion on Monday February 26, 2024 @02:45PM (#39515977)
Any string interpolation would open you up to sql injection without a lot of care. It generally recommended to used prepared statements.

I guess the q part is the query parameter for the prepared statement. I’d still be a bit antsy here given the ease of a mistake.

I just don’t get what it’s providing over using my db’s module. Usually the dialect is close but different enough to require changes to queries.

There are no comments on this comment yet.