News for hackers. Stuff that matters.
Re:Query Google Sheets as virtual tables with SQLite extensi... by mixcocam on Saturday March 18, 2023 @08:38AM (#35208594)
You can just use curl to get the csv from the gayest and pipe into SQLite using the .import command.

Not sure what this has on top of that.

Re:Query Google Sheets as virtual tables with SQLite extensi... by Sirikon on Saturday March 18, 2023 @08:52AM (#35208678)
from the _what_
Re:Query Google Sheets as virtual tables with SQLite extensi... by qolop on Saturday March 18, 2023 @09:33AM (#35209014)
From the gayest
Re:Query Google Sheets as virtual tables with SQLite extensi... by nonethewiser on Saturday March 18, 2023 @09:52AM (#35209130)
Gayest what? Sheet? Account holder?
Re:Query Google Sheets as virtual tables with SQLite extensi... by samstave on Saturday March 18, 2023 @10:00PM (#35215232)
Hardware
Re:Query Google Sheets as virtual tables with SQLite extensi... by garbagecoder on Saturday March 18, 2023 @01:43PM (#35211334)
That sounds like me, but I don’t issue csvs.
Re:Query Google Sheets as virtual tables with SQLite extensi... by samstave on Saturday March 18, 2023 @10:00PM (#35215237)
I only issue .STLs
Re:Query Google Sheets as virtual tables with SQLite extensi... by xnx on Saturday March 18, 2023 @09:53AM (#35209139)
typo of gsheet?
Re:Query Google Sheets as virtual tables with SQLite extensi... by masklinn on Saturday March 18, 2023 @01:11PM (#35210943)
More likely to be autocorrect doing it’s usual.
Re:Query Google Sheets as virtual tables with SQLite extensi... by mixcocam on Sunday March 19, 2023 @06:57AM (#35217795)
Yes that’s correct ! Oops
Re:Query Google Sheets as virtual tables with SQLite extensi... by cristoperb on Saturday March 18, 2023 @10:12AM (#35209276)
I wrote a little cli[1] that is a bit easier than curl for getting data to and from google sheets as csv. I do think this sqlite extension would be even more convenient if it supported writing data with INSERT/UPDATE.

1: https://github.com/cristoper/gsheet

Re:Query Google Sheets as virtual tables with SQLite extensi... by samstave on Saturday March 18, 2023 @05:17PM (#35213199)
This needs its own post
Re:Query Google Sheets as virtual tables with SQLite extensi... by fulafel on Saturday March 18, 2023 @10:14AM (#35209295)
For one, there's no CSV standard and often csv based data exchange methods have lurking (and/or obvious) correctness problems. Maybe gsheets and sqlite are lucky there, maybe not.

This project is also well documented including the gsheets side (which is quite non-obvious).

Re:Query Google Sheets as virtual tables with SQLite extensi... by cosmojg on Saturday March 18, 2023 @11:17AM (#35209756)
> For one, there's no CSV standard

This is false: https://www.rfc-editor.org/rfc/rfc4180

Re:Query Google Sheets as virtual tables with SQLite extensi... by fulafel on Saturday March 18, 2023 @11:31AM (#35209881)
Well yes, there are actually many many CSV standards, my mistake for imprecise language. What I meant to say that there's no single CSV format that programs agree on. Starting with Excel...

Apparently it's quite common in Gsheet land to base your CSV export around things like this copypasta javascript code and customize as needed (follow forks, in parent direction too, for more of the story) https://gist.github.com/mrkrndvs/a2c8ff518b16e9188338cb809e0...

Re:Query Google Sheets as virtual tables with SQLite extensi... by jmull on Saturday March 18, 2023 @03:50PM (#35212474)
> Maybe gsheets and sqlite are lucky there, maybe not

Seems weird to to pooh-pooh the idea without any reason to think it isn't good. Also, it's not really a question of luck, is it? It's not that mysterious how to validate an integration like this.

Re:Query Google Sheets as virtual tables with SQLite extensi... by samstave on Saturday March 18, 2023 @10:37PM (#35215438)
>>"(which is quite non-obvious)."

ELI5 what this means, please? (unpack this for the ignorant among us, plz)

Re:Query Google Sheets as virtual tables with SQLite extensi... by fulafel on Sunday March 19, 2023 @03:10AM (#35216745)
I mean the gsheets api access setup is convoluted and here it's well documented. It has about two dozen steps.