Skip to content

add support for pg-promise target#272

Merged
akheron merged 4 commits intoakheron:mainfrom
rob0rt:main
Sep 13, 2021
Merged

add support for pg-promise target#272
akheron merged 4 commits intoakheron:mainfrom
rob0rt:main

Conversation

@rob0rt
Copy link
Contributor

@rob0rt rob0rt commented Sep 8, 2021

This PR adds basic support for generating with pg-promise as the target. Despite being backed by pg, the APIs and types are slightly different. For example, there is no ClientBase or Pool types; all query functions are located directly on the database instance type itself.

In order to test this, I ran it against some SQL queries in an (unfortunately private) repo I work in and have validated that it produces usable output. I'm happy to add additional tests if necessary or desired.

@akheron
Copy link
Owner

akheron commented Sep 9, 2021

Nice, thanks! Could you also add the pg-promise target to README and cli.ts help options?

@rob0rt
Copy link
Contributor Author

rob0rt commented Sep 13, 2021

@akheron done :) Please let me know if I missed anything else

@rob0rt rob0rt requested a review from akheron September 13, 2021 18:12
@akheron akheron merged commit d72f737 into akheron:main Sep 13, 2021
@akheron
Copy link
Owner

akheron commented Sep 13, 2021

Great, merged! 💎

@rob0rt
Copy link
Contributor Author

rob0rt commented Sep 13, 2021

Awesome, thank you! It'd be appreciated if you could create a new release whenever you get the chance. For now I'm just running my fork locally so no pressure. Thank you for your quick reviews!

@akheron
Copy link
Owner

akheron commented Sep 14, 2021

Released in v1.3.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants