7.0.4-beta • Published 5 months ago

@creately/rxdata v7.0.4-beta

Weekly downloads
30
License
MIT
Repository
-
Last release
5 months ago

RxData

RxData is a schemaless reactive document database for web browsers. It is inspired by rxdb but uses localForage instead of pouchdb to store data.

Getting Started

Install @creately/rxdata module from npm.

npm install @creately/rxdata

Create a new database. Also create some collections to group similar data.

import { Database } from '@creately/rxdata'

const db = new Database('test-db')
const vehicles = db.collection('vehicles')

Query documents in a collection and subscribe to changes in result data.

vehicles
  .find({ tires: { $gte: 4 } })
  .subscribe(data => console.log('data:', data))

Use collection methods to query, insert, modify or remove documents.

await vehicles.insert({
  id: 'todo-1',
  title: 'write database module',
})

await vehicles.update(
  { id: 'todo-1' },
  { $set: { completed: true }},
)

await vehicles.remove(
  { id: 'todo-1' },
)
7.0.4-beta

5 months ago

7.0.2-beta

5 months ago

7.0.3-beta

5 months ago

7.0.1-beta

5 months ago

7.0.0-dev

5 months ago

6.1.0

1 year ago

6.2.1

1 year ago

6.2.0

1 year ago

6.2.3

1 year ago

6.2.2

1 year ago

6.2.4

1 year ago

6.0.1

1 year ago

6.0.0

1 year ago

5.1.4

3 years ago

5.1.3

5 years ago

5.1.2

5 years ago

5.1.1

5 years ago

5.1.0

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

4.3.5

6 years ago

4.3.3

7 years ago

4.3.2

7 years ago

4.3.1

7 years ago

4.3.0

7 years ago

4.2.0

7 years ago

4.1.4

7 years ago

4.1.3

7 years ago

4.1.2

7 years ago

4.1.1

7 years ago

4.1.0

7 years ago