mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 01:58:16 +00:00
Remove unused methods
This commit is contained in:
parent
a3a31e787c
commit
5b9a158db1
2 changed files with 0 additions and 40 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue