0.6.11 • Published 2 years ago
@arsonar/core v0.6.11
@arsonar/core
A battery-including kappa database for hypercores.
Features
- Create and clone collections
- Add feeds to collections (using hypercores)
- Add data types (models) to collections
- Add data records to feeds
- Replicate collections between peers
- Blob store per collection
- Full-text search
- Pluggable query backends
- Remote queries (into the peer to peer swarm)
Example
const { Workspace } = require('@arsonar/workspace')
const workspace = new Workspace('/tmp/database')
const collection = await workspace.get('my-db')
// Create a type.
await collection.putType({
name: 'doc',
fields: { title: { type: 'string' } }
})
// Put json records.
await collection.put({ type: 'doc', value: { title: 'Hello, world!' })
// Make a query.
const results = await collection.query('search', 'hello', { sync: true })
console.log(results)
0.6.10
2 years ago
0.6.11
2 years ago
0.6.7
2 years ago
0.6.6
2 years ago
0.6.9
2 years ago
0.6.8
2 years ago
0.6.0-alpha.6
2 years ago
0.6.3
2 years ago
0.6.2
2 years ago
0.6.4
2 years ago
0.6.0-beta.1
2 years ago
0.6.0
2 years ago
0.6.0-alpha.5
2 years ago
0.6.0-alpha.3
2 years ago
0.6.0-alpha.4
2 years ago
0.6.0-alpha.1
2 years ago
0.6.0-alpha.2
2 years ago
0.5.0
3 years ago
0.4.0
3 years ago