[email protected]
Twitter
LinkedIn
Youtube
GitHub
  • Services
  • Blog
  • Dépôts
  • GitHub
  • CV
    • LinkedIn
    • PDF
  • Contact
Produit a été ajouté à votre panier

Chariot

Dexie.js: Une bibliothèque simple et robuste pour indexedDB (HTML5 Storage)

Juillet 16, 2015L'extrémité avantjfadev

Dexie.js est une bibliothèque simple et concise pour travailler avec les “Indexed Database API” ou IndexedDB.

IndexedDB est un moyen de stocker des données constamment dans le navigateur. Étant donné que permet la création d'applications web avec les fonctionnalités de requête améliorés, celles-ci peuvent être exécutés en ligne et hors ligne. IndexedDB est utile pour les applications qui stockent une grande quantité de données et les applications ne nécessitant pas une connexion permanente à Internet pour travailler.

Il peut aussi être très utile pour enregistrer des données au niveau local dans une application hybride par exemple.

Exemple d'utilisation:

/*
|---------------------------------------------
| Make a database connection
|---------------------------------------------
*/

var db = new Dexie('MyDatabase');

// Define a schema
db.version(1)
    .stores({
        friends: 'name, age'
    });

// Open the database
db.open()
    .catch(function(error){
        alert('Uh oh : ' + error);
    });


/*
|---------------------------------------------
| Then run some queries
|---------------------------------------------
*/

// Find some old friends
db.friends
    .where('age')
    .above(75)
    .each(function(friend){
        console.log(friend.name);
    });

// or make a new one
db.friends
    .add({
        name: 'Camilla',
        age: 25
    });

Web: dexie.org

Documentation: GitHub

Dépôt

A Minimalistic Wrapper for IndexedDB
https://github.com/dexie/Dexie.js
713 forks.
14,539 stars.
594 open issues.

Recent commits:
  • npm audit fix on samples/dexie-cloud-todo-app, David Fahlander
  • [email protected], David Fahlander
  • fix(dbcore): don't crash when an index is named 'constructor' (#2325)indexLookup in virtual-index-middleware.ts was a plain object literal,so declaring a table's primary key or an index with a keyPath equal toan inherited Object.prototype member (constructor, toString, valueOf,hasOwnProperty, etc.) made indexLookup[keyPathAlias] resolve throughthe prototype chain to that inherited value instead of undefined. The`|| []` fallback then never ran, and the followingindexList.push(virtualIndex) call threw "indexList.push is not afunction", crashing db.open() for any such schema.Use a null-prototype object for indexLookup so bracket lookups canonly ever see keys that were actually set on it.Added a regression test in test/tests-misc.js that declares an indexnamed 'constructor', opens the db, and adds/queries a row through it.Fixes #1920, GitHub
  • [email protected], David Fahlander
  • fix(dexie-cloud-addon): fall back to fetchTokens when refresh failsServer-side, refresh tokens issued via client_credentials (impersonation)now carry a client_id claim and get checked against that client row onevery 'refresh_token' grant (dexie-cloud PR #195) — so a revoked orexpired API client's refresh tokens correctly stop working, even if therefresh token's own exp claim (up to 3650 days) hasn't been reached yet.Client-side, login() had no recovery path for that case: a locallyunexpired refreshTokenExpiration was trusted blindly, and loadAccessToken()throwing on a 401 propagated straight out of login() uncaught.Now: a refresh failure (other than an OAuth redirect) falls through tothe same re-authentication path used for 'no refresh token', re-runningfetchTokens exactly as on first login. Customers with their own fetchTokens(e.g. server-side impersonation-based auth) get self-healing behavior:either silent re-mint under the hood if their own session is still valid,or their own challenge/login flow triggered if not — same as first login., David Fahlander

: Database, HTML5, IndexedDB, JS, Library, Storage, Web Developement

Services

  • Correction de bogues de votre site Wordpress $40.00 / heure
  • Bot Tok $45.00
  • Correction de bogues dans votre application PHP Symfony $50.00 / heure
  • Automatisation des tâches à l'aide de Node.js $50.00 / heure
  • Développement d'API REST avec Symfony $50.00 / heure

Blog

  • Comment payer avec une carte bancaire sur Cryptomus
  • Guide complet du débutant sur le tok bot: Commandes de terminal expliquées
  • Meilleur site pour gagner des vues sur TikTok
  • Chatbot Jfa Whatsapp
  • Bot pour TikTok

Explorer

  • Gratuit 10 J’aime Tiktok
  • Vues TikTok 2K gratuites
  • Gratuit 100 Favoris TikTok
  • Gratuit 300 Partages TikTok
  • Acheter des vues TikTok
  • Gratuit 100 J'aime Instagram
Twitter
LinkedIn
Youtube
GitHub

© 2013-2026 Jordi Fernandes Alves (@jfadev)