View sqflite table contents for debugging
Asked Answered
S

5

13

I am integrating a Database into my flutter app with sqflite. Since I am a visual understander in terms of problems, I would like to be able to see table contents for debugging.

Is there a possibility to view/read the table contents on the phone via some kind of UI or via debug? I am using visual studio code.

Silvery answered 30/6, 2020 at 13:2 Comment(1)
Previously asked here: #57159501Derr
S
9
  1. Android Studio , Use Database Inspector as Code Poet Said

  2. IntelliJ IDEA / DataGrip. you can choose Android SQLITE db, and it detect your connected devices. IntelliJ Screenshot

*dont have enough reputation to post img

Swick answered 18/5, 2021 at 4:29 Comment(0)
I
4

You can use Database Inspector at bottom bar of Android Studio to view

enter image description here

Illyes answered 25/5, 2021 at 10:55 Comment(0)
A
0

Open project in Android studio, click on App Inspection

enter image description here

Apis answered 27/11, 2023 at 12:23 Comment(0)
H
0

You can find Database Inspector to see visual of database in android studio and for that you need to open App Inspection Tools->App Inspection->Database Inspector

Humorist answered 18/12, 2023 at 12:56 Comment(0)
S
-1

If you were willing to move to Android studio, from version 4.1 which is available in the Canary and Dev channels, there is a Database Inspector.

Alternatively, I see that there is a VS code extension that might correspond to what you are looking for.

Finally, you could simply use DB Browser for Sqlite.

Good luck!

Shophar answered 30/6, 2020 at 14:58 Comment(1)
The sql file should stay in the mobile device. How these tools can connect to those files?Coffeecolored

© 2022 - 2025 — McMap. All rights reserved.