Skip to content

Return distincted value #41

Closed
Closed

Description

@wuspum

Is there an option to fetch distincted single values?

For example $store->select('name')->distinct()->where(...)->fetch();

Activity

  1. self-assigned this
    on Oct 21, 2020
  2. added 2 commits that reference this issue on Nov 25, 2020
  3. added 3 commits that reference this issue on Nov 28, 2020
  4. rakibtg commented on Nov 30, 2020

    @rakibtg
    Member

    @wuspum Added distinct feature!

    Example:

    $userStore->distinct('name')->distinct(['country', 'foobar'])->fetch();

    Available in dev at this moment.

  5. added this to the Version 2.0 milestone on Jan 11, 2021
  6. rakibtg commented on Jan 24, 2021

    @rakibtg
    Member

    Added in SleekDB 2.0!

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions