Skip to content

Instantly share code, notes, and snippets.

@MkhytarMkhoian
Created June 24, 2017 11:23
Show Gist options
  • Select an option

  • Save MkhytarMkhoian/6530f117fb09b56d88e0d4e630fdd636 to your computer and use it in GitHub Desktop.

Select an option

Save MkhytarMkhoian/6530f117fb09b56d88e0d4e630fdd636 to your computer and use it in GitHub Desktop.
BriteDatabase.Transaction transaction = db.newTransaction();
try {
db.insert("users", createUser("Mkhytar Mkhoian"));
db.insert("users", createUser("Artem Dudinskyi"));
db.insert("users", createUser("Andrii Rakhimov"));
transaction.markSuccessful();
} finally {
transaction.end();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment