We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4830c36 + f1898ca commit a3867a9Copy full SHA for a3867a9
src/net/sqlcipher/database/SQLiteStatement.java
@@ -90,6 +90,24 @@ public long executeInsert() {
90
}
91
92
93
+ public long executeUpdateDelete() {
94
+ if (!mDatabase.isOpen()) {
95
+ throw new IllegalStateException("database " + mDatabase.getPath() + " already closed");
96
+ }
97
+ long timeStart = SystemClock.uptimeMillis();
98
+ mDatabase.lock();
99
+
100
+ acquireReference();
101
+ try {
102
+ native_execute();
103
+ mDatabase.logTimeStat(mSql, timeStart);
104
+ return mDatabase.lastChangeCount();
105
+ } finally {
106
+ releaseReference();
107
+ mDatabase.unlock();
108
109
110
111
/**
112
* Execute a statement that returns a 1 by 1 table with a numeric value.
113
* For example, SELECT COUNT(*) FROM table;
0 commit comments