From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/idbenvironment/index.html | 76 ++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 files/ja/web/api/idbenvironment/index.html (limited to 'files/ja/web/api/idbenvironment') diff --git a/files/ja/web/api/idbenvironment/index.html b/files/ja/web/api/idbenvironment/index.html new file mode 100644 index 0000000000..25ff0be581 --- /dev/null +++ b/files/ja/web/api/idbenvironment/index.html @@ -0,0 +1,76 @@ +--- +title: IDBEnvironment +slug: Web/API/IDBEnvironment +tags: + - API + - DOM + - Database + - IndexedDB +translation_of: Web/API/IDBEnvironment +--- +

{{APIRef()}}

+ +
+

Important: As of Firefox 52, the property defined in this mixin has been moved to the {{domxref("WindowOrWorkerGlobalScope")}} mixin, and other browsers will follow suit. Look to that page for up-to-date details.

+
+ +

IndexedDB API の IDBEnvironment インタフェースには、IndexedDB の機能へアクセスするための indexedDB プロパティがあります。これは、{{domxref("window")}} と {{domxref("Worker")}}オブジェクトによって実装された、最上位の IndexedDB インタフェースです。

+ +

{{AvailableInWorkers}}

+ +

プロパティ

+ +
+
{{domxref("IDBEnvironment.indexedDB")}} {{readonlyInline}}
+
インデックス化されたデータベースへ非同期的にアクセスするための機構を、アプリケーションへ提供する、 {{domxref("IDBFactory")}} オブジェクトです。
+
+ +

+ +

次のコードはデータベースを非同期に開くリクエストを生成しています。データベースが開かれた後、リクエストの onsuccess ハンドラーが呼ばれます。:

+ +
var db;
+function openDB() {
+ var DBOpenRequest = window.indexedDB.open("toDoList");
+ DBOpenRequest.onsuccess = function(e) {
+   db = DBOpenRequest.result;
+ };
+}
+
+ +

仕様

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('IndexedDB', '#idl-def-IDBEnvironment', 'IDBEnvironment')}}{{Spec2('IndexedDB')}} 
+ +

ブラウザ実装状況

+ +
+ + +

{{Compat("api.IDBEnvironment")}}

+
+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf