From 8ce887ef5da1f9db2383e439a944c7ee6e219dde Mon Sep 17 00:00:00 2001 From: Eddie A Tejeda <669988+eddietejeda@users.noreply.github.com> Date: Wed, 3 Jun 2026 17:46:17 -0700 Subject: [PATCH 1/2] fix(databases): rename --description to --name in databases run Align `databases run` with `databases create`, which already uses --name for the catalog alias of the auto-created database. --- src/command.rs | 4 ++-- src/databases.rs | 8 ++++---- src/main.rs | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/command.rs b/src/command.rs index 82d15ae..2384764 100644 --- a/src/command.rs +++ b/src/command.rs @@ -639,9 +639,9 @@ pub enum DatabasesCommands { #[arg(long)] database: Option, - /// Description for the auto-created database (only used when --database is omitted) + /// Name for the auto-created database (only used when --database is omitted) #[arg(long)] - description: Option, + name: Option, /// Schema for tables declared in the auto-created database (default: public) #[arg(long, default_value = "public")] diff --git a/src/databases.rs b/src/databases.rs index 8fe6c07..e7f3030 100644 --- a/src/databases.rs +++ b/src/databases.rs @@ -453,13 +453,13 @@ pub fn get(workspace_id: &str, id_or_name: &str, format: &str) { /// the id instead of printing. fn create_and_return_id( api: &ApiClient, - description: Option<&str>, + name: Option<&str>, schema: &str, tables: &[String], expires_at: Option<&str>, ) -> String { use crossterm::style::Stylize; - let body = create_database_request(description, schema, tables, expires_at); + let body = create_database_request(name, schema, tables, expires_at); let (status, resp_body) = api.post_raw("/databases", &body); if !status.is_success() { eprintln!("{}", crate::util::api_error(resp_body).red()); @@ -493,7 +493,7 @@ fn mint_database_token(api: &ApiClient, database_id: &str) -> DatabaseTokenRespo pub fn run( database: Option<&str>, workspace_id: &str, - description: Option<&str>, + name: Option<&str>, schema: &str, tables: &[String], expires_at: Option<&str>, @@ -509,7 +509,7 @@ pub fn run( // for the child process, addressed only by the token we mint below. let database_id = match database { Some(id) => id.to_string(), - None => create_and_return_id(&api, description, schema, tables, expires_at), + None => create_and_return_id(&api, name, schema, tables, expires_at), }; let resp = mint_database_token(&api, &database_id); diff --git a/src/main.rs b/src/main.rs index 4c3c5c8..90b9c2d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -403,7 +403,7 @@ fn main() { // group-level name_or_id is treated as a `show` shorthand. if let Some(DatabasesCommands::Run { database, - description, + name, schema, tables, expires_at, @@ -414,7 +414,7 @@ fn main() { databases::run( db, &workspace_id, - description.as_deref(), + name.as_deref(), &schema, &tables, expires_at.as_deref(), From 73133308a86210a48714a7165cb6d34f62ab2140 Mon Sep 17 00:00:00 2001 From: Eddie A Tejeda <669988+eddietejeda@users.noreply.github.com> Date: Wed, 3 Jun 2026 17:52:16 -0700 Subject: [PATCH 2/2] fix(skills): update --description to --name in databases commands Align skill docs with the CLI change in #122: databases create and databases run both use --name, not --description. --- skills/hotdata-analytics/SKILL.md | 2 +- skills/hotdata/SKILL.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/skills/hotdata-analytics/SKILL.md b/skills/hotdata-analytics/SKILL.md index 5717240..12fcb63 100644 --- a/skills/hotdata-analytics/SKILL.md +++ b/skills/hotdata-analytics/SKILL.md @@ -89,7 +89,7 @@ hotdata results [--workspace-id ] [--output table|json Or managed parquet: ```bash - hotdata databases create --description "analytics" --table slice + hotdata databases create --name analytics --table slice hotdata databases set hotdata databases tables load slice --file ./slice.parquet ``` diff --git a/skills/hotdata/SKILL.md b/skills/hotdata/SKILL.md index 43684a8..3aee941 100644 --- a/skills/hotdata/SKILL.md +++ b/skills/hotdata/SKILL.md @@ -187,11 +187,11 @@ hotdata connections create \ ``` hotdata databases list [--workspace-id ] [--output table|json|yaml] -hotdata databases create [--description