Merge pull request #116 from agnosticeng/fix-udf-support

fix: clickhouse config path
This commit is contained in:
Didier Franc
2025-05-07 16:33:45 +02:00
committed by GitHub
4 changed files with 5 additions and 2 deletions

2
scripts/install_agnostic_udfs.sh Normal file → Executable file
View File

@@ -5,7 +5,7 @@ REPO="agnosticeng/clickhouse-evm"
API_URL="https://api.github.com/repos/$REPO/releases/latest"
OS_ARCH="$(uname | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')"
USER_PATH="$HOME"
DEST="$USER_PATH/Library/Application Support/com.agx.app/ch"
DEST="$USER_PATH/Library/Application Support/app.agx/ch"
# Fetch release info
RELEASE_JSON=$(curl -s "$API_URL")

View File

@@ -23,6 +23,7 @@
{
"args": [
"--path",
"-C",
"-q",
"--output-format"
],

View File

@@ -13,6 +13,8 @@ pub async fn query(app: tauri::AppHandle, _query: String, reader: tauri::ipc::Ch
let clickhouse_cmd = app.shell().sidecar("clickhouse").unwrap().args([
"--path",
&state.path,
"-C",
&format!("{}/config.xml", state.path),
"-q",
&_query,
"--output-format",

View File

@@ -28,7 +28,7 @@
"productName": "agx",
"mainBinaryName": "agx",
"version": "0.1.0",
"identifier": "com.agx.app",
"identifier": "app.agx",
"plugins": {},
"app": {
"security": {