diff options
| author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
|---|---|---|
| committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
| commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
| tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/idbfactory | |
| parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
| download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip | |
initial commit
Diffstat (limited to 'files/ja/web/api/idbfactory')
| -rw-r--r-- | files/ja/web/api/idbfactory/cmp/index.html | 152 | ||||
| -rw-r--r-- | files/ja/web/api/idbfactory/deletedatabase/index.html | 129 | ||||
| -rw-r--r-- | files/ja/web/api/idbfactory/index.html | 109 | ||||
| -rw-r--r-- | files/ja/web/api/idbfactory/open/index.html | 155 |
4 files changed, 545 insertions, 0 deletions
diff --git a/files/ja/web/api/idbfactory/cmp/index.html b/files/ja/web/api/idbfactory/cmp/index.html new file mode 100644 index 0000000000..6c52d63e05 --- /dev/null +++ b/files/ja/web/api/idbfactory/cmp/index.html @@ -0,0 +1,152 @@ +--- +title: IDBFactory.cmp +slug: Web/API/IDBFactory/cmp +tags: + - API + - Database + - IDBFactory + - IndexedDB + - Storage + - cmp +translation_of: Web/API/IDBFactory/cmp +--- +<p>{{ APIRef("IDBFactory") }}</p> +<div> + <p>{{domxref("IDBFactory")}}インターフェイスの<code>cmp()</code>メソッドは、2つのキーが等価か決定するために比較し、そして、IndexedDBで保存や統合のような操作を命令します。</p> +</div> +<div class="note"> + <p><strong>Note</strong>: Do not use this method for comparing arbitrary JavaScript values, because many JavaScript values are either not valid IndexedDB keys (booleans and objects, for example) or are treated as equivalent IndexedDB keys (for example, since IndexedDB ignores arrays with non-numeric properties and treats them as empty arrays, so any non-numeric arrays are treated as equivalent). This throws an exception if either of the values is not a valid key.</p> +</div> +<h2 id="構文">構文</h2> +<pre class="brush: js">var result = window.indexedDB.cmp(a, b);</pre> +<h3 id="戻り値">戻り値</h3> +<p>比較結果を示す整数値。 次のテーブルに可能性のある値とその意味を載せます。:</p> +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">戻り値</th> + <th scope="col">説明</th> + </tr> + <tr> + <td>-1</td> + <td>1つ目のキーが2つ目のキーより小さい</td> + </tr> + <tr> + <td>0</td> + <td>1つ目のキーと2つ目のキーが等しい</td> + </tr> + <tr> + <td>1</td> + <td>1つ目のキーが2つ目のキーより大きい</td> + </tr> + </tbody> +</table> +<h3 id="例外">例外</h3> +<p>このメソッドでは、次の型のような{{domxref("DOMError")}} を持つ {{domxref("DOMException")}}が発生するかもしれません。</p> +<table class="standard-table"> + <thead> + <tr> + <th scope="col">属性</th> + <th scope="col">説明</th> + </tr> + <tr> + <td><a href="/en-US/docs/DOM/DOMError"><code>DataError</code></a></td> + <td>渡されたキーが不正な値である。</td> + </tr> + </thead> +</table> +<h2 id="例">例</h2> +<pre class="brush: js;highlight:[3]">var a = 1; +var b = 2; +var result = window.indexedDB.cmp(a, b); +console.log( "Comparison results: " + result );</pre> +<h2 id="パラメーター">パラメーター</h2> +<dl> + <dt> + first</dt> + <dd> + 比較する1つ目のキー。</dd> + <dt> + second</dt> + <dd> + 比較する2つ目のキー。</dd> +</dl> +<h2 id="仕様">仕様</h2> +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('IndexedDB', '#widl-IDBFactory-cmp-short-any-first-any-second', 'cmp')}}</td> + <td>{{Spec2('IndexedDB')}}</td> + <td> </td> + </tr> + </tbody> +</table> +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザ実装状況</h2> +<div> + {{CompatibilityTable}}</div> +<div id="compat-desktop"> + <table class="compat-table"> + <tbody> + <tr> + <th>Feature</th> + <th>Chrome</th> + <th>Firefox (Gecko)</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari (WebKit)</th> + </tr> + <tr> + <td>Basic support</td> + <td>23{{property_prefix("webkit")}}<br> + 24</td> + <td>10 {{property_prefix("moz")}}<br> + {{CompatGeckoDesktop("16.0")}}</td> + <td>10, partial</td> + <td>15</td> + <td>7.1</td> + </tr> + </tbody> + </table> +</div> +<div id="compat-mobile"> + <table class="compat-table"> + <tbody> + <tr> + <th>Feature</th> + <th>Android</th> + <th>Firefox Mobile (Gecko)</th> + <th>Firefox OS</th> + <th>IE Phone</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>Basic support</td> + <td>4.4</td> + <td>{{CompatGeckoMobile("22.0")}}</td> + <td>1.0.1</td> + <td>10</td> + <td>22</td> + <td>{{CompatNo}}</td> + </tr> + </tbody> + </table> +</div> +<div class="warning"> + <p>Chromeは新しい仕様を実装していますが、旧い仕様も実装したままになっているので注意してください。同じように、ベンダプレフィックスなしのindexedDBがあるにもかかわらず、プレフィックス付きのwebkitIndexedDBも実装しています。</p> +</div> +<h2 id="関連情報">関連情報</h2> +<ul> + <li><a href="/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB">Using IndexedDB</a></li> + <li>Starting transactions: {{domxref("IDBDatabase")}}</li> + <li>Using transactions: {{domxref("IDBTransaction")}}</li> + <li>Setting a range of keys: {{domxref("IDBKeyRange")}}</li> + <li>Retrieving and making changes to your data: {{domxref("IDBObjectStore")}}</li> + <li>Using cursors: {{domxref("IDBCursor")}}</li> + <li>Reference example: <a class="external" href="https://github.com/mdn/to-do-notifications/tree/gh-pages">To-do Notifications</a> (<a class="external" href="http://mdn.github.io/to-do-notifications/">view example live</a>.)</li> +</ul> diff --git a/files/ja/web/api/idbfactory/deletedatabase/index.html b/files/ja/web/api/idbfactory/deletedatabase/index.html new file mode 100644 index 0000000000..913c6d04c7 --- /dev/null +++ b/files/ja/web/api/idbfactory/deletedatabase/index.html @@ -0,0 +1,129 @@ +--- +title: IDBFactory.deleteDatabase +slug: Web/API/IDBFactory/deleteDatabase +tags: + - API + - IDBFactory + - IndexedDB + - Storage + - deleteDatabase +translation_of: Web/API/IDBFactory/deleteDatabase +--- +<p>{{ APIRef("IDBFactory") }}</p> +<div> + <p>{{domxref("IDBFactory")}}インターフェイスの<code>deleteDatabase()</code>メソッドは、データベースの削除を要求します。 このメソッドは直ちに{{domxref("IDBOpenDBRequest")}} オブジェクトを返し、非同期でデータベースの削除処理を行います。</p> +</div> +<p>データベースの削除が成功した場合、 このメソッドから返されたrequestオブジェクトにおいて、resultにnullが設定された状態でsuccessイベントが発生します。 データベースの削除中にエラーが発生した場合、このメソッドから返されたrequestオブジェクトで、errorイベントが発生します。</p> +<h2 id="構文">構文</h2> +<p>現在の標準:</p> +<pre class="brush: js">var request = window.indexedDB.deleteDatabase("toDoList");</pre> +<p><span class="idlInterface"><span class="idlMethod"><code>オプション付の実験バージョン</code> (下を見てください):</span></span></p> +<pre class="brush: js">var request = window.indexedDB.deleteDatabase("toDoList", storage: "temporary");</pre> +<h3 id="戻り値">戻り値</h3> +<p>この要求に関連のある連続したイベントが発生する{{domxref("IDBOpenDBRequest")}}。</p> +<h2 id="例">例</h2> +<pre class="brush: js">var DBDeleteRequest = window.indexedDB.deleteDatabase("toDoList"); + +DBDeleteRequest.onerror = function(event) { + console.log("Error deleting database."); +}; + +DBDeleteRequest.onsuccess = function(event) { + console.log("Database deleted successfully"); + + console.log(request.result); // should be null +}; +</pre> +<h2 id="パラメーター">パラメーター</h2> +<dl> + <dt> + name</dt> + <dd> + データベース名</dd> + <dt> + options {{ NonStandardBadge() }}</dt> + <dd> + Geckoの<a href="/en-US/Firefox/Releases/26">version 26</a>から、永続的な(既定値)IndexedDBまたは、一時的なストレージ(shared pool)を削除するための、標準化されていないオプションのストレージパラメーターを含めることができます。</dd> +</dl> +<div class="note"> + <p><strong>Note</strong>: Data in temporary storage persists until the global limit for the pool is reached. The global limit calculation is relatively complex, but we are considering changing it (see {{ Bug("968272") }}). When the global limit is reached, then data for the least recently used origin is deleted. There's also a group limit (eTLD+1 group/domain) which is currently 20% of the global limit. All requests that would exceed the group limit are just rejected.</p> +</div> +<h2 id="仕様">仕様</h2> +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('IndexedDB', '#widl-IDBFactory-deleteDatabase-IDBOpenDBRequest-DOMString-name', 'deleteDatabase')}}</td> + <td>{{Spec2('IndexedDB')}}</td> + <td> </td> + </tr> + </tbody> +</table> +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザ実装状況</h2> +<div> + {{CompatibilityTable}}</div> +<div id="compat-desktop"> + <table class="compat-table"> + <tbody> + <tr> + <th>Feature</th> + <th>Chrome</th> + <th>Firefox (Gecko)</th> + <th>Internet Explorer</th> + <th>Opera</th> + <th>Safari (WebKit)</th> + </tr> + <tr> + <td>Basic support</td> + <td>23{{property_prefix("webkit")}}<br> + 24</td> + <td>10 {{property_prefix("moz")}}<br> + {{CompatGeckoDesktop("16.0")}}</td> + <td>10, partial</td> + <td>15</td> + <td>7.1</td> + </tr> + </tbody> + </table> +</div> +<div id="compat-mobile"> + <table class="compat-table"> + <tbody> + <tr> + <th>Feature</th> + <th>Android</th> + <th>Firefox Mobile (Gecko)</th> + <th>Firefox OS</th> + <th>IE Phone</th> + <th>Opera Mobile</th> + <th>Safari Mobile</th> + </tr> + <tr> + <td>Basic support</td> + <td>4.4</td> + <td>{{CompatGeckoMobile("22.0")}}</td> + <td>1.0.1</td> + <td>10</td> + <td>22</td> + <td>{{CompatNo}}</td> + </tr> + </tbody> + </table> +</div> +<div class="warning"> + <p>Chromeは新しい仕様を実装していますが、旧い仕様も実装したままになっているので注意してください。同じように、ベンダプレフィックスなしのindexedDBがあるにもかかわらず、プレフィックス付きのwebkitIndexedDBも実装しています。</p> +</div> +<h2 id="関連情報">関連情報</h2> +<ul> + <li><a href="/en-US/docs/Web/API/IndexedDB_API/Using_IndexedDB">Using IndexedDB</a></li> + <li>Starting transactions: {{domxref("IDBDatabase")}}</li> + <li>Using transactions: {{domxref("IDBTransaction")}}</li> + <li>Setting a range of keys: {{domxref("IDBKeyRange")}}</li> + <li>Retrieving and making changes to your data: {{domxref("IDBObjectStore")}}</li> + <li>Using cursors: {{domxref("IDBCursor")}}</li> + <li>Reference example: <a class="external" href="https://github.com/mdn/to-do-notifications/tree/gh-pages">To-do Notifications</a> (<a class="external" href="http://mdn.github.io/to-do-notifications/">view example live</a>.)</li> +</ul> diff --git a/files/ja/web/api/idbfactory/index.html b/files/ja/web/api/idbfactory/index.html new file mode 100644 index 0000000000..2d9c531234 --- /dev/null +++ b/files/ja/web/api/idbfactory/index.html @@ -0,0 +1,109 @@ +--- +title: IDBFactory +slug: Web/API/IDBFactory +tags: + - API + - HTTP + - IndexedDB + - Interface + - Offline + - Reference + - Storage +translation_of: Web/API/IDBFactory +--- +<p>{{APIRef("IndexedDB")}}</p> + +<div> +<p><a href="/ja/docs/IndexedDB">IndexedDB API</a> の <strong><code>IDBFactory</code></strong> インターフェイスは、indexedDB への非同期アクセスを提供します。 このインターフェイスを実装するオブジェクトは、<code>window.indexedDB</code> です。このオブジェクトを使用すれば、<code>IDBFactory</code> インターフェイスに直接アクセスせずに、IndexedDB を開いたり (生成したり接続したり)、削除したりできます。</p> + +<p>{{AvailableInWorkers}}</p> +</div> + +<h2 id="Methods" name="Methods">メソッド</h2> + +<dl> + <dt>{{domxref("IDBFactory.open")}}</dt> + <dd><a href="/docs/IndexedDB#gloss_database_connection">データベースへの接続</a>を開く要求をする現在のメソッドです。</dd> + <dt>{{domxref("IDBFactory.deleteDatabase")}}</dt> + <dd>データベースの削除を要求するメソッドです。</dd> + <dt>{{domxref("IDBFactory.cmp")}}</dt> + <dd>2 つのキーを比較して、大きいほうの値を戻り値として返すメソッドです。</dd> + <dt>{{domxref("IDBFactory.databases")}}</dt> +</dl> + +<h2 id="Example" name="Example">例</h2> + +<p>次のコードスニペットでは、 データベースを開く要求をし、 成功の場合と失敗の場合のイベントハンドラーを登録しています。完全に動作する例は、<a class="external" href="https://github.com/mdn/to-do-notifications/tree/gh-pages">To-do Notifications</a> app (<a class="external" href="http://mdn.github.io/to-do-notifications/">view example live</a>.) を見てください。</p> + +<pre class="brush:js;highlight:[10]">var note = document.querySelector("ul"); + +// In the following line, you should include the prefixes of implementations you want to test. +window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; +// DON'T use "var indexedDB = ..." if you're not in a function. +// Moreover, you may need references to some window.IDB* objects: +window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction; +window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange || window.msIDBKeyRange; +// (Mozilla has never prefixed these objects, so we don't need window.mozIDB*) + +// Let us open version 4 of our database +var DBOpenRequest = window.indexedDB.open("toDoList", 4); + +// these two event handlers act on the database being opened successfully, or not +DBOpenRequest.onerror = function(event) { + note.innerHTML += '<li>Error loading database.</li>'; +}; + +DBOpenRequest.onsuccess = function(event) { + note.innerHTML += '<li>Database initialised.</li>'; + + // store the result of opening the database in the db variable. This is used a lot later on, for opening transactions and suchlike. + db = DBOpenRequest.result; +}; +</pre> + +<h2 id="Specifications" name="Specifications">仕様</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">仕様書</th> + <th scope="col">策定状況</th> + <th scope="col">備考</th> + </tr> + <tr> + <td>{{SpecName("IndexedDB", "#idl-def-IDBFactory", "IDBFactory")}}</td> + <td>{{Spec2("IndexedDB")}}</td> + <td></td> + </tr> + <tr> + <td>{{SpecName("IndexedDB 2", "#factory-interface", "IDBFactory")}}</td> + <td>{{Spec2("IndexedDB 2")}}</td> + <td></td> + </tr> + <tr> + <td>{{SpecName("IndexedDB 3", "#factory-interface", "IDBFactory")}}</td> + <td>{{Spec2("IndexedDB 3")}}</td> + <td></td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの実装状況</h2> + +<div> +<div class="hidden">The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</div> + +<p>{{Compat("api.IDBFactory")}}</p> +</div> + +<h2 id="See_also" name="See_also">関連情報</h2> + +<ul> + <li><a href="/ja/docs/Web/API/IndexedDB_API/Using_IndexedDB">Using IndexedDB</a></li> + <li>Starting transactions: {{domxref("IDBDatabase")}}</li> + <li>Using transactions: {{domxref("IDBTransaction")}}</li> + <li>Setting a range of keys: {{domxref("IDBKeyRange")}}</li> + <li>Retrieving and making changes to your data: {{domxref("IDBObjectStore")}}</li> + <li>Using cursors: {{domxref("IDBCursor")}}</li> + <li>Reference example: <a class="external" href="https://github.com/mdn/to-do-notifications/tree/gh-pages">To-do Notifications</a> (<a class="external" href="http://mdn.github.io/to-do-notifications/">view example live</a>.)</li> +</ul> diff --git a/files/ja/web/api/idbfactory/open/index.html b/files/ja/web/api/idbfactory/open/index.html new file mode 100644 index 0000000000..3946909f0b --- /dev/null +++ b/files/ja/web/api/idbfactory/open/index.html @@ -0,0 +1,155 @@ +--- +title: IDBFactory.open +slug: Web/API/IDBFactory/open +tags: + - Database + - IDBFactory + - Storage + - open +translation_of: Web/API/IDBFactory/open +--- +<div>{{APIRef("IDBFactory")}}</div> + +<div> +<p>{{domxref("IDBFactory")}} インターフェイスの <strong><code>open()</code></strong> メソッドは、<a href="/ja/docs/IndexedDB#gloss_database_connection">データベースへの接続</a>を開くことを要求します。</p> + +<p>このメソッドは即座に {{domxref("IDBOpenDBRequest")}} オブジェクトを返し、そして非同期でデータベースを開きます。操作が成功した場合、このメソッドから返される request オブジェクトに result の属性として接続のための新しい {{domxref("IDBDatabase")}} オブジェクトが設定されて、 success イベントが発生します。</p> +</div> + +<p>データベースとの接続の間にエラーが発生した場合、このメソッドで返される request オブジェクトで、 <a href="/ja/docs/IndexedDB/IDBErrorEvent">error イベント</a>が発生します。</p> + +<p><code>upgradeneeded</code>, <code>blocked</code>, <code>versionchange</code> イベントが発生することもあります。</p> + +<p>{{AvailableInWorkers}}</p> + +<h2 id="Syntax" name="Syntax">構文</h2> + +<p>現在の標準では:</p> + +<pre class="syntaxbox">var <var>IDBOpenDBRequest</var> = <var>indexedDB</var>.open(<var>name</var>); +var <var>IDBOpenDBRequest</var> = <var>indexedDB</var>.open(<var>name</var>, <var>version</var>); +</pre> + +<h3 id="Parameters" name="Parameters">引数</h3> + +<dl> + <dt>name</dt> + <dd>データベースの名前。</dd> + <dt>version {{optional_inline}}</dt> + <dd>省略可。データベースを開くバージョン。バージョンが提供されずにデータベースが存在した場合、データベースへの接続はバージョンを変更せずに開かれます。バージョンが提供されず、データベースも存在しなかった場合、バージョン番号 <code>1</code> が生成されます。</dd> +</dl> + +<h4 id="Experimental_Gecko_options_oject" name="Experimental_Gecko_options_oject">実験的な Gecko の options オブジェクト</h4> + +<dl> + <dt>options (version および storage) {{optional_inline}} {{deprecated_inline}}</dt> + <dd>Gecko では、<a href="/ja/Firefox/Releases/26">バージョン 26</a> から、標準外の <code>options</code> オブジェクトを {{ domxref("IDBFactory.open") }} の引数として指定することができ、データベースの <code>version</code> 番号と、加えてストレージに <code>persistent</code> (永続的) または <code>temporary</code> (一時的) のどちらを使用したいかを指定する storage 値を指定することができます。 + <div class="warning"><strong>警告:</strong> <code>storage</code> 属性は非推奨であり、まもなく Gecko から削除される予定です。永続的なストレージを得るには、代わりに {{domxref("StorageManager.persist()")}} を使用してください。</div> + </dd> +</dl> + +<div class="note"> +<p><strong>メモ</strong>: 利用可能な様々なストレージ種別における詳細情報や、 Firefox がクライアント側データストレージを扱う方法については、 <a href="/ja/docs/Web/API/IndexedDB_API/Browser_storage_limits_and_eviction_criteria">ブラウザーのストレージ制限と削除基準</a>で見つけることができます。</p> +</div> + +<h3 id="Return_value" name="Return_value">返値</h3> + +<p>この要求に関連のある連続したイベントが発生する {{domxref("IDBOpenDBRequest")}} オブジェクト。</p> + +<h3 id="Exceptions" name="Exceptions">例外</h3> + +<p>このメソッドは、次の型のような <a href="/ja/docs/DOM/DOMError">DOMError</a> を持つ {{domxref("DOMException")}} が発生する可能性があります。</p> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">例外</th> + <th scope="col">説明</th> + </tr> + </thead> + <tbody> + <tr> + <td><code>TypeError</code></td> + <td>バージョンの値がゼロかマイナスの値、または数値でない場合。</td> + </tr> + </tbody> +</table> + +<h2 id="Example" name="Example">例</h2> + +<p><code>open</code> を現在の仕様書の <code>version</code> 引数を付けて呼び出す例です。</p> + +<pre class="brush: js">var request = window.indexedDB.open("toDoList", 4);</pre> + +<p>次のコードスニペットは、データベースを開く要求をして、成功の場合と失敗の場合のイベントハンドラを登録しています。完璧に動作する例は、 <a class="external" href="https://github.com/mdn/to-do-notifications/tree/gh-pages">To-do Notifications</a> app (<a class="external" href="http://mdn.github.io/to-do-notifications/">view example live</a>.) を見てください。</p> + +<pre class="brush:js">var note = document.querySelector("ul"); + +// In the following line, you should include the prefixes +// of implementations you want to test. +window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; +// DON'T use "var indexedDB = ..." if you're not in a function. +// Moreover, you may need references to some window.IDB* objects: +window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction; +window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange || window.msIDBKeyRange; +// (Mozilla has never prefixed these objects, so we don't +// need window.mozIDB*) + +// Let us open version 4 of our database +var DBOpenRequest = window.indexedDB.open("toDoList", 4); + +// these two event handlers act on the database being opened +// successfully, or not +DBOpenRequest.onerror = function(event) { + note.innerHTML += '<li>Error loading database.</li>'; +}; + +DBOpenRequest.onsuccess = function(event) { + note.innerHTML += '<li>Database initialised.</li>'; + + // store the result of opening the database in the db + // variable. This is used a lot later on, for opening + // transactions and suchlike. + db = DBOpenRequest.result; +}; +</pre> + +<h2 id="Specifications" name="Specifications">仕様書</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">仕様書</th> + <th scope="col">状態</th> + <th scope="col">備考</th> + </tr> + <tr> + <td>{{SpecName('IndexedDB', '#widl-IDBFactory-open-IDBOpenDBRequest-DOMString-name-unsigned-long-long-version', 'open()')}}</td> + <td>{{Spec2('IndexedDB')}}</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName("IndexedDB 2", "#dom-idbfactory-open", "open()")}}</td> + <td>{{Spec2("IndexedDB 2")}}</td> + <td> </td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2> + +<p class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</p> + +<p>{{Compat("api.IDBFactory.open")}}</p> + +<h2 id="See_also" name="See_also">関連情報</h2> + +<ul> + <li><a href="/ja/docs/Web/API/IndexedDB_API/Using_IndexedDB">Using IndexedDB</a></li> + <li>Starting transactions: {{domxref("IDBDatabase")}}</li> + <li>Using transactions: {{domxref("IDBTransaction")}}</li> + <li>Setting a range of keys: {{domxref("IDBKeyRange")}}</li> + <li>Retrieving and making changes to your data: {{domxref("IDBObjectStore")}}</li> + <li>Using cursors: {{domxref("IDBCursor")}}</li> + <li>Reference example: <a class="external" href="https://github.com/mdn/to-do-notifications/tree/gh-pages">To-do Notifications</a> (<a class="external" href="http://mdn.github.io/to-do-notifications/">view example live</a>.)</li> +</ul> |
