insertIfNotExists method

  1. @Deprecated("The insertIfNotExists function will be removed after version 4.4.0")
Future<int> insertIfNotExists(
  1. {@required String table,
  2. @required Map<String, String> row,
  3. bool verbose = false}
)
@Deprecated("The insertIfNotExists function will be removed after version 4.4.0")

Insert a row in a table if it is not present already

table the table to insert into. row is a map of the data to insert

Returns a future with the last inserted id

Implementation

@Deprecated(
    "The insertIfNotExists function will be removed after version 4.4.0")
Future<int> insertIfNotExists(
    {@required String table,
    @required Map<String, String> row,
    bool verbose = false}) async {
  return _insert(table: table, row: row, ifNotExists: true, verbose: verbose);
}