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
-**`--type vector`** — pass your query as **plain text**, name the **source text column** (e.g. `title`). The server embeds the query at the same time, using the same provider that auto-embedded the column when the index was built — so distance metric, model, and dimensions all match automatically. No `OPENAI_API_KEY`, no client-side embedding, no need to know about the auto-generated `_embedding` column. Generated SQL: `vector_distance(col, 'query')` server-side.
Indexes attach to either a connection-table (`--connection-id` + `--schema` + `--table`) or a dataset (`--dataset-id`). The two scopes are mutually exclusive.
247
+
Indexes attach to either a catalog-table (`--catalog` + `--table`) or a dataset (`--dataset-id`). The two scopes are mutually exclusive.
Indexes attach to a **connection table** (`--connection-id` + `--schema` + `--table`) or a **dataset** (`--dataset-id`). Scopes are mutually exclusive for create/delete.
44
+
Indexes attach to a **catalog table** (`--catalog` + `--table`) or a **dataset** (`--dataset-id`). Scopes are mutually exclusive for create/delete.
45
+
46
+
**Note:**`indexes create` uses `--catalog`/`--table`; `indexes list` and `indexes delete` still use `--connection-id`/`--schema`/`--table`.
45
47
46
48
```bash
47
-
# List — workspace scan on connection tables (filter with -c / --schema / --table)
49
+
# List — workspace scan (filter with --connection-id / --schema / --table)
**Managed databases** are Hotdata-owned catalogs you create and populate yourself — no remote source to sync. Query them in SQL as **`<database_id>.<schema>.<table>`**. Prefer **`hotdata databases`** for this workflow.
183
183
184
-
**Parquet vs views:**`databases tables load` accepts **parquet only**. For SQL-query or saved-query materializations, use **`hotdata views create`**.
184
+
**Parquet vs datasets:**`databases tables load` accepts **parquet only**. For SQL-query or saved-query materializations, use **`hotdata datasets create`**.
185
185
186
186
**Active database:**`hotdata databases set <id_or_description>` saves the active database to config. All `databases tables` subcommands and all `context` commands default to the active database; pass **`--database <id>`** to override per-command.
187
187
188
188
```
189
189
hotdata databases list [--workspace-id <workspace_id>] [--output table|json|yaml]
-`create` — creates a new managed database. `--description` is an optional human-readable label (databases are addressed by id, not description). `--expires-at` accepts relative durations (`24h`, `7d`, `90m`) or an RFC 3339 timestamp; defaults to `24h` when omitted. Repeat `--table` to declare tables up front.
205
-
-`set` — saves `<id_or_description>` as the active database. Subsequent `databases tables` and `context` commands use it automatically.
206
-
-`<id_or_description>` — inspect one database (id, description, expires_at).
203
+
-`create` — creates a new managed database. `--name` sets the SQL catalog alias used in queries (`SELECT … FROM <name>.public.<table>`); must be `[a-z_][a-z0-9_]*`, globally unique, and omitting it means no expiry default. `--description` is an optional display label. `--expires-at` accepts relative durations (`24h`, `7d`, `90m`) or an RFC 3339 timestamp; defaults to `24h` when`--name` is omitted. Repeat `--table` to declare tables up front.
204
+
-`set` — saves `<id_or_name>` as the active database. Subsequent `databases tables` and `context` commands use it automatically.
205
+
-`<id_or_name>` — inspect one database (id, name, expires_at).
207
206
-`delete` — removes the managed database; clears the active-database config if it matched.
208
-
-`load` — shorthand with dot notation (`database.table` or `database.schema.table`). Schema defaults to `public`.
207
+
-`load` — loads a parquet file into a table. `--catalog` selects the database by name; defaults to the current database set via `databases set`. Schema defaults to `public`.
209
208
-`tables list` — lists tables with `TABLE` (`<database_id>.<schema>.<table>`), `SYNCED`, `LAST_SYNC`. Uses active database when `--database` is omitted.
210
209
-`tables load` — uploads a local parquet file (`--file`), a remote parquet URL (`--url`), or a pre-staged upload (`--upload-id`) and publishes with **replace** mode.
211
210
-`tables delete` — drops a table from the managed database.
0 commit comments