Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Apreche
1 day ago
|
parent
|
context
|
favorite
| on:
Show HN: Embed an SQLite database in your PostgreS...
That’s fun, but I think I'll just use an SQLite foreign data wrapper instead.
frectonz
1 day ago
|
next
[–]
That's the sensible option but not the fun one.
reply
michelpp
1 day ago
|
prev
[–]
Then you need one wrapper per database, with this approach you can have one database per row.
reply
ellisv
1 day ago
|
parent
[–]
But can I have one row that holds all the databases?
reply
frectonz
1 day ago
|
root
|
parent
[–]
yes you can
CREATE TABLE crime_against_humanity ( databases SQLITE[] );
reply
michelpp
1 day ago
|
root
|
parent
[–]
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.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: