code: def fetch(db=None, sql=None):
      '''
      Retrieve data from an sqlite3 db (returns all rows, be careful!)
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' sqlite3.fetch /root/test.db 'SELECT * FROM test;'
      '''
      cur = _connect(db)
  
      if not cur:
          return False
  
      cur.execute(sql)
      rows = cur.fetchall()
      return rowf fetch(db=None, sql=None):
      '''
      Retrieve data from an sqlite3 db (returns all rows, be careful!)
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' sqlite3.fetch /root/test.db 'SELECT * FROM test;'
      '''
      cur = _connect(db)
  
      if not cur:
          return False
  
      cur.execute(sql)
      rows = cur.fetchall()
      return rows
docs: Retrieve data from an sqlite3 db (returns all rows, be careful!)
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' sqlite3.fetch /root/test.db 'SELECT * FROM test;'