Giter Club home page Giter Club logo

Comments (10)

cheoAlejo avatar cheoAlejo commented on May 26, 2024 1

+1
Well, it could be optional, like passing an argument specifying the number of rows to show.

Example showing first 10 rows:

java -jar schemaspy.jar -rows 10

from schemaspy.

npetzall avatar npetzall commented on May 26, 2024 1

@lukeIam have a look at https://dbeaver.io/

from schemaspy.

danwatt avatar danwatt commented on May 26, 2024

It looks like someone submitted a patch to add this support to Schema Spy 5:

https://sourceforge.net/p/schemaspy/feature-requests/85/

from schemaspy.

anothermindbomb avatar anothermindbomb commented on May 26, 2024

This should be turned off by default and only enabled via a switch, and I'd argue that it shouldn't be added at all.

SchemaSpy is a product for creating entity relationship diagrams, and (possibly live) table contents have no place on an ERD.

If this is enabled, then the end user runs the risk of exposing production data to anyone who is able to view the ERD. For example, I don't want my business analysts to be able to see any live or production data anywhere other than within the database where their access can be controlled and limited.

from schemaspy.

npetzall avatar npetzall commented on May 26, 2024

I'm with other ones, it's default off since database might contain sensitive data.

from schemaspy.

danwatt avatar danwatt commented on May 26, 2024

This is probably a completely different request, but what if instead there was the ability to do some analysis on the values without revealing the data itself? Ex: how many nulls vs non-nulls are present in a column? What is the longest, shortest, and average length of a varchar, etc?

Something like what MYSQL does with ... PROCEDURE ANALYZE (or if you have ever used PhpMyAdmin, the Propose table structure button) https://dev.mysql.com/doc/refman/5.6/en/procedure-analyse.html

from schemaspy.

lukeIam avatar lukeIam commented on May 26, 2024

+1
Well, it could be optional, like passing an argument specifying the number of rows to show.

any update on this?

https://sourceforge.net/p/schemaspy/feature-requests/85/

seems to be a little bit outdated...

I had a short look to your code but it looks to complicated to implement the push of information through all the classes and templates for me (discovered schemaspy today).

from schemaspy.

npetzall avatar npetzall commented on May 26, 2024

@lukeIam the model and everything was never intended to include data from the database. I commented that it should be off, but if I'm honest I really don't want to include it. Since data and structures are different things.

from schemaspy.

lukeIam avatar lukeIam commented on May 26, 2024

@npetzall fair enough - I'm currently using schemaspy for exploring an unknown database and the column titles aren't the best, so I have to take a look at the data too.

from schemaspy.

alanreyesv avatar alanreyesv commented on May 26, 2024

@lukeIam the model and everything was never intended to include data from the database. I commented that it should be off, but if I'm honest I really don't want to include it. Since data and structures are different things.

It can be useful when using development database to generate the data dictionary to display example data.

Use cases are:

  • The type is string, but format is an ULID (01D78XYFJ1PRM1WPBCBT3VHMNV)
  • The type is a JSON, with a specific structure.
  • The type follows a sequence (incremental versions on a specific element).

from schemaspy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.