update fluence sdk

This commit is contained in:
vms 2020-11-08 22:10:31 +03:00
parent 060d220f55
commit 458b27f0bb
5 changed files with 39 additions and 41 deletions

View File

@ -35,7 +35,7 @@ name = "test"
path = "src/test.rs" path = "src/test.rs"
[dependencies] [dependencies]
fluence = "0.2.8" fluence = "0.2.9"
[dev-dependencies] [dev-dependencies]
temporary = "0.6" temporary = "0.6"

View File

@ -12,19 +12,19 @@
(param $result_size: i32) )) ;; 4 (param $result_size: i32) )) ;; 4
(@interface type (func (@interface type (func
(param $result_ptr: i32) )) ;; 5 (param $result_ptr: i32) )) ;; 5
(@interface type (record DBExecDescriptor { (@interface type (record $DBExecDescriptor (
ret_code: s32 field $ret_code: s32
err_msg: string field $err_msg: string
})) ;; 6 ))) ;; 6
(@interface type (record DBPrepareDescriptor { (@interface type (record $DBPrepareDescriptor (
ret_code: s32 field $ret_code: s32
stmt_handle: u32 field $stmt_handle: u32
tail: u32 field $tail: u32
})) ;; 7 ))) ;; 7
(@interface type (record DBOpenDescriptor { (@interface type (record $DBOpenDescriptor (
ret_code: s32 field $ret_code: s32
db_handle: u32 field $db_handle: u32
})) ;; 8 ))) ;; 8
(@interface type (func (@interface type (func
(param $stmt_handle: u32 $icol: u32) (param $stmt_handle: u32 $icol: u32)
(result string))) ;; 9 (result string))) ;; 9
@ -51,10 +51,10 @@
(result s32))) ;; 16 (result s32))) ;; 16
(@interface type (func (@interface type (func
(param $filename: string $flags: s32 $vfs: string) (param $filename: string $flags: s32 $vfs: string)
(result 8))) ;; 17 (result record 8))) ;; 17
(@interface type (func (@interface type (func
(param $filename: string $flags: s32 $vfs: string) (param $filename: string $flags: s32 $vfs: string)
(result 8))) ;; 18 (result record 8))) ;; 18
(@interface type (func (@interface type (func
(param $db_handle: u32) (param $db_handle: u32)
(result s32))) ;; 19 (result s32))) ;; 19
@ -111,27 +111,27 @@
(result s32))) ;; 36 (result s32))) ;; 36
(@interface type (func (@interface type (func
(param $db_handle: u32 $sql: string) (param $db_handle: u32 $sql: string)
(result 7))) ;; 37 (result record 7))) ;; 37
(@interface type (func (@interface type (func
(param $db_handle: u32 $sql: string) (param $db_handle: u32 $sql: string)
(result 7))) ;; 38 (result record 7))) ;; 38
(@interface type (func (@interface type (func
(param $stmt_handle: u32 $pos: s32) (param $stmt_handle: u32)
(result s32))) ;; 39 (result s32))) ;; 39
(@interface type (func (@interface type (func
(param $stmt_handle: u32 $pos: s32) (param $stmt_handle: u32)
(result s32))) ;; 40 (result s32))) ;; 40
(@interface type (func (@interface type (func
(param $stmt_handle: u32) (param $stmt_handle: u32 $pos: s32)
(result s32))) ;; 41 (result s32))) ;; 41
(@interface type (func (@interface type (func
(param $stmt_handle: u32) (param $stmt_handle: u32 $pos: s32)
(result s32))) ;; 42 (result s32))) ;; 42
(@interface type (func (@interface type (func
(param $stmt_handle: u32 $pos: s32 $blob: byte_array $xDel: s32) (param $stmt_handle: u32 $pos: s32 $blob: array (u8) $xDel: s32)
(result s32))) ;; 43 (result s32))) ;; 43
(@interface type (func (@interface type (func
(param $stmt_handle: u32 $pos: s32 $blob: byte_array $xDel: s32) (param $stmt_handle: u32 $pos: s32 $blob: array (u8) $xDel: s32)
(result s32))) ;; 44 (result s32))) ;; 44
(@interface type (func (@interface type (func
(param $db_handle: u32) (param $db_handle: u32)
@ -153,20 +153,20 @@
(result s32))) ;; 50 (result s32))) ;; 50
(@interface type (func (@interface type (func
(param $db_handle: u32 $sql: string $callback_id: s32 $callback_arg: s32) (param $db_handle: u32 $sql: string $callback_id: s32 $callback_arg: s32)
(result 6))) ;; 51 (result record 6))) ;; 51
(@interface type (func (@interface type (func
(param $db_handle: u32 $sql: string $callback_id: s32 $callback_arg: s32) (param $db_handle: u32 $sql: string $callback_id: s32 $callback_arg: s32)
(result 6))) ;; 52 (result record 6))) ;; 52
(@interface type (func (@interface type (func
(result s32))) ;; 53 (result s32))) ;; 53
(@interface type (func (@interface type (func
(result s32))) ;; 54 (result s32))) ;; 54
(@interface type (func (@interface type (func
(param $stmt_handle: u32 $icol: s32) (param $stmt_handle: u32 $icol: s32)
(result byte_array))) ;; 55 (result array (u8)))) ;; 55
(@interface type (func (@interface type (func
(param $stmt_handle: u32 $icol: s32) (param $stmt_handle: u32 $icol: s32)
(result byte_array))) ;; 56 (result array (u8)))) ;; 56
(@interface type (func (@interface type (func
(param $stmt_handle: u32 $N: u32) (param $stmt_handle: u32 $N: u32)
(result string))) ;; 57 (result string))) ;; 57
@ -304,13 +304,13 @@
(@interface func (type 39) (@interface func (type 39)
arg.get 0 arg.get 0
i32.from_u32 i32.from_u32
arg.get 1
i32.from_s32
call-core 21 call-core 21
s32.from_i32) s32.from_i32)
(@interface func (type 41) (@interface func (type 41)
arg.get 0 arg.get 0
i32.from_u32 i32.from_u32
arg.get 1
i32.from_s32
call-core 22 call-core 22
s32.from_i32) s32.from_i32)
(@interface func (type 43) (@interface func (type 43)
@ -319,10 +319,7 @@
arg.get 1 arg.get 1
i32.from_s32 i32.from_s32
arg.get 2 arg.get 2
byte_array.size array.lower_memory u8
call-core 0
arg.get 2
byte_array.lower_memory
arg.get 3 arg.get 3
i32.from_s32 i32.from_s32
call-core 23 call-core 23
@ -377,10 +374,7 @@
call-core 29 call-core 29
call-core 3 call-core 3
call-core 2 call-core 2
byte_array.lift_memory array.lift_memory u8)
call-core 3
call-core 2
call-core 1)
(@interface func (type 57) (@interface func (type 57)
arg.get 0 arg.get 0
i32.from_u32 i32.from_u32
@ -423,8 +417,8 @@
(@interface export "sqlite3_bind_int64" (func 34)) (@interface export "sqlite3_bind_int64" (func 34))
(@interface export "sqlite3_finalize" (func 36)) (@interface export "sqlite3_finalize" (func 36))
(@interface export "sqlite3_prepare_v2" (func 38)) (@interface export "sqlite3_prepare_v2" (func 38))
(@interface export "sqlite3_bind_null" (func 40)) (@interface export "sqlite3_column_count" (func 40))
(@interface export "sqlite3_column_count" (func 42)) (@interface export "sqlite3_bind_null" (func 42))
(@interface export "sqlite3_bind_blob" (func 44)) (@interface export "sqlite3_bind_blob" (func 44))
(@interface export "sqlite3_total_changes" (func 46)) (@interface export "sqlite3_total_changes" (func 46))
(@interface export "sqlite3_bind_text" (func 48)) (@interface export "sqlite3_bind_text" (func 48))

View File

@ -274,6 +274,7 @@ pub use connection::Connection;
pub use connection::OpenFlags; pub use connection::OpenFlags;
pub use cursor::Cursor; pub use cursor::Cursor;
pub use statement::{Bindable, Readable, State, Statement}; pub use statement::{Bindable, Readable, State, Statement};
pub use sqlite3_connector::*;
/// Open a read-write connection to a new or existing database. /// Open a read-write connection to a new or existing database.
#[inline] #[inline]

View File

@ -2,4 +2,4 @@ mod consts;
mod import_functions; mod import_functions;
pub(crate) use self::consts::*; pub(crate) use self::consts::*;
pub(crate) use self::import_functions::*; pub use self::import_functions::*;

View File

@ -1,3 +1,6 @@
#![allow(unused_variables)]
#![allow(non_snake_case)]
extern crate fluence; extern crate fluence;
use fluence::fce; use fluence::fce;