Skip to content

Commit d450021

Browse files
author
Yu Chen
committed
feat: add lance-graph-cli crate with lgraph binary for Cypher-to-SQL translation
Adds a CLI tool that translates Cypher queries into SQL for various dialects (default, spark, postgresql, mysql, sqlite) using a JSON config file that describes the graph schema. Co-authored-by: Isaac
1 parent 6eaffe7 commit d450021

4 files changed

Lines changed: 328 additions & 0 deletions

File tree

Cargo.lock

Lines changed: 96 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
members = [
33
"crates/lance-graph",
44
"crates/lance-graph-catalog",
5+
"crates/lance-graph-cli",
56
"crates/lance-graph-python",
67
"crates/lance-graph-benches",
78
]

crates/lance-graph-cli/Cargo.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[package]
2+
name = "lance-graph-cli"
3+
version = "0.5.3"
4+
edition = "2021"
5+
license = "Apache-2.0"
6+
authors = ["Lance Devs <dev@lancedb.com>"]
7+
repository = "https://github.com/lancedb/lance-graph"
8+
description = "CLI tool for translating Cypher queries to SQL"
9+
keywords = ["lance", "graph", "cypher", "sql", "cli"]
10+
categories = ["command-line-utilities", "database"]
11+
12+
[[bin]]
13+
name = "lgraph"
14+
path = "src/main.rs"
15+
16+
[dependencies]
17+
arrow-array = "56.2"
18+
arrow-schema = "56.2"
19+
clap = { version = "4", features = ["derive"] }
20+
lance-graph = { path = "../lance-graph", version = "0.5.3", default-features = false }
21+
serde = { version = "1", features = ["derive"] }
22+
serde_json = "1"
23+
tokio = { version = "1.37", features = ["macros", "rt-multi-thread"] }

0 commit comments

Comments
 (0)