Change package name from org.github.tursodatabase to tech.turso

This commit is contained in:
김선우 2025-02-12 09:58:25 +09:00
parent ebceefacde
commit cb7bd3d211
46 changed files with 128 additions and 128 deletions

View file

@ -29,7 +29,7 @@ Now you can use the dependency as follows:
```kotlin ```kotlin
dependencies { dependencies {
implementation("org.github.tursodatabase:limbo:0.0.1-SNAPSHOT") implementation("tech.turso:limbo:0.0.1-SNAPSHOT")
} }
``` ```

View file

@ -26,7 +26,7 @@ publishing {
publications { publications {
create<MavenPublication>("mavenJava") { create<MavenPublication>("mavenJava") {
from(components["java"]) from(components["java"])
groupId = "org.github.tursodatabase" groupId = "tech.turso"
artifactId = "limbo" artifactId = "limbo"
version = "0.0.1-SNAPSHOT" version = "0.0.1-SNAPSHOT"
} }
@ -126,10 +126,10 @@ tasks.withType<JavaCompile> {
disableAllChecks = true disableAllChecks = true
check("NullAway", CheckSeverity.ERROR) check("NullAway", CheckSeverity.ERROR)
option("NullAway:AnnotatedPackages", "org.github.tursodatabase") option("NullAway:AnnotatedPackages", "tech.turso")
option( option(
"NullAway:CustomNullableAnnotations", "NullAway:CustomNullableAnnotations",
"org.github.tursodatabase.annotations.Nullable,org.github.tursodatabase.annotations.SkipNullableCheck" "tech.turso.annotations.Nullable,tech.turso.annotations.SkipNullableCheck"
) )
} }
if (name.lowercase().contains("test")) { if (name.lowercase().contains("test")) {

View file

@ -2,7 +2,7 @@ plugins {
id("java") id("java")
} }
group = "org.github.tursodatabase" group = "tech.turso"
version = "1.0-SNAPSHOT" version = "1.0-SNAPSHOT"
repositories { repositories {
@ -11,7 +11,7 @@ repositories {
} }
dependencies { dependencies {
implementation("org.github.tursodatabase:limbo:0.0.1-SNAPSHOT") implementation("tech.turso:limbo:0.0.1-SNAPSHOT")
testImplementation(platform("org.junit:junit-bom:5.10.0")) testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter") testImplementation("org.junit.jupiter:junit-jupiter")
} }
@ -23,5 +23,5 @@ tasks.test {
tasks.register<JavaExec>("run") { tasks.register<JavaExec>("run") {
group = "application" group = "application"
classpath = sourceSets["main"].runtimeClasspath classpath = sourceSets["main"].runtimeClasspath
mainClass.set("org.github.tursodatabase.Main") mainClass.set("tech.turso.Main")
} }

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase; package tech.turso;
import java.sql.Connection; import java.sql.Connection;
import java.sql.DriverManager; import java.sql.DriverManager;

View file

@ -1,2 +1,2 @@
projectGroup="org.github.tursodatabase" projectGroup="tech.turso"
projectVersion=0.0.1-SNAPSHOT projectVersion=0.0.1-SNAPSHOT

View file

@ -42,7 +42,7 @@ pub fn to_limbo_connection(ptr: jlong) -> Result<&'static mut LimboConnection> {
} }
#[no_mangle] #[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>, _env: JNIEnv<'local>,
_obj: JObject<'local>, _obj: JObject<'local>,
connection_ptr: jlong, connection_ptr: jlong,
@ -51,7 +51,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboConnection__1clos
} }
#[no_mangle] #[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>, mut env: JNIEnv<'local>,
obj: JObject<'local>, obj: JObject<'local>,
connection_ptr: jlong, connection_ptr: jlong,

View file

@ -36,7 +36,7 @@ fn to_limbo_db(ptr: jlong) -> Result<&'static mut LimboDB> {
#[no_mangle] #[no_mangle]
#[allow(clippy::arc_with_non_send_sync)] #[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>, mut env: JNIEnv<'local>,
obj: JObject<'local>, obj: JObject<'local>,
file_path_byte_arr: JByteArray<'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] #[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>, mut env: JNIEnv<'local>,
obj: JObject<'local>, obj: JObject<'local>,
db_pointer: jlong, db_pointer: jlong,
@ -97,7 +97,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboDB_connect0<'loca
} }
#[no_mangle] #[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>, _env: JNIEnv<'local>,
_obj: JObject<'local>, _obj: JObject<'local>,
db_pointer: jlong, db_pointer: jlong,
@ -106,7 +106,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboDB_close0<'local>
} }
#[no_mangle] #[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>, mut env: JNIEnv<'local>,
obj: JObject<'local>, obj: JObject<'local>,
error_code: jint, error_code: jint,

View file

@ -44,7 +44,7 @@ pub fn to_limbo_statement(ptr: jlong) -> Result<&'static mut LimboStatement> {
} }
#[no_mangle] #[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>, mut env: JNIEnv<'local>,
obj: JObject<'local>, obj: JObject<'local>,
stmt_ptr: jlong, stmt_ptr: jlong,
@ -90,7 +90,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_step<'l
} }
#[no_mangle] #[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>, _env: JNIEnv<'local>,
_obj: JObject<'local>, _obj: JObject<'local>,
stmt_ptr: jlong, stmt_ptr: jlong,
@ -126,7 +126,7 @@ fn row_to_obj_array<'local>(
} }
#[no_mangle] #[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>, mut env: JNIEnv<'local>,
_obj: JObject<'local>, _obj: JObject<'local>,
stmt_ptr: jlong, stmt_ptr: jlong,
@ -148,7 +148,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_columns
} }
#[no_mangle] #[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>, mut env: JNIEnv<'local>,
obj: JObject<'local>, obj: JObject<'local>,
stmt_ptr: jlong, stmt_ptr: jlong,
@ -168,7 +168,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_bindNul
} }
#[no_mangle] #[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>, mut env: JNIEnv<'local>,
obj: JObject<'local>, obj: JObject<'local>,
stmt_ptr: jlong, stmt_ptr: jlong,
@ -191,7 +191,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_bindLon
} }
#[no_mangle] #[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>, mut env: JNIEnv<'local>,
obj: JObject<'local>, obj: JObject<'local>,
stmt_ptr: jlong, stmt_ptr: jlong,
@ -214,7 +214,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_bindDou
} }
#[no_mangle] #[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>, mut env: JNIEnv<'local>,
obj: JObject<'local>, obj: JObject<'local>,
stmt_ptr: jlong, stmt_ptr: jlong,
@ -242,7 +242,7 @@ pub extern "system" fn Java_org_github_tursodatabase_core_LimboStatement_bindTex
} }
#[no_mangle] #[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>, mut env: JNIEnv<'local>,
obj: JObject<'local>, obj: JObject<'local>,
stmt_ptr: jlong, stmt_ptr: jlong,
@ -294,13 +294,13 @@ fn to_limbo_step_result<'local>(
if let Some(res) = result { if let Some(res) = result {
ctor_args.push(JValue::Object(&res)); ctor_args.push(JValue::Object(&res));
env.new_object( env.new_object(
"org/github/tursodatabase/core/LimboStepResult", "tech/turso/core/LimboStepResult",
"(I[Ljava/lang/Object;)V", "(I[Ljava/lang/Object;)V",
&ctor_args, &ctor_args,
) )
} else { } else {
env.new_object( env.new_object(
"org/github/tursodatabase/core/LimboStepResult", "tech/turso/core/LimboStepResult",
"(I)V", "(I)V",
&ctor_args, &ctor_args,
) )

View file

@ -23,7 +23,7 @@ pub(crate) fn utf8_byte_arr_to_str(
/// # Parameters /// # Parameters
/// - `env`: The JNI environment. /// - `env`: The JNI environment.
/// - `obj`: The Java object on which the exception will be thrown. /// - `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. /// - `err_msg`: The error message to be included in the exception.
/// ///
/// # Example /// # Example

View file

@ -1,13 +1,13 @@
package org.github.tursodatabase; package tech.turso;
import java.sql.*; import java.sql.*;
import java.util.Locale; import java.util.Locale;
import java.util.Properties; import java.util.Properties;
import org.github.tursodatabase.annotations.Nullable; import tech.turso.annotations.Nullable;
import org.github.tursodatabase.annotations.SkipNullableCheck; import tech.turso.annotations.SkipNullableCheck;
import org.github.tursodatabase.jdbc4.JDBC4Connection; import tech.turso.jdbc4.JDBC4Connection;
import org.github.tursodatabase.utils.Logger; import tech.turso.utils.Logger;
import org.github.tursodatabase.utils.LoggerFactory; import tech.turso.utils.LoggerFactory;
public class JDBC implements Driver { public class JDBC implements Driver {
private static final Logger logger = LoggerFactory.getLogger(JDBC.class); private static final Logger logger = LoggerFactory.getLogger(JDBC.class);

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase; package tech.turso;
import java.sql.DriverPropertyInfo; import java.sql.DriverPropertyInfo;
import java.util.Arrays; import java.util.Arrays;

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase; package tech.turso;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.sql.Connection; import java.sql.Connection;
@ -7,8 +7,8 @@ import java.sql.SQLFeatureNotSupportedException;
import java.util.Properties; import java.util.Properties;
import java.util.logging.Logger; import java.util.logging.Logger;
import javax.sql.DataSource; import javax.sql.DataSource;
import org.github.tursodatabase.annotations.Nullable; import tech.turso.annotations.Nullable;
import org.github.tursodatabase.annotations.SkipNullableCheck; import tech.turso.annotations.SkipNullableCheck;
/** Provides {@link DataSource} API for configuring Limbo database connection. */ /** Provides {@link DataSource} API for configuring Limbo database connection. */
public class LimboDataSource implements DataSource { public class LimboDataSource implements DataSource {

View file

@ -1,6 +1,6 @@
package org.github.tursodatabase; package tech.turso;
import org.github.tursodatabase.core.SqliteCode; import tech.turso.core.SqliteCode;
/** Limbo error code. Superset of SQLite3 error code. */ /** Limbo error code. Superset of SQLite3 error code. */
public enum LimboErrorCode { public enum LimboErrorCode {

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.annotations; package tech.turso.annotations;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.annotations; package tech.turso.annotations;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.annotations; package tech.turso.annotations;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.annotations; package tech.turso.annotations;
import java.lang.annotation.ElementType; import java.lang.annotation.ElementType;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;

View file

@ -1,14 +1,14 @@
package org.github.tursodatabase.core; package tech.turso.core;
import static org.github.tursodatabase.utils.ByteArrayUtils.stringToUtf8ByteArray; import static tech.turso.utils.ByteArrayUtils.stringToUtf8ByteArray;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.Properties; import java.util.Properties;
import org.github.tursodatabase.annotations.NativeInvocation; import tech.turso.annotations.NativeInvocation;
import org.github.tursodatabase.utils.LimboExceptionUtils; import tech.turso.utils.LimboExceptionUtils;
import org.github.tursodatabase.utils.Logger; import tech.turso.utils.Logger;
import org.github.tursodatabase.utils.LoggerFactory; import tech.turso.utils.LoggerFactory;
public class LimboConnection { public class LimboConnection {
private static final Logger logger = LoggerFactory.getLogger(LimboConnection.class); private static final Logger logger = LoggerFactory.getLogger(LimboConnection.class);

View file

@ -1,18 +1,18 @@
package org.github.tursodatabase.core; package tech.turso.core;
import static org.github.tursodatabase.utils.ByteArrayUtils.stringToUtf8ByteArray; import static tech.turso.utils.ByteArrayUtils.stringToUtf8ByteArray;
import java.io.File; import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.sql.SQLException; import java.sql.SQLException;
import org.github.tursodatabase.LimboErrorCode; import tech.turso.LimboErrorCode;
import org.github.tursodatabase.annotations.NativeInvocation; import tech.turso.annotations.NativeInvocation;
import org.github.tursodatabase.annotations.VisibleForTesting; import tech.turso.annotations.VisibleForTesting;
import org.github.tursodatabase.utils.LimboExceptionUtils; import tech.turso.utils.LimboExceptionUtils;
import org.github.tursodatabase.utils.Logger; import tech.turso.utils.Logger;
import org.github.tursodatabase.utils.LoggerFactory; import tech.turso.utils.LoggerFactory;
/** This class provides a thin JNI layer over the SQLite3 C API. */ /** This class provides a thin JNI layer over the SQLite3 C API. */
public final class LimboDB implements AutoCloseable { public final class LimboDB implements AutoCloseable {

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.core; package tech.turso.core;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.Properties; import java.util.Properties;

View file

@ -1,10 +1,10 @@
package org.github.tursodatabase.core; package tech.turso.core;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import org.github.tursodatabase.annotations.Nullable; import tech.turso.annotations.Nullable;
import org.github.tursodatabase.utils.Logger; import tech.turso.utils.Logger;
import org.github.tursodatabase.utils.LoggerFactory; import tech.turso.utils.LoggerFactory;
/** /**
* A table of data representing limbo database result set, which is generated by executing a * A table of data representing limbo database result set, which is generated by executing a

View file

@ -1,11 +1,11 @@
package org.github.tursodatabase.core; package tech.turso.core;
import java.sql.SQLException; import java.sql.SQLException;
import org.github.tursodatabase.annotations.NativeInvocation; import tech.turso.annotations.NativeInvocation;
import org.github.tursodatabase.annotations.Nullable; import tech.turso.annotations.Nullable;
import org.github.tursodatabase.utils.LimboExceptionUtils; import tech.turso.utils.LimboExceptionUtils;
import org.github.tursodatabase.utils.Logger; import tech.turso.utils.Logger;
import org.github.tursodatabase.utils.LoggerFactory; import tech.turso.utils.LoggerFactory;
/** /**
* By default, only one <code>resultSet</code> object per <code>LimboStatement</code> can be open at * By default, only one <code>resultSet</code> object per <code>LimboStatement</code> can be open at

View file

@ -1,8 +1,8 @@
package org.github.tursodatabase.core; package tech.turso.core;
import java.util.Arrays; import java.util.Arrays;
import org.github.tursodatabase.annotations.NativeInvocation; import tech.turso.annotations.NativeInvocation;
import org.github.tursodatabase.annotations.Nullable; import tech.turso.annotations.Nullable;
/** Represents the step result of limbo's statement's step function. */ /** Represents the step result of limbo's statement's step function. */
public class LimboStepResult { public class LimboStepResult {

View file

@ -13,7 +13,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
package org.github.tursodatabase.core; package tech.turso.core;
/** Sqlite error codes. */ /** Sqlite error codes. */
public class SqliteCode { public class SqliteCode {

View file

@ -1,7 +1,7 @@
package org.github.tursodatabase.exceptions; package tech.turso.exceptions;
import java.sql.SQLException; import java.sql.SQLException;
import org.github.tursodatabase.LimboErrorCode; import tech.turso.LimboErrorCode;
public class LimboException extends SQLException { public class LimboException extends SQLException {
private final LimboErrorCode resultCode; private final LimboErrorCode resultCode;

View file

@ -1,13 +1,13 @@
package org.github.tursodatabase.jdbc4; package tech.turso.jdbc4;
import java.sql.*; import java.sql.*;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.Properties; import java.util.Properties;
import java.util.concurrent.Executor; import java.util.concurrent.Executor;
import org.github.tursodatabase.annotations.SkipNullableCheck; import tech.turso.annotations.SkipNullableCheck;
import org.github.tursodatabase.core.LimboConnection; import tech.turso.core.LimboConnection;
import org.github.tursodatabase.core.LimboStatement; import tech.turso.core.LimboStatement;
public class JDBC4Connection implements Connection { public class JDBC4Connection implements Connection {

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.jdbc4; package tech.turso.jdbc4;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
@ -10,10 +10,10 @@ import java.sql.RowIdLifetime;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException; import java.sql.SQLFeatureNotSupportedException;
import java.util.Properties; import java.util.Properties;
import org.github.tursodatabase.annotations.Nullable; import tech.turso.annotations.Nullable;
import org.github.tursodatabase.annotations.SkipNullableCheck; import tech.turso.annotations.SkipNullableCheck;
import org.github.tursodatabase.utils.Logger; import tech.turso.utils.Logger;
import org.github.tursodatabase.utils.LoggerFactory; import tech.turso.utils.LoggerFactory;
public class JDBC4DatabaseMetaData implements DatabaseMetaData { public class JDBC4DatabaseMetaData implements DatabaseMetaData {

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.jdbc4; package tech.turso.jdbc4;
import static java.util.Objects.requireNonNull; import static java.util.Objects.requireNonNull;
@ -22,8 +22,8 @@ import java.sql.SQLXML;
import java.sql.Time; import java.sql.Time;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.util.Calendar; import java.util.Calendar;
import org.github.tursodatabase.annotations.SkipNullableCheck; import tech.turso.annotations.SkipNullableCheck;
import org.github.tursodatabase.core.LimboResultSet; import tech.turso.core.LimboResultSet;
public class JDBC4PreparedStatement extends JDBC4Statement implements PreparedStatement { public class JDBC4PreparedStatement extends JDBC4Statement implements PreparedStatement {

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.jdbc4; package tech.turso.jdbc4;
import java.io.InputStream; import java.io.InputStream;
import java.io.Reader; import java.io.Reader;
@ -22,9 +22,9 @@ import java.sql.Time;
import java.sql.Timestamp; import java.sql.Timestamp;
import java.util.Calendar; import java.util.Calendar;
import java.util.Map; import java.util.Map;
import org.github.tursodatabase.annotations.Nullable; import tech.turso.annotations.Nullable;
import org.github.tursodatabase.annotations.SkipNullableCheck; import tech.turso.annotations.SkipNullableCheck;
import org.github.tursodatabase.core.LimboResultSet; import tech.turso.core.LimboResultSet;
public class JDBC4ResultSet implements ResultSet { public class JDBC4ResultSet implements ResultSet {

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.jdbc4; package tech.turso.jdbc4;
import static java.util.Objects.requireNonNull; import static java.util.Objects.requireNonNull;
@ -8,10 +8,10 @@ import java.sql.SQLException;
import java.sql.SQLWarning; import java.sql.SQLWarning;
import java.sql.Statement; import java.sql.Statement;
import java.util.concurrent.locks.ReentrantLock; import java.util.concurrent.locks.ReentrantLock;
import org.github.tursodatabase.annotations.Nullable; import tech.turso.annotations.Nullable;
import org.github.tursodatabase.annotations.SkipNullableCheck; import tech.turso.annotations.SkipNullableCheck;
import org.github.tursodatabase.core.LimboResultSet; import tech.turso.core.LimboResultSet;
import org.github.tursodatabase.core.LimboStatement; import tech.turso.core.LimboStatement;
public class JDBC4Statement implements Statement { public class JDBC4Statement implements Statement {

View file

@ -1,7 +1,7 @@
package org.github.tursodatabase.utils; package tech.turso.utils;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import org.github.tursodatabase.annotations.Nullable; import tech.turso.annotations.Nullable;
public class ByteArrayUtils { public class ByteArrayUtils {
@Nullable @Nullable

View file

@ -1,11 +1,11 @@
package org.github.tursodatabase.utils; package tech.turso.utils;
import static org.github.tursodatabase.utils.ByteArrayUtils.utf8ByteBufferToString; import static tech.turso.utils.ByteArrayUtils.utf8ByteBufferToString;
import java.sql.SQLException; import java.sql.SQLException;
import org.github.tursodatabase.LimboErrorCode; import tech.turso.LimboErrorCode;
import org.github.tursodatabase.annotations.Nullable; import tech.turso.annotations.Nullable;
import org.github.tursodatabase.exceptions.LimboException; import tech.turso.exceptions.LimboException;
public class LimboExceptionUtils { public class LimboExceptionUtils {
/** /**

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.utils; package tech.turso.utils;
/** A simple internal Logger interface. */ /** A simple internal Logger interface. */
public interface Logger { public interface Logger {

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.utils; package tech.turso.utils;
import java.util.logging.Level; import java.util.logging.Level;

View file

@ -1 +1 @@
org.github.tursodatabase.JDBC tech.turso.JDBC

View file

@ -1,12 +1,12 @@
package org.github.tursodatabase; package tech.turso;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.Statement; import java.sql.Statement;
import java.util.Properties; import java.util.Properties;
import org.github.tursodatabase.jdbc4.JDBC4Connection;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import tech.turso.jdbc4.JDBC4Connection;
public class IntegrationTest { public class IntegrationTest {

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase; package tech.turso;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat; import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
@ -6,8 +6,8 @@ import java.sql.Connection;
import java.sql.DriverManager; import java.sql.DriverManager;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.Properties; import java.util.Properties;
import org.github.tursodatabase.jdbc4.JDBC4Connection;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import tech.turso.jdbc4.JDBC4Connection;
class JDBCTest { class JDBCTest {

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase; package tech.turso;
import java.io.IOException; import java.io.IOException;
import java.nio.file.Files; import java.nio.file.Files;

View file

@ -1,11 +1,11 @@
package org.github.tursodatabase.core; package tech.turso.core;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNotEquals;
import java.util.Properties; import java.util.Properties;
import org.github.tursodatabase.TestUtils;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import tech.turso.TestUtils;
class LimboDBFactoryTest { class LimboDBFactoryTest {

View file

@ -1,14 +1,14 @@
package org.github.tursodatabase.core; package tech.turso.core;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertFalse;
import java.sql.SQLException; import java.sql.SQLException;
import org.github.tursodatabase.LimboErrorCode;
import org.github.tursodatabase.TestUtils;
import org.github.tursodatabase.exceptions.LimboException;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import tech.turso.LimboErrorCode;
import tech.turso.TestUtils;
import tech.turso.exceptions.LimboException;
public class LimboDBTest { public class LimboDBTest {

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.core; package tech.turso.core;
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
@ -7,10 +7,10 @@ import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.Properties; import java.util.Properties;
import org.github.tursodatabase.TestUtils;
import org.github.tursodatabase.jdbc4.JDBC4Connection;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import tech.turso.TestUtils;
import tech.turso.jdbc4.JDBC4Connection;
class LimboStatementTest { class LimboStatementTest {

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.jdbc4; package tech.turso.jdbc4;
import static org.junit.jupiter.api.Assertions.*; import static org.junit.jupiter.api.Assertions.*;
@ -6,9 +6,9 @@ import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.Statement; import java.sql.Statement;
import java.util.Properties; import java.util.Properties;
import org.github.tursodatabase.TestUtils;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import tech.turso.TestUtils;
class JDBC4ConnectionTest { class JDBC4ConnectionTest {

View file

@ -1,11 +1,11 @@
package org.github.tursodatabase.jdbc4; package tech.turso.jdbc4;
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertFalse;
import java.util.Properties; import java.util.Properties;
import org.github.tursodatabase.TestUtils;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import tech.turso.TestUtils;
class JDBC4DatabaseMetaDataTest { class JDBC4DatabaseMetaDataTest {

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.jdbc4; package tech.turso.jdbc4;
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
@ -10,9 +10,9 @@ import java.sql.PreparedStatement;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.Properties; import java.util.Properties;
import org.github.tursodatabase.TestUtils;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import tech.turso.TestUtils;
class JDBC4PreparedStatementTest { class JDBC4PreparedStatementTest {

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.jdbc4; package tech.turso.jdbc4;
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
@ -14,11 +14,11 @@ import java.sql.SQLException;
import java.sql.Statement; import java.sql.Statement;
import java.util.Properties; import java.util.Properties;
import java.util.stream.Stream; import java.util.stream.Stream;
import org.github.tursodatabase.TestUtils;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource; import org.junit.jupiter.params.provider.MethodSource;
import tech.turso.TestUtils;
class JDBC4ResultSetTest { class JDBC4ResultSetTest {

View file

@ -1,4 +1,4 @@
package org.github.tursodatabase.jdbc4; package tech.turso.jdbc4;
import static org.junit.jupiter.api.Assertions.*; import static org.junit.jupiter.api.Assertions.*;
@ -6,10 +6,10 @@ import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.sql.Statement; import java.sql.Statement;
import java.util.Properties; import java.util.Properties;
import org.github.tursodatabase.TestUtils;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import tech.turso.TestUtils;
class JDBC4StatementTest { class JDBC4StatementTest {