Mayil-AI-Sandbox / kuzudb_jan15

MIT License
0 stars 0 forks source link

[Feature request] `ALTER REL TABLE GROUP`: Add `FROM ... TO ...` statement (hashtag2922) #2

Open vikramsubramanian opened 4 months ago

vikramsubramanian commented 4 months ago

It would be nice, if we could add additional node table pairs via FROM ... TO after creation of a REL TABLE GROUP relationship table. For example you need to alter database schema in the course of app progress. Or imagine an app, that allows structured, user-generated content via some kind of plugin system. This requires users to create additional tables. These tables might need to have relations to other tables. Some of these relations might have been instantiated via REL TABLE GROUP. Vice versa, same goes for DROP. Currently there is no ALTER in combination with manipulation of FROM ... TO afterwards. At least I couldn't find it in below resources:

)

mayil-ai[bot] commented 4 months ago

We're not sure how to solve this one.

but here are some ideas that might help you get started -

Summary: Feature request to add the ability to alter REL TABLE GROUP with FROM ... TO ... statement for adding additional node table pairs after the creation of the relationship table.

Possible Solution

To implement the feature request for ALTER REL TABLE GROUP with FROM ... TO ... statement to alter database schema, follow these steps:

Remember to follow the existing codebase's style and architecture when implementing these changes.

Code snippets to check