Skip to content

Conversation

nlutsenko
Copy link
Contributor

Doesn't really add any performance improvements just yet, but this is a waay better API that will guarantee us thread-safety, since the only access to SQLite should be in these blocks.

@facebook-github-bot
Copy link

@nlutsenko updated the pull request.

@facebook-github-bot
Copy link

@nlutsenko updated the pull request.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If block throws during execution, we end up with statements not being properly closed. If we ever turn on query caching, we get into a really bad state here.

@facebook-github-bot
Copy link

@nlutsenko updated the pull request.

nlutsenko added a commit that referenced this pull request Nov 30, 2015
Add and use block-based API for querying SQLite database.
@nlutsenko nlutsenko merged commit 16685f7 into master Nov 30, 2015
@nlutsenko nlutsenko deleted the nlutsenko.lds.query branch November 30, 2015 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants