This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The objectStoreNames
read-only property of the IDBTransaction
interface returns a DOMStringList
of names of IDBObjectStore
objects.
Syntax
var myDatabase = transactionObj.objectStoreNames;
Returns
A DOMStringList
of names of IDBObjectStore
objects.
Specification
Specification | Status | Comment |
---|---|---|
Indexed Database API 2.0 The definition of 'ObjectStoreNames' in that specification. |
Recommendation | |
Indexed Database API Draft The definition of 'ObjectStoreNames' in that specification. |
Recommendation |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
objectStoreNames | Chrome Full support 48 | Edge Full support ≤79 | Firefox Full support Yes | IE ? | Opera Full support 35 | Safari Full support Yes | WebView Android Full support 48 | Chrome Android Full support 48 | Firefox Android Full support Yes | Opera Android Full support 35 | Safari iOS Full support Yes | Samsung Internet Android Full support 5.0 |
Legend
- Full support
- Full support
- Compatibility unknown
- Compatibility unknown
See also
- Using IndexedDB
- Starting transactions:
IDBDatabase
- Using transactions:
IDBTransaction
- Setting a range of keys:
IDBKeyRange
- Retrieving and making changes to your data:
IDBObjectStore
- Using cursors:
IDBCursor
- Reference example: To-do Notifications (view example live.)