Hacker News new | past | comments | ask | show | jobs | submit login

That’s fun, but I think I'll just use an SQLite foreign data wrapper instead.





That's the sensible option but not the fun one.

Then you need one wrapper per database, with this approach you can have one database per row.

But can I have one row that holds all the databases?

yes you can

CREATE TABLE crime_against_humanity ( databases SQLITE[] );


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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: