Skip to content

SQLiteDatabase/changedRowCount: maybe we can use "select changes()" to get the count of changed rows #20

@GuguAbrams

Description

@GuguAbrams

Thanks for your great job.

I've recently found the CHANGES() pragma available inside of SQLite. So I'm adding some code:

SQLiteStatement stmt = sqliteDatabase.compileStatement("SELECT CHANGES()");
long cnt = stmt.simpleQueryForLong();
stmt.close();
return (int)cnt;

:D

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions