cursorPutUtf8 method
Convenience method to store UTF-8 strings using cursor
Parameters:
cursor- Active cursorkey- Key stringvalue- Value stringflags- Optional operation flags
Example:
await db.cursorPutUtf8(
cursor,
'user:123',
'{"name": "John", "age": 30}'
);
Implementation
Future<void> cursorPutUtf8(
Pointer<MDB_cursor> cursor, String key, String value,
[int flags = 0]) async {
return cursorPut(
cursor,
utf8.encode(key),
utf8.encode(value),
flags,
);
}