You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Embedded-mode tests** live under `packages/seekdb/tests/embedded/` and use a temporary database path per test file. They do not require a seekdb/OceanBase server.
118
-
-**Server-mode tests** (under `packages/seekdb/tests/` but outside `embedded/`) connect to `127.0.0.1:2881` and require a local seekdb or OceanBase instance.
118
+
-**Server-mode tests** (under `packages/seekdb/tests/` but outside `embedded/`) connect to `127.0.0.1:2881` and require a local seekdb or OceanBase instance. Override with `SEEKDB_HOST`, `SEEKDB_PORT`, `SEEKDB_USER`, `SEEKDB_PASSWORD`, `SEEKDB_DATABASE`.
119
119
-**Mode consistency** tests (`tests/embedded/mode-consistency.test.ts`) run both embedded and server modes; they require the native addon and a server for the server part.
120
120
- Embedded test coverage vs server is documented in `packages/seekdb/tests/embedded/COVERAGE_REPORT.md`.
|`@seekdb/google-vertex`| Google Vertex AI embedding |
57
+
|`@seekdb/siliconflow`| SiliconFlow embedding API |
58
+
|`@seekdb/tencent-hunyuan`| Tencent Hunyuan embedding API |
44
59
45
60
## Installation
46
61
@@ -60,22 +75,21 @@ The SDK supports two modes; the constructor arguments to `SeekdbClient` determin
60
75
|**Embedded**|`path` (database directory path) | Runs locally with no separate seekdb server; data is stored under the given path (e.g. `./seekdb.db`). Requires native addon `@seekdb/js-bindings`. |
61
76
|**Server**|`host` (and `port`, `user`, `password`, etc.) | Connects to a remote seekdb or OceanBase instance. |
62
77
78
+
**OceanBase and seekdb**: OceanBase is compatible with seekdb and can be understood as its distributed, multi-tenant, etc. version. seekdb-js therefore supports **OceanBase server mode** with the same API: use the same `SeekdbClient` / `AdminClient` and connection parameters; when connecting to OceanBase, additionally pass `tenant` (e.g. `"sys"` or your tenant name). See [OceanBase mode](#oceanbase-mode-server-mode-with-tenant) below.
79
+
63
80
-**SeekdbClient**: Pass `path` for embedded mode, or `host` (and port, user, password, etc.) for server mode.
64
81
-**AdminClient()**: For admin operations only; pass `path` for embedded or `host` for server. In embedded mode you do not specify a database name.
@@ -135,19 +163,19 @@ const client = new SeekdbClient({
135
163
user: "root",
136
164
password: "",
137
165
database: "test",
138
-
// Required for OceanBase mode
139
-
// tenant: "sys",
140
166
});
141
167
```
142
168
143
-
**Embedded mode** (local database file):
169
+
**OceanBase mode** (server mode with tenant): OceanBase is compatible with seekdb (distributed, multi-tenant, etc.). Use the same server-mode connection; when the backend is OceanBase, pass `tenant` (e.g. `"sys"` or your tenant name):
Use `AdminClient()` for database management. It returns a `SeekdbClient` instance. In **embedded mode** you only pass `path`; no database name is required.
Copy file name to clipboardExpand all lines: examples/seekdb-prisma/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
Vector/hybrid search with seekdb-js and type-safe relational tables with Prisma.
4
4
5
5
-**Server mode** (`pnpm start`): same database, two connections (SeekdbClient + PrismaClient via `DATABASE_URL`).
6
-
-**Embedded mode** (`pnpm run start:embedded`): use [@seekdb/prisma-adapter](https://www.npmjs.com/package/@seekdb/prisma-adapter) so Prisma runs SQL via `client.execute()` — no MySQL server.
6
+
-**Embedded mode** (`pnpm run start:embedded`): use [@seekdb/prisma-adapter](https://www.npmjs.com/package/@seekdb/prisma-adapter) so Prisma runs SQL via `client.execute()`.
0 commit comments