top | item 21865380

(no title)

rgharris | 6 years ago

I really like the sql() helpers and the naming of the unsafe() method. The file query helper is great - I've moved to using external query files for everything in a current project.

I've used pg-promise a lot and this seems to cover a good bit of the core functionality and could be extended pretty well in a project. Do you plan to continue building out features or are you looking to keep this as lean as possible long term?

Also, does sql.file() support named parameters or just indexed parameters (like $1)?

discuss

order

porsager|6 years ago

Thanks.

I'll definitely be open to features that improves daily usage, and features that treats SQL as a first class citizen. It'll never turn into an ORM. So if a feature has great value and it doesn't interfere with the core I'm all ears :) Your example with named parameters in sql files is definitely something I'd like to do, since that's not supported currently. You're very welcome to create an issue for it so we can continue that idea there.

rgharris|6 years ago

Awesome, I think your plans on feature development make a lot of sense. Hopefully I’ll have some time to try it out in a real project before long!