Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of sql realtions in plugin execution #3871

Open
Yaroher2442 opened this issue Mar 5, 2025 · 0 comments
Open

Support of sql realtions in plugin execution #3871

Yaroher2442 opened this issue Mar 5, 2025 · 0 comments
Labels
📚 postgresql enhancement New feature or request

Comments

@Yaroher2442
Copy link

What do you want to change?

I try to write plugin wich generate some ORM-like helpers.
My code need to know about table primary keys (normal and composite) and tables relations.
In my case, knowledge of the relations and PKs is needed when calling the plugin.

I can offer 2 strategies:

  1. Add values ​​from sql constraint to the information for (proto) plugin.
    For example "NOT NULL REFERENCES (id)".
    then the plugin itself is responsible for parsing the relations.

  2. Get relations from your lexer and pass them separately to proto

What database engines need to be changed?

PostgreSQL

What programming language backends need to be changed?

Go

@Yaroher2442 Yaroher2442 added the enhancement New feature or request label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📚 postgresql enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant