realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.47k stars 1.75k forks source link

Add internal Realm browser #959

Open kboyarshinov opened 9 years ago

kboyarshinov commented 9 years ago

Cocoa users have this feature. Would be good to have it for Android too. Right now we have to pull Realm database from device or emulator at first and then to view it in Cocoa browser (if you're on Mac).

I can suggest AndroidDbInspector library for SQL databases as a reference point. Realm browser can be implemented with browser Activity like AndroidDbInspector does. Better as a separate artifact from main realm-java.

njovy commented 9 years ago

Reading realm files on android devices sounds great. I thought that it would be great to have a realm browser feature implemented in Stetho by facebook as well. It's really easy to use and much better than using your phone to inspect sqlite files when you develop apps on your machine.

jenzz commented 9 years ago

stetho integration would be sweet :smile:

cmelchior commented 9 years ago

We definitely want to provide a Realm Browser for Android as well, however the exact details are still to be determined. As you point out, the Cocoa browser currently works for Android on Mac, albeit being a bit cumbersome.

Stetho looks very interesting, but as Realm isn't a SQL database, integration might not be straightforward. Also their license has some caveats that might make it problematic to use.

zaki50 commented 9 years ago

I wrote Realm module for Stetho a few days ago.

njovy commented 9 years ago

@zaki50 Thanks for your hard work!!

dmytrodanylyk commented 9 years ago

I can suggest AndroidDbInspector library for SQL databases as a reference point. Realm browser can be implemented with browser Activity like AndroidDbInspector does.

Check out my Android Realm Database Browser. I am still working on new features.

beveradb commented 9 years ago

Not sure if this is the best place to comment since the definition of "internal" Realm Browser is questionable, but I would love something cross-platform to at the very least view the contents of .realm files. If an IntelliJ IDEA / Android Studio plugin were developed to allow reading Realm files as a "database" that would be even better, and cross-platform too!

cmelchior commented 9 years ago

@andrewthecoder Yes, right now it looks like that is the route we will be taking. As you point out it will be cross platform and with Google deprecating Eclipse, AndroidStudio is now the only official IDE. Tight IDE integration also has a lot of other benefits like making it possible to add things like custom lint checks and quick fixes.

That said, we haven't decided anything final yet, so things might still change.

eygraber commented 7 years ago

Has any work been done on this? I'm using stetho, for this now, but an Android Studio plugin would be much better.