Skip to content

Is rawExecSQL() a stable API? #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
commonsguy opened this issue Nov 7, 2012 · 1 comment
Closed

Is rawExecSQL() a stable API? #72

commonsguy opened this issue Nov 7, 2012 · 1 comment

Comments

@commonsguy
Copy link
Collaborator

The only way I could get sqlcipher_export() to work at all in Android is to execute it via rawExecSQL(), per your recipe. I can't use execSQL() because SELECT sqlcipher_export('encrypted') is a SELECT statement (so SQLiteDatabase complains), and I can't use rawQuery() because... well, it just doesn't seem to actually run.

Is rawExecSQL() part of a stable public SQLCipher for Android API? I ask, because there is no such method in native Android's SQLiteDatabase. I just want to make sure that this is a method you expect users of SQLCipher for Android to be relying upon.

Thanks!

@developernotes
Copy link
Member

Hi Mark,

Yes, we added the rawExecSQL() to the library to allow for queries that include a SELECT statement but do not return a resultset, the sqlcipher_export function is a good example of that. You should consider it part of the stable public API to SQLCipher for Android.

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

No branches or pull requests

2 participants