mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-29 02:32:33 +08:00
Support for creating database and schema
This commit is contained in:
@ -11,7 +11,7 @@ public class SqlServerDBManage extends DefaultDBManage implements DBManage {
|
||||
@Override
|
||||
public void connectDatabase(Connection connection, String database) {
|
||||
try {
|
||||
SQLExecutor.getInstance().execute(connection,"use [" + database + "];");
|
||||
SQLExecutor.getInstance().execute(connection, "use [" + database + "];");
|
||||
} catch (SQLException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user