@aeca/client
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

Aeca Javascript Client

A Javascript client for Aeca database server.

Installation

npm install @aeca/client

Example

const collection = "aeca.js.test"
const channel = new Channel("localhost", 10080)
const doc_db = new DocumentDB(channel)

await doc_db.createCollection(collection, indexes)
const data = [
  { doc_id: "1", author: "jaepil", content: "get started" },
  { doc_id: "2", author: "finn", content: "vector database cookbook" },
]
await doc_db.insert(collection, data)

const df = await doc_db.find(collection, { author: "finn" })

Package Sidebar

Install

npm i @aeca/client

Homepage

aeca.ai

Weekly Downloads

1

Version

0.1.6

License

Apache-2.0

Unpacked Size

4.04 MB

Total Files

6

Last publish

Collaborators

  • aeca