Last active
April 9, 2019 13:55
-
-
Save ashishrawat2911/5969e225083a5c8ff995618fdab95a01 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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