query method

Future<List<Map<String, dynamic>>> query (
  1. String table,
  2. {bool distinct,
  3. List<String> columns,
  4. String where,
  5. List whereArgs,
  6. String groupBy,
  7. String having,
  8. String orderBy,
  9. int limit,
  10. int offset}

Helper to query a table

@param distinct true if you want each row to be unique, false otherwise. @param table The table names to compile the query against. @param columns A list of which columns to return. Passing null will return all columns, which is discouraged to prevent reading data from storage that isn't going to be used. @param where A filter declaring which rows to return, formatted as an SQL WHERE clause (excluding the WHERE itself). Passing null will return all rows for the given URL. @param groupBy A filter declaring how to group rows, formatted as an SQL GROUP BY clause (excluding the GROUP BY itself). Passing null will cause the rows to not be grouped. @param having A filter declare which row groups to include in the cursor, if row grouping is being used, formatted as an SQL HAVING clause (excluding the HAVING itself). Passing null will cause all row groups to be included, and is required when row grouping is not being used. @param orderBy How to order the rows, formatted as an SQL ORDER BY clause (excluding the ORDER BY itself). Passing null will use the default sort order, which may be unordered. @param limit Limits the number of rows returned by the query, @param offset starting index, @return the items found


/// @return the items found
Future<List<Map<String, dynamic>>> query(String table,
    {bool distinct,
    List<String> columns,
    String where,
    List<dynamic> whereArgs,
    String groupBy,
    String having,
    String orderBy,
    int limit,
    int offset});