
Security News
Static vs. Runtime Reachability: Insights from Latio’s On the Record Podcast
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
For use with the mysqldb module for python
Usage
::
import mysqldbhelper
db = mysqldbhelper.DatabaseConnection('hostname',
user='username',
passwd='password',
db='databasename')
::
db.get_one('select book_name from book where isbn = %s', ('SOMEISBN',))
‘limit 1’ is automatically added
::
db.get_all('select book_name from book where author = %s', ('Richard Dawkins',))
::
db.put('''
insert into book
(book_name, book_author)
values
(%s, %s)''', ('Phantoms in the brain', 'V.S. Ramachandran')
put can be used for insert, update and delete queries
::
db.put('''delete from book
where
book_author = %s''' ('Deepak Chopra',))
::
try:
db.start()
db.get(...)
db.put(...)
...
db.save()
except Exception, e:
db.rollback()
raise
Used at Comparnion.com
_
.. _Comparnion.com: https://comparnion.com
FAQs
A simple wrapper over mysqldb
We found that mysqldbhelper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.