mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-03 17:48:17 +00:00
Add connect function for creating connections from limbo db
This commit is contained in:
parent
3409a82513
commit
fcadc2f825
4 changed files with 55 additions and 8 deletions
|
@ -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())?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue