mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-07-07 12:35:00 +00:00
Change package name from org.github.tursodatabase
to tech.turso
This commit is contained in:
parent
ebceefacde
commit
cb7bd3d211
46 changed files with 128 additions and 128 deletions
|
@ -29,7 +29,7 @@ Now you can use the dependency as follows:
|
|||
|
||||
```kotlin
|
||||
dependencies {
|
||||
implementation("org.github.tursodatabase:limbo:0.0.1-SNAPSHOT")
|
||||
implementation("tech.turso:limbo:0.0.1-SNAPSHOT")
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ publishing {
|
|||
publications {
|
||||
create<MavenPublication>("mavenJava") {
|
||||
from(components["java"])
|
||||
groupId = "org.github.tursodatabase"
|
||||
groupId = "tech.turso"
|
||||
artifactId = "limbo"
|
||||
version = "0.0.1-SNAPSHOT"
|
||||
}
|
||||
|
@ -126,10 +126,10 @@ tasks.withType<JavaCompile> {
|
|||
disableAllChecks = true
|
||||
check("NullAway", CheckSeverity.ERROR)
|
||||
|
||||
option("NullAway:AnnotatedPackages", "org.github.tursodatabase")
|
||||
option("NullAway:AnnotatedPackages", "tech.turso")
|
||||
option(
|
||||
"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")) {
|
||||
|
|
|
@ -2,7 +2,7 @@ plugins {
|
|||
id("java")
|
||||
}
|
||||
|
||||
group = "org.github.tursodatabase"
|
||||
group = "tech.turso"
|
||||
version = "1.0-SNAPSHOT"
|
||||
|
||||
repositories {
|
||||
|
@ -11,7 +11,7 @@ repositories {
|
|||
}
|
||||
|
||||
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("org.junit.jupiter:junit-jupiter")
|
||||
}
|
||||
|
@ -23,5 +23,5 @@ tasks.test {
|
|||
tasks.register<JavaExec>("run") {
|
||||
group = "application"
|
||||
classpath = sourceSets["main"].runtimeClasspath
|
||||
mainClass.set("org.github.tursodatabase.Main")
|
||||
mainClass.set("tech.turso.Main")
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase;
|
||||
package tech.turso;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
|
@ -1,2 +1,2 @@
|
|||
projectGroup="org.github.tursodatabase"
|
||||
projectGroup="tech.turso"
|
||||
projectVersion=0.0.1-SNAPSHOT
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
package org.github.tursodatabase;
|
||||
package tech.turso;
|
||||
|
||||
import java.sql.*;
|
||||
import java.util.Locale;
|
||||
import java.util.Properties;
|
||||
import org.github.tursodatabase.annotations.Nullable;
|
||||
import org.github.tursodatabase.annotations.SkipNullableCheck;
|
||||
import org.github.tursodatabase.jdbc4.JDBC4Connection;
|
||||
import org.github.tursodatabase.utils.Logger;
|
||||
import org.github.tursodatabase.utils.LoggerFactory;
|
||||
import tech.turso.annotations.Nullable;
|
||||
import tech.turso.annotations.SkipNullableCheck;
|
||||
import tech.turso.jdbc4.JDBC4Connection;
|
||||
import tech.turso.utils.Logger;
|
||||
import tech.turso.utils.LoggerFactory;
|
||||
|
||||
public class JDBC implements Driver {
|
||||
private static final Logger logger = LoggerFactory.getLogger(JDBC.class);
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase;
|
||||
package tech.turso;
|
||||
|
||||
import java.sql.DriverPropertyInfo;
|
||||
import java.util.Arrays;
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase;
|
||||
package tech.turso;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.sql.Connection;
|
||||
|
@ -7,8 +7,8 @@ import java.sql.SQLFeatureNotSupportedException;
|
|||
import java.util.Properties;
|
||||
import java.util.logging.Logger;
|
||||
import javax.sql.DataSource;
|
||||
import org.github.tursodatabase.annotations.Nullable;
|
||||
import org.github.tursodatabase.annotations.SkipNullableCheck;
|
||||
import tech.turso.annotations.Nullable;
|
||||
import tech.turso.annotations.SkipNullableCheck;
|
||||
|
||||
/** Provides {@link DataSource} API for configuring Limbo database connection. */
|
||||
public class LimboDataSource implements DataSource {
|
|
@ -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. */
|
||||
public enum LimboErrorCode {
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase.annotations;
|
||||
package tech.turso.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase.annotations;
|
||||
package tech.turso.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase.annotations;
|
||||
package tech.turso.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase.annotations;
|
||||
package tech.turso.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
|
@ -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.SQLException;
|
||||
import java.util.Properties;
|
||||
import org.github.tursodatabase.annotations.NativeInvocation;
|
||||
import org.github.tursodatabase.utils.LimboExceptionUtils;
|
||||
import org.github.tursodatabase.utils.Logger;
|
||||
import org.github.tursodatabase.utils.LoggerFactory;
|
||||
import tech.turso.annotations.NativeInvocation;
|
||||
import tech.turso.utils.LimboExceptionUtils;
|
||||
import tech.turso.utils.Logger;
|
||||
import tech.turso.utils.LoggerFactory;
|
||||
|
||||
public class LimboConnection {
|
||||
private static final Logger logger = LoggerFactory.getLogger(LimboConnection.class);
|
|
@ -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.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.sql.SQLException;
|
||||
import org.github.tursodatabase.LimboErrorCode;
|
||||
import org.github.tursodatabase.annotations.NativeInvocation;
|
||||
import org.github.tursodatabase.annotations.VisibleForTesting;
|
||||
import org.github.tursodatabase.utils.LimboExceptionUtils;
|
||||
import org.github.tursodatabase.utils.Logger;
|
||||
import org.github.tursodatabase.utils.LoggerFactory;
|
||||
import tech.turso.LimboErrorCode;
|
||||
import tech.turso.annotations.NativeInvocation;
|
||||
import tech.turso.annotations.VisibleForTesting;
|
||||
import tech.turso.utils.LimboExceptionUtils;
|
||||
import tech.turso.utils.Logger;
|
||||
import tech.turso.utils.LoggerFactory;
|
||||
|
||||
/** This class provides a thin JNI layer over the SQLite3 C API. */
|
||||
public final class LimboDB implements AutoCloseable {
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase.core;
|
||||
package tech.turso.core;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.Properties;
|
|
@ -1,10 +1,10 @@
|
|||
package org.github.tursodatabase.core;
|
||||
package tech.turso.core;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import org.github.tursodatabase.annotations.Nullable;
|
||||
import org.github.tursodatabase.utils.Logger;
|
||||
import org.github.tursodatabase.utils.LoggerFactory;
|
||||
import tech.turso.annotations.Nullable;
|
||||
import tech.turso.utils.Logger;
|
||||
import tech.turso.utils.LoggerFactory;
|
||||
|
||||
/**
|
||||
* A table of data representing limbo database result set, which is generated by executing a
|
|
@ -1,11 +1,11 @@
|
|||
package org.github.tursodatabase.core;
|
||||
package tech.turso.core;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import org.github.tursodatabase.annotations.NativeInvocation;
|
||||
import org.github.tursodatabase.annotations.Nullable;
|
||||
import org.github.tursodatabase.utils.LimboExceptionUtils;
|
||||
import org.github.tursodatabase.utils.Logger;
|
||||
import org.github.tursodatabase.utils.LoggerFactory;
|
||||
import tech.turso.annotations.NativeInvocation;
|
||||
import tech.turso.annotations.Nullable;
|
||||
import tech.turso.utils.LimboExceptionUtils;
|
||||
import tech.turso.utils.Logger;
|
||||
import tech.turso.utils.LoggerFactory;
|
||||
|
||||
/**
|
||||
* By default, only one <code>resultSet</code> object per <code>LimboStatement</code> can be open at
|
|
@ -1,8 +1,8 @@
|
|||
package org.github.tursodatabase.core;
|
||||
package tech.turso.core;
|
||||
|
||||
import java.util.Arrays;
|
||||
import org.github.tursodatabase.annotations.NativeInvocation;
|
||||
import org.github.tursodatabase.annotations.Nullable;
|
||||
import tech.turso.annotations.NativeInvocation;
|
||||
import tech.turso.annotations.Nullable;
|
||||
|
||||
/** Represents the step result of limbo's statement's step function. */
|
||||
public class LimboStepResult {
|
|
@ -13,7 +13,7 @@
|
|||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
package org.github.tursodatabase.core;
|
||||
package tech.turso.core;
|
||||
|
||||
/** Sqlite error codes. */
|
||||
public class SqliteCode {
|
|
@ -1,7 +1,7 @@
|
|||
package org.github.tursodatabase.exceptions;
|
||||
package tech.turso.exceptions;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import org.github.tursodatabase.LimboErrorCode;
|
||||
import tech.turso.LimboErrorCode;
|
||||
|
||||
public class LimboException extends SQLException {
|
||||
private final LimboErrorCode resultCode;
|
|
@ -1,13 +1,13 @@
|
|||
package org.github.tursodatabase.jdbc4;
|
||||
package tech.turso.jdbc4;
|
||||
|
||||
import java.sql.*;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.concurrent.Executor;
|
||||
import org.github.tursodatabase.annotations.SkipNullableCheck;
|
||||
import org.github.tursodatabase.core.LimboConnection;
|
||||
import org.github.tursodatabase.core.LimboStatement;
|
||||
import tech.turso.annotations.SkipNullableCheck;
|
||||
import tech.turso.core.LimboConnection;
|
||||
import tech.turso.core.LimboStatement;
|
||||
|
||||
public class JDBC4Connection implements Connection {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase.jdbc4;
|
||||
package tech.turso.jdbc4;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
@ -10,10 +10,10 @@ import java.sql.RowIdLifetime;
|
|||
import java.sql.SQLException;
|
||||
import java.sql.SQLFeatureNotSupportedException;
|
||||
import java.util.Properties;
|
||||
import org.github.tursodatabase.annotations.Nullable;
|
||||
import org.github.tursodatabase.annotations.SkipNullableCheck;
|
||||
import org.github.tursodatabase.utils.Logger;
|
||||
import org.github.tursodatabase.utils.LoggerFactory;
|
||||
import tech.turso.annotations.Nullable;
|
||||
import tech.turso.annotations.SkipNullableCheck;
|
||||
import tech.turso.utils.Logger;
|
||||
import tech.turso.utils.LoggerFactory;
|
||||
|
||||
public class JDBC4DatabaseMetaData implements DatabaseMetaData {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase.jdbc4;
|
||||
package tech.turso.jdbc4;
|
||||
|
||||
import static java.util.Objects.requireNonNull;
|
||||
|
||||
|
@ -22,8 +22,8 @@ import java.sql.SQLXML;
|
|||
import java.sql.Time;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Calendar;
|
||||
import org.github.tursodatabase.annotations.SkipNullableCheck;
|
||||
import org.github.tursodatabase.core.LimboResultSet;
|
||||
import tech.turso.annotations.SkipNullableCheck;
|
||||
import tech.turso.core.LimboResultSet;
|
||||
|
||||
public class JDBC4PreparedStatement extends JDBC4Statement implements PreparedStatement {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase.jdbc4;
|
||||
package tech.turso.jdbc4;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.Reader;
|
||||
|
@ -22,9 +22,9 @@ import java.sql.Time;
|
|||
import java.sql.Timestamp;
|
||||
import java.util.Calendar;
|
||||
import java.util.Map;
|
||||
import org.github.tursodatabase.annotations.Nullable;
|
||||
import org.github.tursodatabase.annotations.SkipNullableCheck;
|
||||
import org.github.tursodatabase.core.LimboResultSet;
|
||||
import tech.turso.annotations.Nullable;
|
||||
import tech.turso.annotations.SkipNullableCheck;
|
||||
import tech.turso.core.LimboResultSet;
|
||||
|
||||
public class JDBC4ResultSet implements ResultSet {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase.jdbc4;
|
||||
package tech.turso.jdbc4;
|
||||
|
||||
import static java.util.Objects.requireNonNull;
|
||||
|
||||
|
@ -8,10 +8,10 @@ import java.sql.SQLException;
|
|||
import java.sql.SQLWarning;
|
||||
import java.sql.Statement;
|
||||
import java.util.concurrent.locks.ReentrantLock;
|
||||
import org.github.tursodatabase.annotations.Nullable;
|
||||
import org.github.tursodatabase.annotations.SkipNullableCheck;
|
||||
import org.github.tursodatabase.core.LimboResultSet;
|
||||
import org.github.tursodatabase.core.LimboStatement;
|
||||
import tech.turso.annotations.Nullable;
|
||||
import tech.turso.annotations.SkipNullableCheck;
|
||||
import tech.turso.core.LimboResultSet;
|
||||
import tech.turso.core.LimboStatement;
|
||||
|
||||
public class JDBC4Statement implements Statement {
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
package org.github.tursodatabase.utils;
|
||||
package tech.turso.utils;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import org.github.tursodatabase.annotations.Nullable;
|
||||
import tech.turso.annotations.Nullable;
|
||||
|
||||
public class ByteArrayUtils {
|
||||
@Nullable
|
|
@ -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 org.github.tursodatabase.LimboErrorCode;
|
||||
import org.github.tursodatabase.annotations.Nullable;
|
||||
import org.github.tursodatabase.exceptions.LimboException;
|
||||
import tech.turso.LimboErrorCode;
|
||||
import tech.turso.annotations.Nullable;
|
||||
import tech.turso.exceptions.LimboException;
|
||||
|
||||
public class LimboExceptionUtils {
|
||||
/**
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase.utils;
|
||||
package tech.turso.utils;
|
||||
|
||||
/** A simple internal Logger interface. */
|
||||
public interface Logger {
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase.utils;
|
||||
package tech.turso.utils;
|
||||
|
||||
import java.util.logging.Level;
|
||||
|
|
@ -1 +1 @@
|
|||
org.github.tursodatabase.JDBC
|
||||
tech.turso.JDBC
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
package org.github.tursodatabase;
|
||||
package tech.turso;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
import java.util.Properties;
|
||||
import org.github.tursodatabase.jdbc4.JDBC4Connection;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import tech.turso.jdbc4.JDBC4Connection;
|
||||
|
||||
public class IntegrationTest {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase;
|
||||
package tech.turso;
|
||||
|
||||
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
|
||||
|
||||
|
@ -6,8 +6,8 @@ import java.sql.Connection;
|
|||
import java.sql.DriverManager;
|
||||
import java.sql.SQLException;
|
||||
import java.util.Properties;
|
||||
import org.github.tursodatabase.jdbc4.JDBC4Connection;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import tech.turso.jdbc4.JDBC4Connection;
|
||||
|
||||
class JDBCTest {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase;
|
||||
package tech.turso;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
|
@ -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.assertNotEquals;
|
||||
|
||||
import java.util.Properties;
|
||||
import org.github.tursodatabase.TestUtils;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import tech.turso.TestUtils;
|
||||
|
||||
class LimboDBFactoryTest {
|
||||
|
|
@ -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.assertThatThrownBy;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
|
||||
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 tech.turso.LimboErrorCode;
|
||||
import tech.turso.TestUtils;
|
||||
import tech.turso.exceptions.LimboException;
|
||||
|
||||
public class LimboDBTest {
|
||||
|
|
@ -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.assertEquals;
|
||||
|
@ -7,10 +7,10 @@ import static org.junit.jupiter.api.Assertions.assertNull;
|
|||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
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.Test;
|
||||
import tech.turso.TestUtils;
|
||||
import tech.turso.jdbc4.JDBC4Connection;
|
||||
|
||||
class LimboStatementTest {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase.jdbc4;
|
||||
package tech.turso.jdbc4;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
|
@ -6,9 +6,9 @@ import java.sql.ResultSet;
|
|||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
import java.util.Properties;
|
||||
import org.github.tursodatabase.TestUtils;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import tech.turso.TestUtils;
|
||||
|
||||
class JDBC4ConnectionTest {
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
package org.github.tursodatabase.jdbc4;
|
||||
package tech.turso.jdbc4;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
|
||||
import java.util.Properties;
|
||||
import org.github.tursodatabase.TestUtils;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import tech.turso.TestUtils;
|
||||
|
||||
class JDBC4DatabaseMetaDataTest {
|
||||
|
|
@ -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.assertEquals;
|
||||
|
@ -10,9 +10,9 @@ import java.sql.PreparedStatement;
|
|||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.Properties;
|
||||
import org.github.tursodatabase.TestUtils;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import tech.turso.TestUtils;
|
||||
|
||||
class JDBC4PreparedStatementTest {
|
||||
|
|
@ -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.assertEquals;
|
||||
|
@ -14,11 +14,11 @@ import java.sql.SQLException;
|
|||
import java.sql.Statement;
|
||||
import java.util.Properties;
|
||||
import java.util.stream.Stream;
|
||||
import org.github.tursodatabase.TestUtils;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.MethodSource;
|
||||
import tech.turso.TestUtils;
|
||||
|
||||
class JDBC4ResultSetTest {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.github.tursodatabase.jdbc4;
|
||||
package tech.turso.jdbc4;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
|
@ -6,10 +6,10 @@ import java.sql.ResultSet;
|
|||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
import java.util.Properties;
|
||||
import org.github.tursodatabase.TestUtils;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import tech.turso.TestUtils;
|
||||
|
||||
class JDBC4StatementTest {
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue