mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-18 14:35:14 +01:00
Change package name from org.github.tursodatabase to tech.turso
This commit is contained in:
@@ -42,7 +42,7 @@ pub fn to_limbo_connection(ptr: jlong) -> Result<&'static mut LimboConnection> {
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_org_github_tursodatabase_core_LimboConnection__1close<'local>(
|
||||
pub extern "system" fn Java_tech_turso_core_LimboConnection__1close<'local>(
|
||||
_env: JNIEnv<'local>,
|
||||
_obj: JObject<'local>,
|
||||
connection_ptr: jlong,
|
||||
@@ -51,7 +51,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboConnection__1clos
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_org_github_tursodatabase_core_LimboConnection_prepareUtf8<'local>(
|
||||
pub extern "system" fn Java_tech_turso_core_LimboConnection_prepareUtf8<'local>(
|
||||
mut env: JNIEnv<'local>,
|
||||
obj: JObject<'local>,
|
||||
connection_ptr: jlong,
|
||||
|
||||
@@ -36,7 +36,7 @@ fn to_limbo_db(ptr: jlong) -> Result<&'static mut LimboDB> {
|
||||
|
||||
#[no_mangle]
|
||||
#[allow(clippy::arc_with_non_send_sync)]
|
||||
pub extern "system" fn Java_org_github_tursodatabase_core_LimboDB_openUtf8<'local>(
|
||||
pub extern "system" fn Java_tech_turso_core_LimboDB_openUtf8<'local>(
|
||||
mut env: JNIEnv<'local>,
|
||||
obj: JObject<'local>,
|
||||
file_path_byte_arr: JByteArray<'local>,
|
||||
@@ -79,7 +79,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboDB_openUtf8<'loca
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_org_github_tursodatabase_core_LimboDB_connect0<'local>(
|
||||
pub extern "system" fn Java_tech_turso_core_LimboDB_connect0<'local>(
|
||||
mut env: JNIEnv<'local>,
|
||||
obj: JObject<'local>,
|
||||
db_pointer: jlong,
|
||||
@@ -97,7 +97,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboDB_connect0<'loca
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_org_github_tursodatabase_core_LimboDB_close0<'local>(
|
||||
pub extern "system" fn Java_tech_turso_core_LimboDB_close0<'local>(
|
||||
_env: JNIEnv<'local>,
|
||||
_obj: JObject<'local>,
|
||||
db_pointer: jlong,
|
||||
@@ -106,7 +106,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboDB_close0<'local>
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_org_github_tursodatabase_core_LimboDB_throwJavaException<'local>(
|
||||
pub extern "system" fn Java_tech_turso_core_LimboDB_throwJavaException<'local>(
|
||||
mut env: JNIEnv<'local>,
|
||||
obj: JObject<'local>,
|
||||
error_code: jint,
|
||||
|
||||
@@ -44,7 +44,7 @@ pub fn to_limbo_statement(ptr: jlong) -> Result<&'static mut LimboStatement> {
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_step<'local>(
|
||||
pub extern "system" fn Java_tech_turso_core_LimboStatement_step<'local>(
|
||||
mut env: JNIEnv<'local>,
|
||||
obj: JObject<'local>,
|
||||
stmt_ptr: jlong,
|
||||
@@ -90,7 +90,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_step<'l
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement__1close<'local>(
|
||||
pub extern "system" fn Java_tech_turso_core_LimboStatement__1close<'local>(
|
||||
_env: JNIEnv<'local>,
|
||||
_obj: JObject<'local>,
|
||||
stmt_ptr: jlong,
|
||||
@@ -126,7 +126,7 @@ fn row_to_obj_array<'local>(
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_columns<'local>(
|
||||
pub extern "system" fn Java_tech_turso_core_LimboStatement_columns<'local>(
|
||||
mut env: JNIEnv<'local>,
|
||||
_obj: JObject<'local>,
|
||||
stmt_ptr: jlong,
|
||||
@@ -148,7 +148,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_columns
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_bindNull<'local>(
|
||||
pub extern "system" fn Java_tech_turso_core_LimboStatement_bindNull<'local>(
|
||||
mut env: JNIEnv<'local>,
|
||||
obj: JObject<'local>,
|
||||
stmt_ptr: jlong,
|
||||
@@ -168,7 +168,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_bindNul
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_bindLong<'local>(
|
||||
pub extern "system" fn Java_tech_turso_core_LimboStatement_bindLong<'local>(
|
||||
mut env: JNIEnv<'local>,
|
||||
obj: JObject<'local>,
|
||||
stmt_ptr: jlong,
|
||||
@@ -191,7 +191,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_bindLon
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_bindDouble<'local>(
|
||||
pub extern "system" fn Java_tech_turso_core_LimboStatement_bindDouble<'local>(
|
||||
mut env: JNIEnv<'local>,
|
||||
obj: JObject<'local>,
|
||||
stmt_ptr: jlong,
|
||||
@@ -214,7 +214,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_bindDou
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_bindText<'local>(
|
||||
pub extern "system" fn Java_tech_turso_core_LimboStatement_bindText<'local>(
|
||||
mut env: JNIEnv<'local>,
|
||||
obj: JObject<'local>,
|
||||
stmt_ptr: jlong,
|
||||
@@ -242,7 +242,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_bindTex
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_bindBlob<'local>(
|
||||
pub extern "system" fn Java_tech_turso_core_LimboStatement_bindBlob<'local>(
|
||||
mut env: JNIEnv<'local>,
|
||||
obj: JObject<'local>,
|
||||
stmt_ptr: jlong,
|
||||
@@ -294,13 +294,13 @@ fn to_limbo_step_result<'local>(
|
||||
if let Some(res) = result {
|
||||
ctor_args.push(JValue::Object(&res));
|
||||
env.new_object(
|
||||
"org/github/tursodatabase/core/LimboStepResult",
|
||||
"tech/turso/core/LimboStepResult",
|
||||
"(I[Ljava/lang/Object;)V",
|
||||
&ctor_args,
|
||||
)
|
||||
} else {
|
||||
env.new_object(
|
||||
"org/github/tursodatabase/core/LimboStepResult",
|
||||
"tech/turso/core/LimboStepResult",
|
||||
"(I)V",
|
||||
&ctor_args,
|
||||
)
|
||||
|
||||
@@ -23,7 +23,7 @@ pub(crate) fn utf8_byte_arr_to_str(
|
||||
/// # Parameters
|
||||
/// - `env`: The JNI environment.
|
||||
/// - `obj`: The Java object on which the exception will be thrown.
|
||||
/// - `err_code`: The error code corresponding to the exception. Refer to `org.github.tursodatabase.core.Codes` for the list of error codes.
|
||||
/// - `err_code`: The error code corresponding to the exception. Refer to `tech.turso.core.Codes` for the list of error codes.
|
||||
/// - `err_msg`: The error message to be included in the exception.
|
||||
///
|
||||
/// # Example
|
||||
|
||||
Reference in New Issue
Block a user