2

I have been trying to find a way to open the Isar database inspector.

Does anyone know how to open the inspector?

jamesdlin
  • 81,374
  • 13
  • 159
  • 204

2 Answers2

3
  1. Set inspector:true in Isar.open()
Isar.open(
      schemas: [...],
      directory: dir.path,
      inspector: true,
    );
  1. Download and install the isar inspector here for windows and here for mac

  2. Look for this link in the logs ws://127.0.0.1:63001/addadada=/ copy it.

flutter: ╔════════════════════════════════════════╗
flutter: ║          ISAR CONNECT STARTED          ║
flutter: ╟────────────────────────────────────────╢
flutter: ║ Open the Isar Inspector and enter the  ║
flutter: ║ following URL to connect:              ║
flutter: ╟────────────────────────────────────────╢
flutter: ║   ws://127.0.0.1:63001/addadada=/      ║
flutter: ╚════════════════════════════════════════╝
  1. Open the isar inspector and paste this link.
Lakshay Parnami
  • 145
  • 1
  • 8
0

According to ISAR homepage, there are now only an executable to access the inspector, with the link generated in debug output, just for Mac (https://github.com/isar/isar) and in issues discussion, #snhmehta posted a Windows version (https://github.com/isar/isar/issues/90). Just remember to enable the inspector with inspect:true in your application.