mirror of
https://github.com/openflocon/Flocon.git
synced 2026-05-06 15:13:03 +00:00
2.2 KiB
2.2 KiB
🧩 Database Explorer & SQL Editor
Flocon gives you direct access to your app’s local databases (SQLite, Room, SQLDelight, etc.), with a clean interface for exploring schemas and querying data.
Key capabilities include:
- Automatic detection of all SQLite databases on Android.
- Listing all tables and their schemas.
- Running custom SQL queries with syntax highlighting.
- Auto-updating queries and saving favorites.
- Generating
INSERTandDELETEqueries automatically.
Android (Automatic Detection)
On Android, Flocon automatically scans your app's internal storage and lists all SQLite databases. You don't need additional configuration to see them in the desktop app.
Manual Registration (Android)
If you want to use a custom display name or register an in-memory database, you can use floconRegisterDatabase:
// Register an In-Memory Room Database
val dogDatabase = Room.inMemoryDatabaseBuilder(context, DogDatabase::class.java).build()
floconRegisterDatabase(
displayName = "In-Memory Dogs",
openHelper = dogDatabase.openHelper
)
Multiplatform (Desktop & iOS)
For Kotlin Multiplatform projects (Desktop and iOS), you must provide the absolute path to the database file:
// On Desktop
val dbFile = File(System.getProperty("java.io.tmpdir"), "app_database.db")
floconRegisterDatabase(
displayName = "App DB",
absolutePath = dbFile.absolutePath,
)
// On iOS
val dbPath = "${documentDirectory()}/app_database.db"
floconRegisterDatabase(
displayName = "App DB",
absolutePath = dbPath
)
SQL Workspace
The Flocon Desktop app provides a full SQL workspace where you can:
- Explore: See all tables and their columns.
- Query: Write any SQL query and see the results in a formatted table.
- Favorites: Save your most used queries for quick access later.
- Toolbox: Quickly generate common SQL statements from the UI.