Overview
When you open a realm file in Realm Studio, you can:
View live objects in realtime
Query objects in the realm
Exportar definiciones de modelo SDK
This makes it a valuable tool for developing and debugging applications backed by Realm.
Ver objetos activos en tiempo real
Realm Studio te permite ver objetos activos mientras ejecutas una aplicación cliente en un emulador. Puedes ver cómo las funciones en tu aplicación están transformando objetos en tiempo real. Esta es una herramienta poderosa de depuración y desarrollo.
To view live objects in Realm Studio, you'll need to find your realm file. Once you know your realm file path, you can open it in Realm Studio while your app is running.
Nota
Lamentablemente, los emuladores de Android no admiten la visualización de objetos activos en Realm Studio. Si estás desarrollando para Android, debes descargar el archivo desde el emulador antes de poder acceder a él.
Query Objects in the Realm
Realm Studio enables you to query the objects in the realm file. The ability to do this in the realm via Realm Studio gives you a visual tool to:
Ver rápidamente los resultados de la query
Experimenta con la query sintaxis
Validate the data in the realm file
The Realm Studio query bar at the top of the main pane accepts the Realm JavaScript query syntax. You can query using:
Operadores de comparación
Operadores lógicos
String operators
También puede ver un documento de referencia que detalla las opciones de consulta desde Realm Studio. Presione el botón ? Botón al lado de la barra de consulta.
Export SDK Model Definitions
Realm Studio enables you to export model definitions, streamlining cross-platform development.
For example, you may be an iOS developer who has already created a schema in an existing app. You now need to declare the same schema for your Android app. Recreating that schema in another programming language can be time-consuming and error-prone. Instead, you can open your realm file in Realm Studio, and export the model definition in Java.
To export updated class definitions:
Go to File > Save model definitions, and select your preferred language. Supported languages include: Swift, JavaScript, TypeScript, Java, Kotlin, and C#.
Specify a name and destination for your new class definitions. Press the Save button.
Si tu directorio de destino todavía no existe, Realm Studio lo crea. Dentro, encontrarás un archivo que contiene una lista completa de clases y propiedades, incluidas nuevas incorporaciones.