Skip to content

Commit

Permalink
chsql_native
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani committed Dec 22, 2024
1 parent 5dd497b commit 13246db
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "clickhouse_native"
name = "chsql_native"
version = "0.1.0"
edition = "2021"

Expand All @@ -15,7 +15,7 @@ strip = true
# src/wasm_lib.rs forwards to src/lib.rs so that we can change from cdylib
# (that is needed while compiling natively) to staticlib (needed since the
# actual linking will be done via emcc
name = "clickhouse_native"
name = "chsql_native"
path = "src/wasm_lib.rs"
crate-type = ["staticlib"]

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PROJ_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))

# TODO: these values are currently duplicated in lib.rs. There's a PR open in duckdb-rs that fixes this
EXTENSION_NAME=clickhouse_native
EXTENSION_NAME=chsql_native
MINIMUM_DUCKDB_VERSION=v0.0.1

all: configure debug
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ This experimental rust extension allows reading ClickHouse Native Format databas
<!--
### 📦 Installation
```sql
INSTALL clickhouse_native FROM community;
LOAD clickhouse_native;
INSTALL chsql_native FROM community;
LOAD chsql_native;
```
-->

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ impl VTab for ClickHouseVTab {
}
}

#[duckdb_entrypoint_c_api(ext_name = "clickhouse_native", min_duckdb_version = "v0.0.1")]
#[duckdb_entrypoint_c_api(ext_name = "chsql_native", min_duckdb_version = "v0.0.1")]
pub unsafe fn extension_entrypoint(con: Connection) -> Result<(), Box<dyn Error>> {
con.register_table_function::<ClickHouseVTab>("clickhouse_native")?;
Ok(())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SELECT clickhouse_native('Sam');
Catalog Error: Scalar Function with name clickhouse_native does not exist!

# Require statement will ensure the extension is loaded from now on
require clickhouse_native
require chsql_native

require icu

Expand Down

0 comments on commit 13246db

Please sign in to comment.