use of org.sql2o.quirks.NoQuirks 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));
}
use of org.sql2o.quirks.NoQuirks in project runelite by runelite.
the class CacheConfiguration method sql2o.
@Bean
@Qualifier("Runelite Cache SQL2O")
public Sql2o sql2o(DataSource dataSource) {
Map<Class, Converter> converters = new HashMap<>();
converters.put(Instant.class, new InstantConverter());
return new Sql2o(dataSource, new NoQuirks(converters));
}
Aggregations