code: def _get_conn(ret=None):
      '''
      Return a sqlite3 database connection
      '''
      # Possible todo: support detect_types, isolation_level, check_same_thread,
      # factory, cached_statements. Do we really need to though?
      _options = _get_options(ret)
      database = _options.get('database')
      timeout = _options.get('timeout')
  
      if not database:
          raise Exception(
                  'sqlite3 config option "sqlite3.database" is missing')
      if not timeout:
          raise Exception(
                  'sqlite3 config option "sqlite3.timeout" is missing')
      log.debug('Connecting the sqlite3 database: %s timeout: %s', database, timeout)
      conn = sqlite3.connect(database, timeout=float(timeout))
      return conf _get_conn(ret=None):
      '''
      Return a sqlite3 database connection
      '''
      # Possible todo: support detect_types, isolation_level, check_same_thread,
      # factory, cached_statements. Do we really need to though?
      _options = _get_options(ret)
      database = _options.get('database')
      timeout = _options.get('timeout')
  
      if not database:
          raise Exception(
                  'sqlite3 config option "sqlite3.database" is missing')
      if not timeout:
          raise Exception(
                  'sqlite3 config option "sqlite3.timeout" is missing')
      log.debug('Connecting the sqlite3 database: %s timeout: %s', database, timeout)
      conn = sqlite3.connect(database, timeout=float(timeout))
      return conn
docs: Return a sqlite3 database connection