mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-29 02:32:33 +08:00
support PinService
This commit is contained in:
@ -11,7 +11,7 @@ public class PostgreSQLDBManage implements DBManage {
|
||||
@Override
|
||||
public void connectDatabase(String database) {
|
||||
try {
|
||||
SQLExecutor.getInstance().execute("connect " + database + "");
|
||||
SQLExecutor.getInstance().execute("SELECT pg_database_size('"+database+"');");
|
||||
} catch (SQLException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user