code: def _apply_pragmas_callback(cls, connection, record):
          '''Set SQLite pragmas.
  
          Write-ahead logging, synchronous=NORMAL is used.
          '''
          _logger.debug('Setting pragmas.')
          connection.execute('PRAGMA journal_mode=WAL')
          connection.execute('PRAGMA synchronous=NORMAL'f _apply_pragmas_callback(cls, connection, record):
          '''Set SQLite pragmas.
  
          Write-ahead logging, synchronous=NORMAL is used.
          '''
          _logger.debug('Setting pragmas.')
          connection.execute('PRAGMA journal_mode=WAL')
          connection.execute('PRAGMA synchronous=NORMAL')
docs: Set SQLite pragmas.
  
          Write-ahead logging, synchronous=NORMAL is used.