Following #697, I think that this kind of problems (a need for pqb internal types for those who are using orchid-orm) will appear again and again.
As I see it, we should target these goals:
- Avoid polluting
orchid-orm with everything that pqb exports.
- Ensure user apps depend on either
pqb or orchid-orm, but not on both, since orchid-orm depends on a very specific version of pqb, and having both dependencies in a project is a footgun that will lead to version mismatches.
I think the better approach to this would be:
pqb exports everything, like before;
pqb/internal is removed;
orchid-orm re-exports the curated set of "public" types and functions from pqb (i.e. what pqb currently exports);
orchid-orm/pqb (or orchid-orm/query-builder) re-exports the entire pqb.
Following #697, I think that this kind of problems (a need for
pqbinternal types for those who are usingorchid-orm) will appear again and again.As I see it, we should target these goals:
orchid-ormwith everything thatpqbexports.pqbororchid-orm, but not on both, sinceorchid-ormdepends on a very specific version ofpqb, and having both dependencies in a project is a footgun that will lead to version mismatches.I think the better approach to this would be:
pqbexports everything, like before;pqb/internalis removed;orchid-ormre-exports the curated set of "public" types and functions frompqb(i.e. whatpqbcurrently exports);orchid-orm/pqb(ororchid-orm/query-builder) re-exports the entirepqb.