We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dce2d5 commit 8e51018Copy full SHA for 8e51018
1 file changed
debug-db/src/main/java/com/amitshekhar/utils/DatabaseHelper.java
@@ -43,7 +43,7 @@ private DatabaseHelper() {
43
44
public static Response getAllTableName(SQLiteDatabase database) {
45
Response response = new Response();
46
- Cursor c = database.rawQuery("SELECT name FROM sqlite_master WHERE type='table'", null);
+ Cursor c = database.rawQuery("SELECT name FROM sqlite_master WHERE type='table' OR type='view'", null);
47
if (c.moveToFirst()) {
48
while (!c.isAfterLast()) {
49
response.rows.add(c.getString(0));
0 commit comments