Giter Site home page Giter Site logo

leegeunhyeok / bxd Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 2.0 2.97 MB

๐Ÿ“ฆ Object relational mapping for IndexedDB

Home Page: https://bxd.vercel.app

License: MIT License

TypeScript 99.51% JavaScript 0.49%
boxdb bxd database idb indexeddb orm

bxd's Introduction

mona-loading

๐Ÿ‘‹ Hi, there! I'm Geunhyeok LEE

profile

Code
import { Profile } from '@ghlee/profile';

new Profile()
  .printFullName() // Geunhyeok LEE
  .printDescription() // Someone who keep working for continuous growth ๐Ÿš€
  .printContacts();
  /**
  * {
  *   "email": "[email protected],
  *   "github": "leegeunhyeok",
  *   "linkedin": "in/dev-ghlee"
  * }
  */

bxd's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

idkwim pwfoo

bxd's Issues

autoIncrement not working?

Hi,
I played with autoIncrement value, but not sure if it not works how I expected.

Is autoIncrement key(Path) part of the data object?
For example if "id" is the keyPath autoIncrement I would like to omit "id" from my object I'll store to indexeddb?

example

User.add({ name: "User1", age: 105 }) // should be saved as { id: <autoIncrement>, name: "User1", age: 105 }

Is that possible with bxd / indexeddb?

[Question] Best way to filter like startsWith / wildcard in the end?

Hi,
great project! Thanks for sharing that!

I see two ways to filter in find method.

  1. range
  2. JS callback

Is there a performance difference between? I don't know how range or callback works. Feels like range will filter during query the indexeddb and to use callback the hole database or pre-filtered by range entries will retrieved?

Long question short. What is the best way to filter idb like startsWith() with performance in mind?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.