#NEWLINE# def set_pragmas( self , pragmas ) : #NEWLINE# #INDENT# '\n        Set pragmas for the current database connection.\n\n        Parameters\n        ----------\n        pragmas : dict\n            Dictionary of pragmas; see constants.default_pragmas for a template\n            and http://www.sqlite.org/pragma.html for a full list.\n        ' #NEWLINE# self . pragmas = pragmas #NEWLINE# c = self . conn . cursor ( ) #NEWLINE# c . executescript ( ';\n' . join ( [ ( 'PRAGMA %s=%s' % i ) for i in self . pragmas . items ( ) ] ) ) #NEWLINE# self . conn . commit ( )