2 ms·
True! Good point and clarification. The nice aspect of pg-structure for me was getting all of that information_schema goodness already pulled out into hashes/D
by stephen 7y ago
True! Good point and clarification.
The nice aspect of pg-structure for me was getting all of that information_schema goodness already pulled out into hashes/DTOs from a 1-line "await pgStructure(...)" call.
I.e. w/o pg-structure, I'd probably end up writing a mini/hacky version of it that did the same thing, "do these ~3-4 SQL queries and mash them into some nice hashes for my code generator to consume".
Which is not terrible, but it's easier to just pull in another npm package. :-)