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