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

Feature Request - support views, reference and virtual objects (PK, UK, FK, Index, reference) #42

Open
aisbergde opened this issue Feb 22, 2021 · 8 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@aisbergde
Copy link

This is a great tool - for tables. I am a mssql based dwh developer and most of my logic is in views or in the combination of views, tables and procedures. And because views have no real PK, UK, FK or index, my database objects have virtual index (can be also PK or UK) and they have virtual FK and also virtual references between entities and between columns. For example a table could be a persistence of a view then I have a virtual reference between this referencing table and the referenced source view. Or I use a parser to extract column references. It is also an open source project, but at the very beginning.

A big challenge is the graphical representation and even more the navigation involving these virtual elements and relations.

I like the idea of schema-explorer very much: the operation is simple and intuitive. Could features be added to schema-explorer?

  • Support for views
  • Support for virtual objects. Best if you could provide them in a form usable for schema-explorer in views or tables.
@timabell
Copy link
Owner

I'm not doing any further work on this tool now, but it's A-GPL licensed so you are free to make your own improvements as you wish and publish them under the same license.

@aisbergde
Copy link
Author

Maybe that would be a reason for me to learn Go :-)
Thank you for this intuitive to use tool!

@timabell
Copy link
Owner

You're welcome, I enjoyed building it.

@timabell timabell added the enhancement New feature or request label Jan 28, 2024
@timabell
Copy link
Owner

Looking back at this, I'm not sure what you mean by "virtual" here.

Could you be more specific and define what you mean by

  • virtual index
  • virtual objects
  • virtual FK
  • virtual references

I'm wondering if this is the same as #6 or if you are talking about some other concept like linked servers or mssql virtual tables.

@timabell timabell added the question Further information is requested label Jan 30, 2024
@aisbergde
Copy link
Author

aisbergde commented Jan 30, 2024

the request is related to #6
it is about keys, index and relation, which are not really defined in the database, but they exist only logically. They are used for example to explain and document relations. Or to document the logic in views, because it is not possible to create real PK or relations on views.

Finally, I developed an alternative database documentation generator. Here I explained in detail, what I mean:
https://datahandwerk.gitlab.io/dhw/user-guide/documentation-generator.html#_special_requirements_for_technical_database_documentation

@timabell
Copy link
Owner

timabell commented Jan 30, 2024

interesting. I wonder if extended attributes might be a place to keep this kind of thing that could then be source controlled and shown in a variety of documentation tools

Here's my source-control script for extended-attributes: https://gist.github.com/timabell/69c0bbb6cfcb2b0b93f7d49bb2f06396

And the ms_description one: https://gist.github.com/timabell/6fbd85431925b5724d2f

I see we have overlapping interests, that datahandwerk thing is interesting. Please do drop me a connection on the platform of your choice to chat more (linkedin/twitter/email/telegram etc etc)

I'm imagining a world where there's some standardised extended attributes that layer on the FKs that can't be made real

@aisbergde
Copy link
Author

https://datahandwerk.zulipchat.com/

would be a good platform to communicate. Telegram is also possible.

I even did a fork of your project at the beginning, but I am not experienced with Go

@timabell
Copy link
Owner

DataGrip has a feature a bit like this https://www.jetbrains.com/help/datagrip/virtual-foreign-keys.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants