3.2.1 • Published 7 years ago

rxdata v3.2.1

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

RxData

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

Getting Started

Install rxjs and rxdata modules and add them to the package.json file.

npm install --save rxjs rxdata

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

import { Database } from 'rxdata'

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

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

vehicles
  .find({ tires: { $gte: 4 } })
  .value()
  .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' },
)
3.2.1

7 years ago

3.2.0

7 years ago

3.1.0

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago