Loading ...
Sorry, an error occurred while loading the content.

Re: Retrieve unique values

Expand Messages
  • martin_seidel
    ... Actually, a function to get only unique values out of a TAFFY would have been convenient for my mini-catalogue app too, but gatherUniques(array) is also
    Message 1 of 7 , Dec 14, 2008
    • 0 Attachment
      --- In taffydb@yahoogroups.com, "tacoman_cool" <ian@...> wrote:
      >
      > It very much would. The reason it hasn't to date is to save space in
      > the .js file and to focus on the API more on the things people have
      > been asking for. Personally I'd like to look at returning an special
      > object from get() that would be able to do this type of thing.
      >
      > So you could do:
      > collection.get({addressState:"WA"}).getUniques("somecolumn");
      >
      > or, as in our other discussion:
      >
      > collection.get({addressState:"WA"}).subSelect(["col1","col2");
      >
      > Any thoughts?
      >
      Actually, a function to get only unique values out of a TAFFY would
      have been convenient for my mini-catalogue app too, but
      gatherUniques(array) is also useful.
    • martin_seidel
      Great work, btw.
      Message 2 of 7 , Dec 14, 2008
      • 0 Attachment
        Great work, btw.
      Your message has been successfully submitted and would be delivered to recipients shortly.