Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Manages per-device Room database instances for node data, with LRU eviction.

Link copied to clipboard

Provides multiplatform access to the current MeshtasticDatabase and a safe transactional helper. Platform implementations manage the concrete lifecycle (Room on Android, etc.).

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun buildDbName(address: String?): String
Link copied to clipboard

Creates an Android DataStore for database preferences.

Creates a platform-specific DataStore for database-related preferences.

Creates a JVM DataStore for database preferences in the data directory.

Link copied to clipboard
actual fun deleteDatabase(dbName: String)

Deletes the Android database using the platform-specific deleteDatabase helper.

expect fun deleteDatabase(dbName: String)

Deletes the database with the given dbName and its associated files (e.g., -wal, -shm).

actual fun deleteDatabase(dbName: String)

Deletes the database and its Room-associated files on JVM.

Link copied to clipboard

Resolves the desktop data directory for persistent storage (DataStore files, Room database). Defaults to ~/.meshtastic/. Override via MESHTASTIC_DATA_DIR environment variable.

Link copied to clipboard

Returns a RoomDatabase.Builder configured for Android with the given dbName.

Returns a RoomDatabase.Builder configured for the current platform with the given dbName.

Returns a RoomDatabase.Builder configured for JVM/Desktop with the given dbName.

Link copied to clipboard
actual fun getDatabaseDirectory(): Path

Returns the Android directory where database files are stored.

expect fun getDatabaseDirectory(): Path

Returns the platform-specific directory where database files are stored.

actual fun getDatabaseDirectory(): Path

Returns the JVM/Desktop directory where database files are stored.

Link copied to clipboard
actual fun getFileSystem(): FileSystem

Returns the system FileSystem for Android.

expect fun getFileSystem(): FileSystem

Returns the FileSystem to use for database file operations.

actual fun getFileSystem(): FileSystem

Returns the system FileSystem for JVM.

Link copied to clipboard

Returns a RoomDatabase.Builder configured for an in-memory Android database.

Returns a RoomDatabase.Builder configured for an in-memory database on the current platform.

Returns a RoomDatabase.Builder configured for an in-memory JVM database.

Link copied to clipboard