An extension for MIT App Inventor 2.
BigDB - Advanced key-value storage with TTL, metadata, multi-table support, encryption, and more
My Other Extensions
Built by Sarthak Gupta
π¦ Package: com.bigdb
πΎ Size: 33.66 KB
βοΈ Version: 1.0
π± Minimum API Level: 7
π
Updated On: [date=2025-05-25 timezone="Asia/Calcutta"]
π» Built & documented using: FAST-CLI v2.8.1
BigDB has total 4 events.
Fires when a value is retrieved
| Parameter | Type |
|---|---|
| queryId | text |
| value | text |
Fires when a key list is returned
| Parameter | Type |
|---|---|
| queryId | text |
| keys | any |
Fires when data changes in the current table
Fires when an error occurs
| Parameter | Type |
|---|---|
| message | text |
BigDB has total 28 methods.
Set database encryption password (PRAGMA key)
| Parameter | Type |
|---|---|
| pwd | text |
Remove encryption (PRAGMA rekey to empty)
Check if database is encrypted
Store a value for a key with optional TTL and metadata
| Parameter | Type |
|---|---|
| key | text |
| value | text |
| useTTL | boolean |
| ttlSeconds | number |
| metadata | text |
Get the value for a key asynchronously
| Parameter | Type |
|---|---|
| key | text |
| queryId | text |
Delete a key
| Parameter | Type |
|---|---|
| key | text |
Clear all data in the current table
Rename a key
| Parameter | Type |
|---|---|
| oldKey | text |
| newKey | text |
Store multiple key-value pairs
| Parameter | Type |
|---|---|
| keys | list |
| values | list |
Delete multiple keys
| Parameter | Type |
|---|---|
| keys | list |
List all keys in the current table asynchronously
| Parameter | Type |
|---|---|
| queryId | text |
Check if a key exists
| Parameter | Type |
|---|---|
| key | text |
Get full record as JSON asynchronously
| Parameter | Type |
|---|---|
| key | text |
| queryId | text |
Find keys by metadata substring asynchronously
| Parameter | Type |
|---|---|
| query | text |
| queryId | text |
Set expiry time in seconds for a key
| Parameter | Type |
|---|---|
| key | text |
| seconds | number |
Set metadata for a key
| Parameter | Type |
|---|---|
| key | text |
| metadata | text |
Get metadata for a key
| Parameter | Type |
|---|---|
| key | text |
Get remaining TTL in seconds for a key (0 if none or expired)
| Parameter | Type |
|---|---|
| key | text |
Purge expired keys from the current table
Export current table as CSV to the specified file path. If filePath is empty, uses the app's external files directory.
| Parameter | Type |
|---|---|
| filePath | text |
Import data into current table from CSV
| Parameter | Type |
|---|---|
| filename | text |
Export current table as JSON string
Import data into current table from JSON
| Parameter | Type |
|---|---|
| json | text |
Get total record count in current table
Get database file size in bytes
List all tables in database
Watch changes to a key in the current table
| Parameter | Type |
|---|---|
| key | text |
| queryId | text |
Stop watching changes to a key
| Parameter | Type |
|---|---|
| key | text |
| queryId | text |
BigDB has total 1 setter property.
Set the current table to operate on
- Input type:
text