mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Delete] 删除目前暂不使用的类;
This commit is contained in:
parent
ce93c7372e
commit
900a4e14ec
@ -1,28 +0,0 @@
|
|||||||
package net.lamgc.cgj.db;
|
|
||||||
|
|
||||||
import java.sql.Connection;
|
|
||||||
import java.sql.DriverManager;
|
|
||||||
import java.sql.SQLException;
|
|
||||||
import java.sql.Statement;
|
|
||||||
|
|
||||||
public class RankingDB {
|
|
||||||
|
|
||||||
private final Connection dbConnection;
|
|
||||||
|
|
||||||
public RankingDB(String dbUrl, String username, String password) throws SQLException {
|
|
||||||
try {
|
|
||||||
Class.forName("com.mysql.cj.jdbc.Driver");
|
|
||||||
} catch (ClassNotFoundException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
dbConnection = DriverManager.getConnection("jdbc:mysql://" + dbUrl + "/pixivRanking?useSSL=false&serverTimezone=UTC",username,password);
|
|
||||||
checkAndFix(dbConnection);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void checkAndFix(Connection connection) throws SQLException {
|
|
||||||
Statement statement = connection.createStatement();
|
|
||||||
statement.execute("");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user