// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package demo.sharding;

public class ConfigJdbc {
    public static final String UN = "root";
    public static final String PW = "";
    //public static final String UN = "postgres";
    //public static final String PW = "hemmeligt";
    //public static final String UN = null;
    //public static final String PW = null;
    //public static final String UN = "arne";
    //public static final String PW = "hemmeligt";
    //public static final String UN = null;
    //public static final String PW = null;
    public static String ds2url(String ds) {
        return "jdbc:mysql://localhost/" + ds;
        //return "jdbc:postgresql://localhost/Test?currentSchema=" + ds;
        //return "jdbc:sqlserver://localhost;database=" + ds + ";integratedSecurity=true;";
        //return "jdbc:db2://localhost:50000/Test:currentSchema=" + ds.toUpperCase() + ";";
        //return "jdbc:oracle:thin:" + ds + "/hemmeligt@localhost:1521:xe";
    }
}
