sinew_storage 1.1.0
sinew_storage: ^1.1.0 copied to clipboard
SecureStore, KeyValueStore, processStorageCall and pagedQuery.
1.1.0 #
- Released with the other packages (lockstep). No changes in this package.
1.0.0 #
- S4:
pagedQuery(page, limit, fetch, {firstPage = 1}): onelimit + 1query per page giveshasNextPage,hasPreviousPageispage > firstPage; a non-positive limit, a page beforefirstPage, or an offset past 2^53 - 1 is refused before the query.InspectableStore(name,keys(),read(key)), implemented byKeyValueStoreandSecureStore. - S4:
processStorageCall(module, function, access, block)withStorageAccess { read, write }, and the publicstorageHandlerstable: corruption (DecryptionFailed,FormatException, a plugin's failed decryption) →LocalStorageCorruptionException; out of space (errno 28 or 39/112 on Windows, "No space left on device", SQLite's "database or disk is full",QuotaExceededError) →StorageFullException; other storage errors (PlatformException,IOException,SqliteException, browser storageDOMExceptions) →StorageReadException/StorageWriteException.sinew_storagenow listssinew_models. - S4:
SecureStore(create({namespace}),read,write,delete,clearUserData), as in Kotlin (ADR-26): aKeyValueStore(<namespace>_secure) whose valuesFieldCipher(sinew.secure.<namespace>) encrypts with<namespace>:<key>as associated data. An undecryptable value reads as absent and is deleted; writes are serialized; a reinstall starts empty with no marker. - S4:
KeyValueStore(create({name}),getString/getInt/getBool/getDoubleand setters,remove,clear) onSharedPreferencesAsync, keys prefixed<name>.; a value of another type reads as absent;clearremoves only the store's own keys. Replaces the S0 placeholder. - S0: package skeleton.