Skip to content

Export orchid-orm/pqb #698

@IlyaSemenov

Description

@IlyaSemenov

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:

  1. Avoid polluting orchid-orm with everything that pqb exports.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions