forked from pixtaded/crab
Add RACv1.99.2 protocol specification
This commit is contained in:
@@ -6,7 +6,7 @@ import net.pixtaded.crab.common.Sanitizer;
|
||||
import java.sql.*;
|
||||
import java.util.Date;
|
||||
|
||||
public class Database implements AutoCloseable {
|
||||
public class Database {
|
||||
|
||||
private Connection connection;
|
||||
|
||||
@@ -61,11 +61,4 @@ public class Database implements AutoCloseable {
|
||||
String logsString = s.toString();
|
||||
return new Logs(logsString.isEmpty() ? 0 : logsString.getBytes().length, logsString);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws SQLException {
|
||||
if (connection != null && !connection.isClosed()) {
|
||||
connection.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user