1.0.5 • Published 7 years ago

dollidb v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

DolliDB

Overview

DolliDB was inspired by Reddit's Thing DB. In DolliDB there are Items and there is Data. Each Item has Data associated with it. For example, say you want to store a list of Users and their details. There would be a User Item table, which would have an ID and any fields that would be indexable. Items would be arbitray data that is linked to the User item by its ID. Each Item has an ItemID that references the item it belongs to.

Under the hood DolliDB coverts objects to paths. This allows for easy writing and updating of deeply nested, artibtraily named objects.

Here's an example of how DolliDB would convert an object to paths:

  const userData = {
    address: {
      street: '1 Sansome',
      state: 'CA',
      city: 'San Francisco',
    },
    name: 'Chester',
  }

Say we created a User item with the ID as 1. The above object would be converted to the following and each primative field would be saved as its own row in Dynamo with 3 fields, ItemID, Path, and Value:

ItemIDPathValue
1address.street1 Sansome
1address.stateCA
1address.citySan Francisco
1nameChester
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago