tinybase icon indicating copy to clipboard operation
tinybase copied to clipboard

Consider a select('*') or equivalent

Open jamesgpearce opened this issue 2 years ago • 2 comments
trafficstars

Without Select, queries don'f fetch anything. And since Select('*') is not supported there isn't a way to use getResultTable to return the row.

Think about whether this is for the root table or for every table referenced and how to deal with duplicate cell Ids

Via @founderYonz

jamesgpearce avatar Dec 12 '22 16:12 jamesgpearce

+1 I wanted to get the full row after a join, and it seems like I have to define every cell now, which does not look pretty.

ghost avatar Aug 15 '23 10:08 ghost

Since v3.3, there is a getTableCellIds method which (assuming the table is populated) will give you all the cell Ids present anywhere in the table. As a short term work around you could quickly loop through those and imperatively select them.

(This ultimately is the mechanism I want to use to support this natively. Please be patient!)

jamesgpearce avatar Sep 01 '23 13:09 jamesgpearce

Kinda surprised such a common functionality was not mentioned more in the issues. Any plans for this to be added?

Nikola-Milovic avatar Mar 03 '25 07:03 Nikola-Milovic