Skip to content

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

@dangdennis

Description

@dangdennis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions