use of org.sql2o.Sql2o in project mapping-benchmark by arnaudroger.
the class Sql2OBenchmark method init.
@Setup
public void init() throws Exception {
ConnectionParam connParam = new ConnectionParam();
connParam.db = db;
connParam.init();
sql2o = new Sql2o(connParam.dataSource);
}
use of org.sql2o.Sql2o in project runelite by runelite.
the class SpringBootWebApplicationTest method cacheSql2o.
@Bean("Runelite Cache SQL2O")
Sql2o cacheSql2o() throws NamingException {
Map<Class, Converter> converters = new HashMap<>();
converters.put(Instant.class, new InstantConverter());
return new Sql2o("jdbc:mysql://192.168.1.2/cache", "runelite", "runelite", new NoQuirks(converters));
}
use of org.sql2o.Sql2o in project runelite by runelite.
the class SpringBootWebApplicationTest method xpSql2o.
@Bean("Runelite XP Tracker SQL2O")
Sql2o xpSql2o() throws NamingException {
Map<Class, Converter> converters = new HashMap<>();
converters.put(Instant.class, new InstantConverter());
return new Sql2o("jdbc:mysql://192.168.1.2/xptracker", "runelite", "runelite", new NoQuirks(converters));
}
use of org.sql2o.Sql2o in project runelite by runelite.
the class SpringBootWebApplicationTest method sql2o.
@Bean("Runelite SQL2O")
Sql2o sql2o() {
Map<Class, Converter> converters = new HashMap<>();
converters.put(Instant.class, new InstantConverter());
return new Sql2o("jdbc:mysql://192.168.1.2/runelite", "runelite", "runelite", new NoQuirks(converters));
}
use of org.sql2o.Sql2o in project runelite by runelite.
the class SpringBootWebApplication method sql2o.
@Bean("Runelite SQL2O")
Sql2o sql2o() throws NamingException {
DataSource dataSource = (DataSource) getContext().lookup("jdbc/runelite");
Map<Class, Converter> converters = new HashMap<>();
converters.put(Instant.class, new InstantConverter());
return new Sql2o(dataSource, new NoQuirks(converters));
}
Aggregations