Skip to content

Instantly share code, notes, and snippets.

@ashishrawat2911
Last active April 9, 2019 13:55
Show Gist options
  • Save ashishrawat2911/5969e225083a5c8ff995618fdab95a01 to your computer and use it in GitHub Desktop.
Save ashishrawat2911/5969e225083a5c8ff995618fdab95a01 to your computer and use it in GitHub Desktop.
//delete person with id
deletePersonWithId(int id) async {
final db = await database;
return db.delete("Person", where: "id = ?", whereArgs: [id]);
}
//delete all persons
deleteAllPersons() async {
final db = await database;
db.delete("Person");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment