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

Expose a getter or access to _client in the ServerlessClient class #58

Open
dangdennis opened this issue Jan 13, 2022 · 1 comment
Open
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@dangdennis
Copy link

I'd like to use Zapatos, pg ORM, with the benefits of ServerlessClient.

https://jawj.github.io/zapatos/#sql-tagged-template-strings

To use Zapatos, the .run method requires a pg.Client or pg.Pool. ServerlessClient itself cannot satisfy the pg.ClientBase interface.

I've already successfully made queries with Zapatos by ignoring the type checker and passing ._client. However, I'd like to do this without using ts-ignore everywhere.

@MatteoGioioso
Copy link
Owner

Hey, if you have time to make a PR that would be great, otherwise I think I could do something this coming weekend if I have time. Thanks

@MatteoGioioso MatteoGioioso added the enhancement New feature or request label Oct 8, 2022
@MatteoGioioso MatteoGioioso added help wanted Extra attention is needed good first issue Good for newcomers labels Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants