- Nov 2023
-
developer.chrome.com developer.chrome.com
-
<div itemscope itemtype="http://schema.org/Code"> ```js let db; const DBOpenRequest = window.indexedDB.open("toDoList", 4); DBOpenRequest.onsuccess = (event) => { db = DBOpenRequest.result; }; const transaction = db.transaction( ['toDoList'], 'readwrite', { durability: 'strict' }); ``` </div>
-
- Aug 2023
-
dev.to dev.to
-
dexie.org dexie.org
Tags
Annotators
URL
-
- Dec 2022
-
dexie.org dexie.org
-
```js import React from "react"; import Dexie from "dexie"; import { useLiveQuery } from "dexie-react-hooks"; import { db } from "./db";
// // React component // export function OldFriendsList() { const friends = useLiveQuery( () => db.friends .where('age') .above(75) .toArray() );
if (!friends) return null; // Still loading.
return
-
{ friends.map(friend =>
- {friend.name}, {friend.age} ) }
-
-
bugs.webkit.org bugs.webkit.org
Tags
Annotators
URL
-
-
codepen.io codepen.io
Tags
Annotators
URL
-
-
gist.github.com gist.github.com
-
stackoverflow.com stackoverflow.com
- Nov 2022
-
gist.github.com gist.github.com
-
Intended use - store a database in a Tampermonkey storage in order to access cross sites.
-
- Aug 2022
-
www.codeproject.com www.codeproject.com
-
stackblitz.com stackblitz.com
Tags
Annotators
URL
-
-
gist.github.com gist.github.com
-
golb.hplar.ch golb.hplar.ch
Tags
Annotators
URL
-
-
golb.hplar.ch golb.hplar.ch
-
javascript.info javascript.info
-
- Jul 2022
-
dexie.org dexie.org
-
stackoverflow.com stackoverflow.com
-
```js const dbName = 'CustomPeople';
const exists = await Dexie.exists(dbName);
if (exists) { var db = new Dexie(dbName); const dynamicDB = await db.open(); const existingVersionNumber = dynamicDB.verno; const columns = await ExternalDBService.getColumns(); db.close(); db = new Dexie(dbName); db.version(existingVersionNumber).stores({ People: columns }); return db.open(); } else { db = new Dexie(dbName); db.version(1).stores({ People: [] }); db.open(); } ```
-
-
dexie.org dexie.org
-
-
developer.mozilla.org developer.mozilla.orgIDBIndex1
Tags
Annotators
URL
-
-
chowdera.com chowdera.com
Tags
Annotators
URL
-
- Mar 2022
-
riffle.systems riffle.systems
Tags
Annotators
URL
-
- Feb 2022
-
localforage.github.io localforage.github.io
Tags
Annotators
URL
-
- Oct 2018
-
github.com github.com
Tags
Annotators
URL
-
-
github.com github.com
Tags
Annotators
URL
-
-
www.w3.org www.w3.org
-
-
developers.google.com developers.google.com
-
wicg.github.io wicg.github.io
Tags
Annotators
URL
-