|
1 | 1 | /* automatically generated by rust-bindgen 0.70.1 */
|
2 | 2 |
|
3 |
| -pub const __bool_true_false_are_defined: u32 = 1; |
4 |
| -pub const true_: u32 = 1; |
5 |
| -pub const false_: u32 = 0; |
6 | 3 | pub const __WORDSIZE: u32 = 64;
|
7 | 4 | pub const __has_safe_buffers: u32 = 1;
|
8 | 5 | pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 1;
|
@@ -408,40 +405,4 @@ extern "C" {
|
408 | 405 | extern "C" {
|
409 | 406 | pub fn free_result_v2(result: *mut local_result_v2);
|
410 | 407 | }
|
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 |
| -} |
447 | 408 | pub type __builtin_va_list = *mut ::std::os::raw::c_char;
|
0 commit comments