def aparam():
 style = ctx.db_module.paramstyle
 if (style == 'qmark'):
  return '?'
 elif (style == 'numeric'):
  return ':1'
 elif (style in ['format', 'pyformat']):
  return '%s'
 raise UnknownParamstyle, style

def aparam ( ) : style = ctx . db_module . paramstyle if ( style == 'qmark' ) : return '?' elif ( style == 'numeric' ) : return ':1' elif ( style in [ 'format' , 'pyformat' ] ) : return '%s' raise UnknownParamstyle , style
use in a sql string to make a spot for a db value .