database_client library

Classes

DatabaseClient
A client for interacting with the 'database' extension on the room server.
TableIndex
TableVersion

Enums

CreateMode
A literal type for controlling table creation mode. In TypeScript: type CreateMode = "create" | "overwrite" | "create_if_not_exists"; In Dart, we can use an enum or string constants. Here we'll use an enum.

Extensions

CreateModeValue on CreateMode

Functions

decodeRecords(List<Map<String, dynamic>> records) List<Map<String, dynamic>>
Decodes any base64-encoded fields in the list of record maps. If a value is a map with {"encoding": "base64", "data": ...}, it will be replaced with a Uint8List containing the decoded bytes.
encodeRecords(List<Map<String, dynamic>> records) List<Map<String, dynamic>>
Encodes any Uint8List (or raw bytes) in the record maps into a {"encoding": "base64", "data": "..."} wrapper.