Y
Hacker News
new
|
ask
|
show
|
jobs
by
Apreche
582 days ago
That’s fun, but I think I'll just use an SQLite foreign data wrapper instead.
2 comments
frectonz
582 days ago
That's the sensible option but not the fun one.
link
michelpp
582 days ago
Then you need one wrapper per database, with this approach you can have one database per row.
link
ellisv
582 days ago
But can I have one row that holds all the databases?
link
frectonz
582 days ago
yes you can
CREATE TABLE crime_against_humanity ( databases SQLITE[] );
link
michelpp
582 days ago
With the expanded datum api you can also work with subscriptable array types to only expand elements lazily as needed. It might already works if you try it, but support for it might be hardwired only to nested stock arrays, something to look into.
link