Skip to content

Commit d1ce622

Browse files
committed
code fmt
1 parent 9ceefad commit d1ce622

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

clickgraph-tool/src/commands/query.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,7 @@ fn value_to_json(v: &Value) -> serde_json::Value {
175175
Value::String(s) | Value::Date(s) | Value::Timestamp(s) | Value::UUID(s) => {
176176
serde_json::Value::String(s.clone())
177177
}
178-
Value::List(items) => {
179-
serde_json::Value::Array(items.iter().map(value_to_json).collect())
180-
}
178+
Value::List(items) => serde_json::Value::Array(items.iter().map(value_to_json).collect()),
181179
Value::Map(pairs) => serde_json::Value::Object(
182180
pairs
183181
.iter()

clickgraph-tool/src/commands/schema.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use anyhow::{anyhow, Result};
22
use clickgraph::graph_catalog::{
3-
config::GraphSchemaConfig, llm_prompt, merge_batch_yaml,
4-
schema_discovery::SchemaDiscovery,
3+
config::GraphSchemaConfig, llm_prompt, merge_batch_yaml, schema_discovery::SchemaDiscovery,
54
};
65

76
use crate::{

docs/wiki/Embedded-Mode.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ use clickgraph_embedded::{Connection, Database, RemoteConfig};
9494
fn main() -> Result<(), Box<dyn std::error::Error>> {
9595
let remote = RemoteConfig {
9696
url: "http://localhost:8123".to_string(),
97-
user: Some("default".to_string()),
98-
password: None,
97+
user: "default".to_string(),
98+
password: String::new(),
9999
database: None,
100+
cluster_name: None,
100101
};
101102
let db = Database::new_remote("schema.yaml", remote)?;
102103
let conn = Connection::new(&db)?;

docs/wiki/Schema-Discovery.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export ANTHROPIC_API_KEY=sk-ant-...
3131
# Discover schema directly from ClickHouse
3232
cg schema discover \
3333
--clickhouse http://localhost:8123 \
34-
--ch-user your_user \
35-
--ch-password your_pass \
34+
--user your_user \
35+
--password your_pass \
3636
--database mydb \
3737
--out mydb_schema.yaml
3838

0 commit comments

Comments
 (0)