SELECT field groups #35

Closed
opened 2019-02-25 09:27:08 +00:00 by jamie · 7 comments
jamie commented 2019-02-25 09:27:08 +00:00 (Migrated from git.hazaar.io)

Interesting feature request. The ability to request fields that are grouped in the output.

For example:

$result = $db->mytable->find(array(), array('id', dob', 'name' => array('first' => 'first_name', 'last' => 'last_name')));

dump($result->fetch());

Would output something like:

{
  "id": 1,
  "dob": "1978-12-13",
  "name": {
    "first": "Jamie",
    "last": "Carl"
  }
}
Interesting feature request. The ability to request fields that are grouped in the output. For example: ```php $result = $db->mytable->find(array(), array('id', dob', 'name' => array('first' => 'first_name', 'last' => 'last_name'))); dump($result->fetch()); ``` Would output something like: ```json { "id": 1, "dob": "1978-12-13", "name": { "first": "Jamie", "last": "Carl" } } ```
jamie commented 2019-02-25 09:27:59 +00:00 (Migrated from git.hazaar.io)

made the issue visible to everyone

made the issue visible to everyone
jamie commented 2019-02-25 09:28:06 +00:00 (Migrated from git.hazaar.io)

created merge request !12 to address this issue

created merge request !12 to address this issue
jamie commented 2019-02-25 09:28:07 +00:00 (Migrated from git.hazaar.io)

mentioned in merge request !12

mentioned in merge request !12
jamie commented 2019-02-25 10:12:22 +00:00 (Migrated from git.hazaar.io)

Blocked by #36

Blocked by #36
jamie commented 2019-02-25 12:36:58 +00:00 (Migrated from git.hazaar.io)

closed via commit 5b7b1dd357

closed via commit 5b7b1dd357e73338f07a2a1caa8902e89868ad41
jamie commented 2019-02-25 12:36:58 +00:00 (Migrated from git.hazaar.io)

closed via merge request !12

closed via merge request !12
jamie commented 2020-03-06 02:55:12 +00:00 (Migrated from git.hazaar.io)

mentioned in commit 5b7b1dd357

mentioned in commit 5b7b1dd357e73338f07a2a1caa8902e89868ad41
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hazaar/hazaar-dbi#35
No description provided.