tinyplex / tinybase

The reactive data store for local‑first apps.
https://tinybase.org
MIT License
3.39k stars 67 forks source link

Consider a select('*') or equivalent #40

Open jamesgpearce opened 1 year ago

jamesgpearce commented 1 year ago

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

segments-tobias commented 11 months ago

+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.

jamesgpearce commented 11 months ago

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!)