public SqlStatements() { attributes = Collections.synchronizedMap(new HashMap<>()); templateEngine = new DefinedAttributeTemplateEngine(); sqlParser = new ColonPrefixSqlParser(); sqlLogger = SqlLogger.NOP_SQL_LOGGER; queryTimeout = null; }
@Override public ParsedSql parse(String sql, StatementContext ctx) { log.add(sql); return new ColonPrefixSqlParser().parse(sql, ctx); }
@Override public String nameParameter(String rawName, StatementContext ctx) { return new ColonPrefixSqlParser().nameParameter(rawName, ctx); } }
private String parseString(final String src) { return parser.parse(src, mock(StatementContext.class)).getSql(); }
@Before public void setUp() { parser = new ColonPrefixSqlParser(); ctx = mock(StatementContext.class); }
@Before public void setUp() { Jdbi db = dbRule.getJdbi(); // this is the default, but be explicit for sake of clarity in test db.setSqlParser(new ColonPrefixSqlParser()); handle = db.open(); }
public SqlStatements() { attributes = new ConcurrentHashMap<>(); templateEngine = new DefinedAttributeTemplateEngine(); sqlParser = new ColonPrefixSqlParser(); timingCollector = TimingCollector.NOP_TIMING_COLLECTOR; }
@Before public void setUp() { Jdbi db = dbRule.getJdbi(); // this is the default, but be explicit for sake of clarity in test db.setSqlParser(new ColonPrefixSqlParser()); handle = db.open(); }