Service URI - luna://com.webos.mediadb
Enables apps to store large media related datasets persistently.
The Media Database service enables apps to:
- Add objects
- Update objects
- Delete objects
- Query objects
- Manage access to objects within the database
Unlike the DB8 service, Media Database allows apps to manage large media datasets.
However, the usage method of Media Database is as same as Database (DB8). To learn about webOS Database (DB8) service and how to use it, see Database (DB8).
Supported in Emulator
|batch||Enables apps to execute multiple database operations in one service request.||Yes|
|del||Deletes the JSON data objects from the database.||Yes|
|delKind||Deletes a kind from the database.||Yes|
|find||Returns a set of objects that match the query specified in the query parameter.||Yes|
|get||Retrieves JSON data objects by ids.||Yes|
|merge||Updates the object properties in existing objects.||Yes|
|put||Stores JSON data objects of a particular kind into the database.||Yes|
|putKind||Registers a kind JSON object with the database.||Yes|
|putPermissions||Enables other apps, or services to access the apps stored DB8 data.||Yes|
Reserves a block of object ids.
|search||Supports the ? operator which is used for full-text searching.||Yes|
|watch||Watches for updates to the database that would change the results of a query.||Yes|