Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLite like API mode of chDB #283

Merged
merged 36 commits into from
Nov 23, 2024
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
84d099e
Fix result buf copy in query_stable_v2
auxten Nov 2, 2024
50f33a6
Impl chdb_conn connect_chdb close_conn query_conn
auxten Nov 2, 2024
d073583
Update .clang-tidy
auxten Nov 2, 2024
61b875c
Basically works
auxten Nov 2, 2024
6ca4dd6
Fix SCOPE_EXIT
auxten Nov 2, 2024
7f21a4b
Fix output format
auxten Nov 4, 2024
d82a1a7
Fix chdb.h decl
auxten Nov 4, 2024
744fa13
Minimal changes on ClientBase
auxten Nov 4, 2024
aa94638
Fix get_error_msg name to getErrorMsg
auxten Nov 4, 2024
6827908
No exception on save default_database for now
auxten Nov 7, 2024
7de1e76
Add parquet(arrow) dep for local
auxten Nov 7, 2024
5d578b8
Use ArrowStream in cursor mode
auxten Nov 7, 2024
6a1c0d8
Handle result vec in CH loop
auxten Nov 11, 2024
b259bec
Fix cursor_wrapper close
auxten Nov 11, 2024
a4b8d9c
Fix exception handling
auxten Nov 12, 2024
b8f44e3
If conn_str empty, use :memory:
auxten Nov 13, 2024
a1a8fdd
Add pyarrow and pandas as dep
auxten Nov 18, 2024
af9761e
Fix close_conn
auxten Nov 18, 2024
cef9c1b
Add sqlitelike API for python
auxten Nov 18, 2024
47f78c9
Add test_conn_cursor
auxten Nov 18, 2024
2365709
Add trace utils
auxten Nov 18, 2024
1399019
Add .cursorignore
auxten Nov 18, 2024
ca08ea0
Fix some pylint issue
auxten Nov 18, 2024
40e7143
Fix lint
auxten Nov 21, 2024
ab080f7
Add keep_buf switch for local_result_v2
auxten Nov 21, 2024
233c3b1
Use sqlitelike API in DBAPI
auxten Nov 21, 2024
401255b
Fix error in example
auxten Nov 21, 2024
238e019
Fix unittest for DBAPI and SQLite like API
auxten Nov 21, 2024
a82d028
Fix lint
auxten Nov 21, 2024
0f1ae8c
Fix Python 3.8
auxten Nov 22, 2024
ec37ebe
Handle parameters without values
auxten Nov 22, 2024
4a61bbe
Add getQueryOutputSpan
auxten Nov 22, 2024
7b293dd
Add doc string for chdb.connect
auxten Nov 22, 2024
da541d1
Fix double free
auxten Nov 22, 2024
b5945e1
Fix null check
auxten Nov 22, 2024
7c3cdde
Test connect properties
auxten Nov 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix chdb.h decl
auxten committed Nov 4, 2024
commit d82a1a7952088e67deac8afa09b8a472878d2fcb
7 changes: 4 additions & 3 deletions programs/local/chdb.h
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
# include <cstdint>
extern "C" {
#else
# include <stdbool.h>
# include <stddef.h>
# include <stdint.h>
#endif
@@ -56,9 +57,9 @@ struct chdb_conn
bool connected;
};

CHDB_EXPORT chdb_conn * connect_chdb(int argc, char ** argv);
CHDB_EXPORT void close_conn(chdb_conn * conn);
CHDB_EXPORT struct local_result_v2 * query_conn(chdb_conn * conn, const char * query, const char * format);
CHDB_EXPORT struct chdb_conn * connect_chdb(int argc, char ** argv);
CHDB_EXPORT void close_conn(struct chdb_conn * conn);
CHDB_EXPORT struct local_result_v2 * query_conn(struct chdb_conn * conn, const char * query, const char * format);

#ifdef __cplusplus
}