[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
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

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)