tkp.db – TKP database root package

tkp.db.execute(query, parameters={}, commit=False)[source]

A generic wrapper for doing any query to the database

Parameters:
  • query – the query string
  • parameters – The query parameters. These will be converted and escaped.
  • commit – should a commit be performed afterwards, boolean
Returns:

a database cursor object