DatabaseInspector

Reads and (opt-in) edits an app's own SQLite databases. Read-only SELECT/PRAGMA statements are always allowed; any statement that can mutate data or schema is refused with DatabaseExecResult.WriteBlocked unless DatabaseInspector.execute's writeEnabled is true. Callers pass writeEnabled from EditingCapabilities.database. Declared in sdk:server-api -- a plain boundary module with no Android dependency -- so both the Android engine implementation (sdk:full) and the platform-independent Ktor routes (sdk:server-ktor) can share this one contract without a circular module dependency, the same way io.devconsole.state.SessionFeatureFlags reaches GET/POST /api/v1/flags.

Functions

Link copied to clipboard
abstract fun databases(): List<String>
Link copied to clipboard
abstract fun execute(database: String, sql: String, writeEnabled: Boolean): DatabaseExecResult
Link copied to clipboard
abstract fun query(database: String, table: String): DatabaseQueryData?
Link copied to clipboard
abstract fun tables(database: String): DatabaseListingData?