[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
712 forks.
14,571 stars.
596 open issues.

Recent commits:
  • [email protected], David Fahlander
  • Remove package-lock files. We're using pnpm!, David Fahlander
  • [email protected], David Fahlander
  • fix(updating hook): keep modifications intact in minified bundle (#2333)Fixes #2330The closure returned by hookUpdatingChain declared a named firstparameter and forwarded arguments to the next subscriber. uglify-jsreuses the parameter name for a local (this.onsuccess). The minifiedUMD bundle has no "use strict", so in sloppy mode the parameteraliases arguments[0]: the onsuccess assignment overwrites arguments[0]with null just before it is forwarded, and every updating-hooksubscriber after the first receives null as its modifications.Drop the named parameter and read arguments[0] into a var local, thesame shape as hookCreatingChain and hookDeletingChain in this file,which have always been safe under the same minifier.Verified against built artifacts with three updating subscribers:- [email protected] npm dist/dexie.min.js: subscribers 2 and 3 get null- locally built pristine master dist/dexie.min.js: same failure- dist/dexie.min.js with this fix: all subscribers get the modifications- dist/dexie.js (strict mode dev bundle): unaffected before and afterThe new qunit test guards both the runtime behavior and thestructural contract (the composed closure must declare noparameters), since karma loads the dev bundle, which can neverexhibit the sloppy-mode aliasing that only the minified bundle has., GitHub
  • [email protected], 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)