package nosqldb_sdk import ( "C" ) import ( "nosql_db_sdk_ffi/util/ptrproxy" "unsafe" "github.com/oracle/nosql-go-sdk/nosqldb" ) //export ffi_nosqldb_prepare_result_get_prepared_statement func ffi_nosqldb_prepare_result_get_prepared_statement(unsafe_nosqldb_prepare_result_ptr NosqldbPrepareResult) (NosqldbPreparedStatement, Error) { nosqldb_prepare_result_ptr, ok := ptrproxy.Deref(unsafe.Pointer(unsafe_nosqldb_prepare_result_ptr)) if !ok { return nil, C.CString("NosqldbPrepareResultPtr cannot deref") } prepare_result := (*nosqldb.PrepareResult)(nosqldb_prepare_result_ptr) prepared_statement := prepare_result.PreparedStatement return NosqldbPreparedStatement(ptrproxy.Ref(unsafe.Pointer(&prepared_statement))), nil }