WindowOrWorkerGlobalScope.indexedDB
WindowOrWorkerGlobalScope
ミックスインの indexedDB
読み取り専用プロパティは、アプリケーションが indexed データベースのキャパビリティに非同期でアクセスするための機構を提供します。
構文
var IDBFactory = self.indexedDB;
値
IDBFactory
オブジェクト。
例
var db;
function openDB() {
var DBOpenRequest = window.indexedDB.open('toDoList');
DBOpenRequest.onsuccess = function(e) {
db = DBOpenRequest.result;
}
}
仕様
仕様書 | 策定状況 | 備考 |
---|---|---|
Indexed Database API 2.0 indexedDB の定義 |
勧告 | Defined in a WindowOrWorkerGlobalScope partial in the newest spec. |
Indexed Database API 2.0 indexedDB の定義 |
勧告 | 初期定義。 |
ブラウザーの実装状況
No compatibility data found for api.WindowOrWorkerGlobalScope.indexedDB
.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.
関連情報
- Using IndexedDB
- トランザクションの開始:
IDBDatabase
- トランザクションの使用:
IDBTransaction
- キーの範囲設定:
IDBKeyRange
(en-US) - データの取得と変更:
IDBObjectStore
(en-US) - カーソルの使用:
IDBCursor
- 参照例: To-do Notifications (view example live.)