sql-streams icon indicating copy to clipboard operation
sql-streams copied to clipboard

Support named parameters

Open bendem opened this issue 9 years ago • 0 comments

Parse the query looking for :([a-z0-9_]+)\b not in quotes, replace them with ? and build a Map<String, List<Integer>>. Then have

public P set(String name, T value) {
    map.getOrDefault(param, Collections.emptyList())
        .forEach(idx -> set(idx, value));
    return this;
}

bendem avatar May 11 '16 10:05 bendem