11#![ allow( unused_variables) ]
22
3- use std:: ffi:: { c_char, c_int, c_ulong , c_void} ;
3+ use std:: ffi:: { c_char, c_int, c_void} ;
44
5- use crate :: native:: query:: __taos_async_fn_t;
6- use crate :: native:: stmt:: TAOS_FIELD_E ;
75use crate :: native:: tmq:: tmq_t;
86use crate :: native:: { TAOS , TAOS_FIELD , TAOS_RES } ;
97
@@ -189,39 +187,6 @@ pub extern "C" fn taos_set_config(config: *const c_char) -> setConfRet {
189187 todo ! ( "taos_set_config" ) ;
190188}
191189
192- #[ allow( non_camel_case_types) ]
193- pub type TAOS_STMT2 = c_void ;
194-
195- #[ repr( C ) ]
196- #[ allow( non_snake_case) ]
197- #[ allow( non_camel_case_types) ]
198- pub struct TAOS_STMT2_OPTION {
199- pub reqid : i64 ,
200- pub singleStbInsert : bool ,
201- pub singleTableBindOnce : bool ,
202- pub asyncExecFn : __taos_async_fn_t ,
203- pub userdata : * mut c_void ,
204- }
205-
206- #[ repr( C ) ]
207- #[ allow( non_camel_case_types) ]
208- pub struct TAOS_STMT2_BIND {
209- pub buffer_type : i32 ,
210- pub buffer : * mut c_void ,
211- pub length : * mut i32 ,
212- pub is_null : * mut c_char ,
213- pub num : i32 ,
214- }
215-
216- #[ repr( C ) ]
217- #[ allow( non_camel_case_types) ]
218- pub struct TAOS_STMT2_BINDV {
219- pub count : i32 ,
220- pub tbnames : * mut * mut c_char ,
221- pub tags : * mut * mut TAOS_STMT2_BIND ,
222- pub bind_cols : * mut * mut TAOS_STMT2_BIND ,
223- }
224-
225190#[ repr( C ) ]
226191#[ allow( non_camel_case_types) ]
227192pub enum TAOS_FIELD_T {
@@ -242,86 +207,6 @@ pub struct TAOS_FIELD_STB {
242207 pub field_type : u8 ,
243208}
244209
245- #[ no_mangle]
246- pub extern "C" fn taos_stmt2_init (
247- taos : * mut TAOS ,
248- option : * mut TAOS_STMT2_OPTION ,
249- ) -> * mut TAOS_STMT2 {
250- todo ! ( "taos_stmt2_init" ) ;
251- }
252-
253- #[ no_mangle]
254- pub extern "C" fn taos_stmt2_prepare (
255- stmt : * mut TAOS_STMT2 ,
256- sql : * const c_char ,
257- length : c_ulong ,
258- ) -> i32 {
259- todo ! ( "taos_stmt2_prepare" ) ;
260- }
261-
262- #[ no_mangle]
263- pub extern "C" fn taos_stmt2_bind_param (
264- stmt : * mut TAOS_STMT2 ,
265- bindv : * mut TAOS_STMT2_BINDV ,
266- col_idx : i32 ,
267- ) -> i32 {
268- todo ! ( "taos_stmt2_bind_param" ) ;
269- }
270-
271- #[ no_mangle]
272- pub extern "C" fn taos_stmt2_exec ( stmt : * mut TAOS_STMT2 , affected_rows : * mut i32 ) -> i32 {
273- todo ! ( "taos_stmt2_exec" ) ;
274- }
275-
276- #[ no_mangle]
277- pub extern "C" fn taos_stmt2_close ( stmt : * mut TAOS_STMT2 ) -> i32 {
278- todo ! ( "taos_stmt2_close" ) ;
279- }
280-
281- #[ no_mangle]
282- pub extern "C" fn taos_stmt2_is_insert ( stmt : * mut TAOS_STMT2 , insert : * mut i32 ) -> i32 {
283- todo ! ( "taos_stmt2_is_insert" ) ;
284- }
285-
286- #[ no_mangle]
287- pub extern "C" fn taos_stmt2_result ( stmt : * mut TAOS_STMT2 ) -> * mut TAOS_RES {
288- todo ! ( "taos_stmt2_result" ) ;
289- }
290-
291- #[ no_mangle]
292- pub extern "C" fn taos_stmt2_error ( stmt : * mut TAOS_STMT2 ) -> * const c_char {
293- todo ! ( "taos_stmt2_error" ) ;
294- }
295-
296- #[ no_mangle]
297- pub extern "C" fn taos_stmt2_get_fields (
298- stmt : * mut TAOS_STMT2 ,
299- field_type : TAOS_FIELD_T ,
300- count : * mut i32 ,
301- fields : * mut * mut TAOS_FIELD_E ,
302- ) -> i32 {
303- todo ! ( "taos_stmt2_get_fields" )
304- }
305-
306- #[ no_mangle]
307- pub extern "C" fn taos_stmt2_get_stb_fields (
308- stmt : * mut TAOS_STMT2 ,
309- count : * mut i32 ,
310- fields : * mut * mut TAOS_FIELD_STB ,
311- ) -> i32 {
312- todo ! ( "taos_stmt2_get_stb_fields" )
313- }
314-
315- #[ no_mangle]
316- pub extern "C" fn taos_stmt2_free_fields ( stmt : * mut TAOS_STMT2 , fields : * mut TAOS_FIELD_E ) {
317- todo ! ( "taos_stmt2_free_fields" )
318- }
319-
320- #[ no_mangle]
321- pub extern "C" fn taos_stmt2_free_stb_fields ( stmt : * mut TAOS_STMT2 , fields : * mut TAOS_FIELD_STB ) {
322- todo ! ( "taos_stmt2_free_stb_fields" )
323- }
324-
325210#[ allow( non_camel_case_types) ]
326211pub type __taos_async_whitelist_fn_t = extern "C" fn (
327212 param : * mut c_void ,
0 commit comments