mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 03:54:21 +01:00
Remove unused methods
This commit is contained in:
@@ -29,18 +29,6 @@ public abstract class AbstractDB {
|
||||
*/
|
||||
public abstract void interrupt() throws SQLException;
|
||||
|
||||
/**
|
||||
* Executes an SQL statement.
|
||||
*
|
||||
* @param sql SQL statement to be executed.
|
||||
* @param autoCommit Whether to auto-commit the transaction.
|
||||
* @throws SQLException if a database access error occurs.
|
||||
*/
|
||||
public final synchronized void exec(String sql, boolean autoCommit) throws SQLException {
|
||||
// TODO: add implementation
|
||||
throw new SQLFeatureNotSupportedException();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an SQLite interface to a database for the given connection.
|
||||
*
|
||||
@@ -87,22 +75,4 @@ public abstract class AbstractDB {
|
||||
* @throws SQLException if a database access error occurs.
|
||||
*/
|
||||
protected abstract void close0() throws SQLException;
|
||||
|
||||
/**
|
||||
* Compiles, evaluates, executes and commits an SQL statement.
|
||||
*
|
||||
* @param sql An SQL statement.
|
||||
* @return Result code.
|
||||
* @throws SQLException if a database access error occurs.
|
||||
*/
|
||||
public abstract int exec(String sql) throws SQLException;
|
||||
|
||||
/**
|
||||
* Destroys a prepared statement.
|
||||
*
|
||||
* @param stmt Pointer to the statement pointer.
|
||||
* @return Result code.
|
||||
* @throws SQLException if a database access error occurs.
|
||||
*/
|
||||
protected abstract int finalize(long stmt) throws SQLException;
|
||||
}
|
||||
|
||||
@@ -71,12 +71,6 @@ public final class LimboDB extends AbstractDB {
|
||||
@Override
|
||||
protected native void close0() throws SQLException;
|
||||
|
||||
@Override
|
||||
public int exec(String sql) throws SQLException {
|
||||
// TODO: add implementation
|
||||
throw new SQLFeatureNotSupportedException();
|
||||
}
|
||||
|
||||
// TODO: add support for JNI
|
||||
native int execUtf8(byte[] sqlUtf8) throws SQLException;
|
||||
|
||||
@@ -110,10 +104,6 @@ public final class LimboDB extends AbstractDB {
|
||||
|
||||
private native long connect0(byte[] path, long databasePtr) throws SQLException;
|
||||
|
||||
// TODO: add support for JNI
|
||||
@Override
|
||||
protected native int finalize(long stmt);
|
||||
|
||||
@VisibleForTesting
|
||||
native void throwJavaException(int errorCode) throws SQLException;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user