Skip to content

Support named parameters #13

Description

@bendem

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;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions