package x.sql2.configs;
import x.sql2.dialect.MSSQLDialect;
import x.sql2.enums.SQLDatabaseType;
public class MSSQLConnectionsConfig extends ISQLConnectionsConfig {
public MSSQLConnectionsConfig(String host_port, String dbName, String username, String password, int connectionsLimit) {
setDriverName("net.sourceforge.jtds.jdbc.Driver");
setConnectionString("jdbc:jtds:sqlserver://"+host_port+"/"+dbName);
setUsername(username);
setPassword(password);
setConnectionsCount(connectionsLimit);
setDialect(new MSSQLDialect());
}
@Override
public SQLDatabaseType getDatabaseType() {
return SQLDatabaseType.MSSQL;
}
}