Skip to content

Support for introspecting tables without an ID field #175

Closed

Description

@divyenduz

Introspecting discourse DB for example yields the following error:

image

Activity

  1. removed their assignment
    on Aug 1, 2019
  2. 6 remaining items

  3. pantharshit00 commented on Sep 19, 2019

    @pantharshit00
    Contributor

    I think we might need to introduce a new directive for this that can carry this information that user can add manually or we can derive via naming or we can prompt to select the join tables in the cli(that we can't infer)

    Join tables actually doesn't follow any particular conventions. For example, WordPress uses multiple column indexes for them while discourse just stores integers without any reference.

  4. matthewmueller commented on Sep 20, 2019

    @matthewmueller
    Contributor

    To set the stage a bit, for introspection we're trying to reconstruct a graph with arrows

    image

    In the best case the schema will tell us where to draw these arrows. This signal would probably be via references, but we can also use other heuristics like what you mentioned:

    1. Could the references ... be just assumed from the naming here?
    2. WordPress uses multiple column indexes
  5. removed
    bug/0-unknown
    bug/2-confirmed
    on Sep 27, 2019
  6. janpio commented on Sep 27, 2019

    @janpio
    Contributor

    This should be turned into a issue in prisma/specs which will suggest a change to an existing spec ("Introspection").

  7. added
    bug/0-unknown
    kind/bug
    and removed
    kind/feature
    on Dec 12, 2019
  8. divyenduz commented on Jan 9, 2020

    @divyenduz
    Author

    Closing this as I think this is already tracked in the new introspection.

  9. removed their assignment
    on Jan 28, 2020
  10. added a commit that references this issue on Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/0-unknownkind/bugtopic: old-introspection

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions