use of net.runelite.http.service.util.InstantConverter in project runelite by runelite.
the class SpringBootWebApplication method cacheSql2o.
@Bean("Runelite Cache SQL2O")
Sql2o cacheSql2o() throws NamingException {
DataSource dataSource = (DataSource) getContext().lookup("jdbc/runelite-cache2");
Map<Class, Converter> converters = new HashMap<>();
converters.put(Instant.class, new InstantConverter());
return new Sql2o(dataSource, new NoQuirks(converters));
}
use of net.runelite.http.service.util.InstantConverter in project runelite by runelite.
the class SpringBootWebApplication method trackerSql2o.
@Bean("Runelite XP Tracker SQL2O")
Sql2o trackerSql2o() throws NamingException {
DataSource dataSource = (DataSource) getContext().lookup("jdbc/runelite-tracker");
Map<Class, Converter> converters = new HashMap<>();
converters.put(Instant.class, new InstantConverter());
return new Sql2o(dataSource, new NoQuirks(converters));
}
use of net.runelite.http.service.util.InstantConverter 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 net.runelite.http.service.util.InstantConverter 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 net.runelite.http.service.util.InstantConverter 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));
}
Aggregations