Skip to content

Instantly share code, notes, and snippets.

@MkhytarMkhoian
Created July 2, 2017 13:42
Show Gist options
  • Select an option

  • Save MkhytarMkhoian/855385cf82f92ed120dacce9d922ce50 to your computer and use it in GitHub Desktop.

Select an option

Save MkhytarMkhoian/855385cf82f92ed120dacce9d922ce50 to your computer and use it in GitHub Desktop.
void sendTableTrigger(Set<String> tables) {
BriteDatabase.SqliteTransaction transaction = (BriteDatabase.SqliteTransaction)this.transactions.get();
if(transaction != null) {
transaction.addAll(tables);
} else {
if(this.logging) {
this.log("TRIGGER %s", new Object[]{tables});
}
this.triggers.onNext(tables);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment