code: public static String getPreparedSql(String patternSql) {
          Matcher matcher = PATTERN.matcher(patternSql);
          StringBuilder preparedSql = new StringBuilder();
          int i = 0;
          int start = 0;
          while (matcher.find()) {
              i++;
              preparedSql.append(patternSql.substring(start, matcher.start())).append(" $").append(i).append(" ");
              start = matcher.end();
          }
          if (preparedSql.length() == 0) {
              // no pattern elements in the pattern sql, return the pattern sql directly as prepared sql.
              return patternSql;
          }
          return preparedSql.toString();
      }
docs: Get pg prepared sql.
  Postgresql prepared sql eg.
  <p>
  <code>
  INSERT INTO USERS (id, name) VALUES ($1, $2)
  </code>
  </p>
  
  @param patternSql xian pattern sql
  @return pg prepared sql