/// Execute a raw SQL INSERT query
///
/// Returns the last inserted record id
Future<int> rawInsert(String sql, [List<dynamic> arguments]);
Future<int> insert(String table, Map<String, dynamic> values,
{String nullColumnHack, ConflictAlgorithm conflictAlgorithm});
Future<int> rawDelete(String sql, [List<dynamic> arguments]);
/// Convenience method for deleting rows in the database.
///
/// Delete from [table]
///
/// [where] is the optional WHERE clause to apply when updating. Passing null
/// will update all rows.
///
/// You may include ?s in the where clause, which will be replaced by the
/// values from [whereArgs]
///
/// [conflictAlgorithm] (optional) specifies algorithm to use incase of a
/// conflict. See [ConflictResolver] docs for more details
///
/// Returns the number of rows affected if a whereClause is passed in, 0
/// otherwise. To remove all rows and get a count pass "1" as the
/// whereClause.
Future<int> delete(String table, {String where, List<dynamic> whereArgs});
Future<int> rawUpdate(String sql, [List<dynamic> arguments]);
/// Convenience method for updating rows in the database.
///
/// Update [table] with [values], a map from column names to new column
/// values. null is a valid value that will be translated to NULL.
///
/// [where] is the optional WHERE clause to apply when updating.
/// Passing null will update all rows.
///
/// You may include ?s in the where clause, which will be replaced by the
/// values from [whereArgs]
///
/// [conflictAlgorithm] (optional) specifies algorithm to use incase of a
/// conflict. See [ConflictResolver] docs for more details
Future<int> update(String table, Map<String, dynamic> values,
{String where,
List<dynamic> whereArgs,
ConflictAlgorithm conflictAlgorithm});
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});
/// Execute a raw SQL SELECT query
///
/// Returns a list of rows that were found
Future<List<Map<String, dynamic>>> rawQuery(String sql,
[List<dynamic> arguments]);
query方法第一个参数为操作的表名,后面的可选参数依次表示是否去重、查询字段、where子句(可使用?作为占位符)、where占位符参数、GROUP BY 、haveing、ORDER BY、查询的条数、查询的偏移位;