Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Apreche
· 2y ago · 0 comments
That’s fun, but I think I'll just use an SQLite foreign data wrapper instead.
Comments
[–]
frectonz
2y ago
That's the sensible option but not the fun one.
[–]
michelpp
2y ago
Then you need one wrapper per database, with this approach you can have one database per row.
[–]
ellisv
2y ago
But can I have one row that holds all the databases?
[–]
frectonz
2y ago
yes you can
CREATE TABLE crime_against_humanity ( databases SQLITE[] );
[–]
michelpp
2y 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.