mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-16 05:24:22 +01:00
Add connect function for creating connections from limbo db
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
use crate::errors::CustomError;
|
||||
use crate::errors::LimboError;
|
||||
use jni::objects::{JObject, JValue};
|
||||
use jni::JNIEnv;
|
||||
|
||||
pub(crate) fn row_to_obj_array<'local>(
|
||||
env: &mut JNIEnv<'local>,
|
||||
row: &limbo_core::Row,
|
||||
) -> Result<JObject<'local>, CustomError> {
|
||||
) -> Result<JObject<'local>, LimboError> {
|
||||
let obj_array =
|
||||
env.new_object_array(row.values.len() as i32, "java/lang/Object", JObject::null())?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user