Adel Salakh

Results 54 comments of Adel Salakh

Hm, not sure how to solve this. The closest thing I found to achieving this is this [issue](https://github.com/microsoft/TypeScript/issues/47137). Does including the ANTLR type defs have any measurable impact on compilation...

Thanks for reporting this. It should certainly be escaped. Meanwhile a temporary solution will be to name the column: ```sql const checkBlacklist = sql` SELECT COUNT(*) > 0 AS is_user_blacklisted...

Thanks for preparing a test case @golergka Unfortunately I can't reproduce the issue in the example docker container (Postgres 12). When I try it, pgTyped correctly infers the type as...

Thanks for the kind words @jameshfisher. Unfortunately, pgTyped can't do query analysis by itself for now, it offloads that to Postgres. > I want to have an in-repo definition of...

Unfortunately given how pgTyped works, extending SQL like that won't be possible because we rely on Postgres for parsing and analyzing the queries. One way to achieve this might be...

Agree, I have been thinking about providing a way to override the inferred types, maybe with something like an `@override` flag. Not sure yet about how dynamic will such an...

Yes, changing the `query` field visibility is a perfectly valid solution for this.

Yes, it is definitely possible to add MySQL support to PgTyped, it is also on the project [roadmap](https://github.com/adelsz/pgtyped/blob/master/docs/roadmap.md). It might take some time until I get to that task, but...

I partially agree here, it will definitely take some effort to make a reusable adapter for different DBs. Building a new introspection and reflection backend will also be time consuming....

What would the type signature of such a query executor look like?