Skip to content

Commit b78c41d

Browse files
committed
feat: release v0.1.0
1 parent e978289 commit b78c41d

File tree

5 files changed

+14
-81
lines changed

5 files changed

+14
-81
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ node_modules
99
vite.config.js.timestamp-*
1010
vite.config.ts.timestamp-*
1111

12-
src-tauri/libchdb.so
12+
src-tauri/libchdb.so*
1313
src-tauri/chdb.h

README.md

+8-38
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# agx
22

3-
**_agx_** is a desktop application built with Tauri and SvelteKit that provides a modern interface for exploring and querying data using ClickHouse's embedded database engine (chdb).
3+
**_agx_** is a desktop application that lets you explore and query data through a modern interface. It's built with [Tauri](https://tauri.app/), [SvelteKit](https://kit.svelte.dev/) and [Plot](https://observablehq.com/@observablehq/plot), and can work in two ways: as a native desktop app using ClickHouse's embedded database ([chdb](https://github.com/chdb-io/chdb)), or as a web interface connected to a [Clickhouse](https://clickhouse.com/) server instance.
44

55
## Preview
66

@@ -23,17 +23,20 @@
2323

2424
## Getting Started
2525

26-
### → Live
26+
### → Native ([chdb](https://github.com/chdb-io/chdb))
27+
28+
Get the latest release from [GitHub](https://github.com/agnosticeng/agx/releases).
29+
30+
### → Live ([clickhouse](https://github.com/ClickHouse/ClickHouse))
2731

2832
https://agx.app
2933

30-
### → Local
34+
### → Local ([clickhouse](https://github.com/ClickHouse/ClickHouse))
3135

3236
1. Clone the repository:
3337

3438
```bash
35-
git clone https://github.com/agnosticeng/agx
36-
cd agx
39+
git clone https://github.com/agnosticeng/agx && cd agx
3740
```
3841

3942
2. Run with docker compose:
@@ -44,39 +47,6 @@ docker compose up
4447

4548
3. Access the application via http://localhost:8080
4649

47-
### → Native
48-
49-
1. Clone the repository:
50-
51-
```bash
52-
git clone https://github.com/agnosticeng/agx
53-
cd agx
54-
```
55-
56-
2. Download and setup chdb library:
57-
58-
```bash
59-
./src-tauri/update_libchdb.sh
60-
```
61-
62-
3. Install dependencies:
63-
64-
```bash
65-
npm install
66-
```
67-
68-
4. Run in development mode:
69-
70-
```bash
71-
npm run tauri dev
72-
```
73-
74-
5. Build for production:
75-
76-
```bash
77-
npm run tauri build
78-
```
79-
8050
## Project Structure
8151

8252
```

src-tauri/fix_dylib.sh

100644100755
+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
22

3-
install_name_tool -change libchdb.so @executable_path/../Resources/libchdb.so src-tauri/target/release/agx
4-
codesign --force --sign - src-tauri/target/release/agx
3+
install_name_tool -change libchdb.so @executable_path/libchdb.so src-tauri/target/release/agx
4+
codesign --force --timestamp --options runtime \
5+
--sign "Developer ID Application: Didier Franc (87KT93D5KK)" \
6+
src-tauri/target/release/libchdb.so

src-tauri/src/chdb/bindings.rs

-39
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
/* automatically generated by rust-bindgen 0.70.1 */
22

3-
pub const __bool_true_false_are_defined: u32 = 1;
4-
pub const true_: u32 = 1;
5-
pub const false_: u32 = 0;
63
pub const __WORDSIZE: u32 = 64;
74
pub const __has_safe_buffers: u32 = 1;
85
pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 1;
@@ -408,40 +405,4 @@ extern "C" {
408405
extern "C" {
409406
pub fn free_result_v2(result: *mut local_result_v2);
410407
}
411-
#[doc = " Connection structure for chDB\n Contains server instance, connection state, and query processing queue"]
412-
#[repr(C)]
413-
#[derive(Debug, Copy, Clone)]
414-
pub struct chdb_conn {
415-
pub server: *mut ::std::os::raw::c_void,
416-
pub connected: bool,
417-
pub queue: *mut ::std::os::raw::c_void,
418-
}
419-
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
420-
const _: () = {
421-
["Size of chdb_conn"][::std::mem::size_of::<chdb_conn>() - 24usize];
422-
["Alignment of chdb_conn"][::std::mem::align_of::<chdb_conn>() - 8usize];
423-
["Offset of field: chdb_conn::server"][::std::mem::offset_of!(chdb_conn, server) - 0usize];
424-
["Offset of field: chdb_conn::connected"]
425-
[::std::mem::offset_of!(chdb_conn, connected) - 8usize];
426-
["Offset of field: chdb_conn::queue"][::std::mem::offset_of!(chdb_conn, queue) - 16usize];
427-
};
428-
extern "C" {
429-
#[doc = " Creates a new chDB connection.\n Only one active connection is allowed per process.\n Creating a new connection with different path requires closing existing connection.\n\n @param argc Number of command-line arguments\n @param argv Command-line arguments array (--path=<db_path> to specify database location)\n @return Pointer to connection pointer, or NULL on failure\n @note Default path is \":memory:\" if not specified"]
430-
pub fn connect_chdb(
431-
argc: ::std::os::raw::c_int,
432-
argv: *mut *mut ::std::os::raw::c_char,
433-
) -> *mut *mut chdb_conn;
434-
}
435-
extern "C" {
436-
#[doc = " Closes an existing chDB connection and cleans up resources.\n Thread-safe function that handles connection shutdown and cleanup.\n\n @param conn Pointer to connection pointer to close"]
437-
pub fn close_conn(conn: *mut *mut chdb_conn);
438-
}
439-
extern "C" {
440-
#[doc = " Executes a query on the given connection.\n Thread-safe function that handles query execution in a separate thread.\n\n @param conn Connection to execute query on\n @param query SQL query string to execute\n @param format Output format string (e.g., \"CSV\", default format)\n @return Query result structure containing output or error message\n @note Returns error result if connection is invalid or closed"]
441-
pub fn query_conn(
442-
conn: *mut chdb_conn,
443-
query: *const ::std::os::raw::c_char,
444-
format: *const ::std::os::raw::c_char,
445-
) -> *mut local_result_v2;
446-
}
447408
pub type __builtin_va_list = *mut ::std::os::raw::c_char;

src-tauri/tauri.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"active": true,
1616
"targets": "all",
17-
"resources": [
17+
"externalBin": [
1818
"libchdb.so"
1919
],
2020
"icon": [

0 commit comments

Comments
 (0)