Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for pg-promise target #272

Merged
merged 4 commits into from
Sep 13, 2021
Merged

add support for pg-promise target #272

merged 4 commits into from
Sep 13, 2021

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