Skip to content

How to auto select first row of table populated by duckdb query? #2011

Answered by datadavev
datadavev asked this question in Q&A
Discussion options

You must be logged in to vote

Ended up with this as a solution:

db = await DuckDBClient.of();
theRecords = db.query("SELECT a,b,c FROM read_parquet('https://example.org/data.parquet');
theTable = Inputs.table(theRecords, {multiple: false});
theView = view(theTable);

theTable.querySelector('input[value="0"]').click();

Seems to do the job.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Fil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant