docs: public List<Post> selectPosts(final String slug, final boolean withResolve) throws SQLException {
  
        List<Post.Builder> builders = Lists.newArrayListWithExpectedSize(2);
  
        Connection conn = null;
        PreparedStatement stmt = null;
        ResultSet rs = null;
        Timer.Context ctx = metrics.selectSlugPostsTimer.time();
  
        try {
           conn = connectionSupplier.getConnection();
           stmt = conn.prepareStatement(selectPostsBySlugSQL);
           stmt.setString(1, slug);
           rs = stmt.executeQuery();
           while(rs.next()) {
              builders.add(postFromResultSet(rs));
           }
        } finally {
           ctx.stop();
           SQLUtil.closeQuietly(conn, stmt, rs);
        }
  
        List<Post> posts = Lists.newArrayListWithExpectedSize(builders.size());
        for(Post.Builder builder : builders) {
           if(withResolve) {
              posts.add(resolve(builder).build());
           } else {
              posts.add(builder.build());
           }
        }
        return posts;
     }