This is an experimental technologyCheck 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.0The definition of 'ObjectStoreNames' in that specification. | Recommendation | |
Indexed Database API DraftThe 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.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
objectStoreNames
|
Chrome
Full support 48 |
Edge
Full support ≤79 |
Firefox
Full support Yes |
IE
No support No |
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
- No support
- No support
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 ([[../../../../../../../mdn.github.io/to-do-notifications/index|view example live]].)
IDBTransaction.objectStoreNames by Mozilla Contributors is licensed under CC-BY-SA 2.5.