From 1b455dbce8f50ad1db6f8f2823522435945f09c7 Mon Sep 17 00:00:00 2001 From: albertlockett Date: Wed, 3 Jan 2024 14:49:19 -0500 Subject: [PATCH] fix saas test --- docs/src/javascript/saas-modules.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/src/javascript/saas-modules.md b/docs/src/javascript/saas-modules.md index 08318e7b..5c24e909 100644 --- a/docs/src/javascript/saas-modules.md +++ b/docs/src/javascript/saas-modules.md @@ -37,8 +37,10 @@ yet support Windows or musl-based Linux (such as Alpine Linux). ## Example code ```javascript -// connect to a remote DB const lancedb = require('vectordb'); +const { Schema, Field, Int32, FixedSizeList, Float32 } = require('apache-arrow/Arrow.node') + +// connect to a remote DB const db = await lancedb.connect({ uri: "db://your-project-name", apiKey: "sk_...", @@ -58,11 +60,11 @@ const schema = new Schema( new Field('price', new Float32()) ] ) -const table = await db.createTable( - tableName, +const table = await db.createTable({ + name: tableName, schema, - data -) +}, data) + // list the table const tableNames_1 = await db.tableNames('') // add some data and search should be okay