@infino-ai/infino 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/infino/index.d.ts +6 -0
- package/infino/index.js +8 -0
- package/infino/native.d.ts +13 -0
- package/package.json +7 -7
package/infino/index.d.ts
CHANGED
|
@@ -193,6 +193,12 @@ export declare class Table {
|
|
|
193
193
|
export declare class Connection {
|
|
194
194
|
private inner;
|
|
195
195
|
constructor(inner: any);
|
|
196
|
+
/**
|
|
197
|
+
* Provision the database this connection targets. On the hosted service this
|
|
198
|
+
* registers the database (throws if it already exists); on a local backend the
|
|
199
|
+
* catalog root is the database, so it is a no-op success.
|
|
200
|
+
*/
|
|
201
|
+
createDatabase(): void;
|
|
196
202
|
/** Create a table from an apache-arrow `Schema` or `{ column: type }`. */
|
|
197
203
|
createTable(name: string, schema: arrow.Schema | SchemaDescriptor | Buffer, indexes: IndexSpec): Table;
|
|
198
204
|
openTable(name: string): Table;
|
package/infino/index.js
CHANGED
|
@@ -263,6 +263,14 @@ class Connection {
|
|
|
263
263
|
constructor(inner) {
|
|
264
264
|
this.inner = inner;
|
|
265
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* Provision the database this connection targets. On the hosted service this
|
|
268
|
+
* registers the database (throws if it already exists); on a local backend the
|
|
269
|
+
* catalog root is the database, so it is a no-op success.
|
|
270
|
+
*/
|
|
271
|
+
createDatabase() {
|
|
272
|
+
this.inner.createDatabase();
|
|
273
|
+
}
|
|
266
274
|
/** Create a table from an apache-arrow `Schema` or `{ column: type }`. */
|
|
267
275
|
createTable(name, schema, indexes) {
|
|
268
276
|
return new Table(this.inner.createTable(name, schemaToIpc(schema), indexes));
|
package/infino/native.d.ts
CHANGED
|
@@ -34,6 +34,12 @@ export interface ConnectOptions {
|
|
|
34
34
|
* fast on bad credentials instead of on first use.
|
|
35
35
|
*/
|
|
36
36
|
validate?: boolean
|
|
37
|
+
/**
|
|
38
|
+
* API key for a hosted (`https://<host>/<db>`) connect target, sent as a
|
|
39
|
+
* bearer credential. Ignored by local backends; falls back to the
|
|
40
|
+
* `INFINO_API_KEY` environment variable when omitted.
|
|
41
|
+
*/
|
|
42
|
+
apiKey?: string
|
|
37
43
|
}
|
|
38
44
|
/** Tuning for `optimize`; all fields optional (omitted ⇒ engine default). */
|
|
39
45
|
export interface OptimizeOptions {
|
|
@@ -115,6 +121,13 @@ export declare class IndexSpec {
|
|
|
115
121
|
}
|
|
116
122
|
/** A catalog connection. `const db = connect(uri)`. */
|
|
117
123
|
export declare class Connection {
|
|
124
|
+
/**
|
|
125
|
+
* Provision the database this connection targets. For a hosted target it
|
|
126
|
+
* registers the database on the service (throws if it already exists); for
|
|
127
|
+
* a local backend the catalog root is the database, so this is a no-op
|
|
128
|
+
* success.
|
|
129
|
+
*/
|
|
130
|
+
createDatabase(): void
|
|
118
131
|
/**
|
|
119
132
|
* Create a table from an Arrow `Schema` (sent as an IPC `Buffer` —
|
|
120
133
|
* an empty `apache-arrow` table built with the schema) and an
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infino-ai/infino",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Fast search on object storage — SQL, full-text, and vector search.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
"apache-arrow": "^17"
|
|
83
83
|
},
|
|
84
84
|
"optionalDependencies": {
|
|
85
|
-
"infx-darwin-x64": "0.1.
|
|
86
|
-
"infx-darwin-arm64": "0.1.
|
|
87
|
-
"infx-linux-x64-gnu": "0.1.
|
|
88
|
-
"infx-linux-arm64-gnu": "0.1.
|
|
89
|
-
"infx-linux-x64-musl": "0.1.
|
|
90
|
-
"infx-linux-arm64-musl": "0.1.
|
|
85
|
+
"infx-darwin-x64": "0.1.9",
|
|
86
|
+
"infx-darwin-arm64": "0.1.9",
|
|
87
|
+
"infx-linux-x64-gnu": "0.1.9",
|
|
88
|
+
"infx-linux-arm64-gnu": "0.1.9",
|
|
89
|
+
"infx-linux-x64-musl": "0.1.9",
|
|
90
|
+
"infx-linux-arm64-musl": "0.1.9"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@napi-rs/cli": "^2.18.0",
|