[email protected]
Twitter
LinkedIn
YouTube
GitHub
  • Servicios
  • Blog
  • Repositorios
  • GitHub
  • Currículum
    • LinkedIn
    • PDF
  • Contacto
Producto se añadió a tu carrito

Carro

Dexie.js: Una libreria simple y robusta para indexedDB (HTML5 Storage)

julio 16, 2015Front-Endjfadev

Dexie.js es una librería sencilla y concisa para trabajar con la “Indexed Database API” o IndexedDB.

IndexedDB es una manera de almacenar datos de manera persistente en el navegador. Dado que permite la creación de aplicaciones web con capacidades de consulta mejoradas, éstas pueden funcionar tanto en línea como fuera de línea. IndexedDB es útil para aplicaciones que almacenan una gran cantidad de datos y para aplicaciones que no necesitan de una conexión permanente a Internet para funcionar.

También puede ser muy útil para guardar datos en local en una app híbrida por ejemplo.

Ejemplo de uso:

/*
|---------------------------------------------
| 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

Documentacion: GitHub

Repository

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

Servicios

  • Corrección de errores Wordpressen su sitio de $40.00 / hora
  • Bot Tok $45.00
  • Corrección de errores en tu aplicación PHP Symfony $50.00 / hora
  • Automatización de tareas usando Node.js $50.00 / hora
  • Desarrollo API REST con Symfony $50.00 / hora

Blog

  • Cómo pagar con una tarjeta bancaria en Cryptomus
  • Guía completa para principiantes de Bot Tok: Comandos de terminal explicados
  • Mejor sitio para obtener vistas en TikTok
  • Jfa Whatsapp chatbot
  • TikTok Bot

Explorar

  • Gratis 10 Me gusta
  • Vistas gratuitas de 2K TikTok
  • Gratis 100 Favoritos de Tik Tok
  • Gratis 300 Acciones de TikTok
  • Comprar vistas de TikTok
  • Gratis 100 Me gusta en Instagram
Twitter
LinkedIn
YouTube
GitHub

© 2013-2026 Jordi Fernandes Alves (@jfadev)