You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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
The text was updated successfully, but these errors were encountered:
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:
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.
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
The text was updated successfully, but these errors were encountered: