GithubHelp home page GithubHelp logo

janmotl / linkifier Goto Github PK

View Code? Open in Web Editor NEW
44.0 4.0 7.0 9.51 MB

Database reverse engineering

License: BSD 2-Clause "Simplified" License

Java 100.00%
database foreign-keys reverse-engineering er-diagram mysql postgresql mssql referential-integrity-constraint schema oracle

linkifier's People

Contributors

janmotl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

linkifier's Issues

SQLServerException: Non è possibile risolvere il conflitto tra le regole di confronto "SQL_Latin1_General_CP850_BIN2" e "Latin1_General_CI_AS" nell'operazione equal to.

Hi,
if sql server collation is "Latin1_General_CI_AS" but the database collation is different, for example "SQL_Latin1_General_CP850_BIN2" i get the exception:

Successfully connected to: MESMID.dbo @ Microsoft SQL Server 14.00.1000
Table count: 61
com.microsoft.sqlserver.jdbc.SQLServerException: Non è possibile risolvere il conflitto tra le regole di confronto "SQL_Latin1_General_CP850_BIN2" e "Latin1_General_CI_AS" nell'operazione equal to.
	at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:217)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1655)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:885)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:778)
	at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7505)
	at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2445)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:191)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:166)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeQuery(SQLServerStatement.java:677)
	at vendor.MSSQL.getColumnStatistics(MSSQL.java:194)
	at main.Schema.getPrimaryKeys(Schema.java:29)
	at example.Linkifier.estimatePk(Linkifier.java:45)
	at controller.Events$RunService$1.call(Events.java:274)
	at controller.Events$RunService$1.call(Events.java:257)
	at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at javafx.concurrent.Service.lambda$null$493(Service.java:725)
	at java.security.AccessController.doPrivileged(Native Method)
	at javafx.concurrent.Service.lambda$executeTask$494(Service.java:724)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

Something went wrong...
Linkifier version: 3.2.4
Please, send an email to the developer at [email protected]

Regards,
Filippo.

SQLServerException: Invalid column name 'Columns'.

Hi,
I'm connecting to:

Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64) Jun 28 2012 08:36:30 Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1) (Hypervisor)

Pressing Extimate I get:

Successfully connected to the database.
Table count: 62
com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name 'Columns'.
	at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:217)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1655)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:885)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:778)
	at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7505)
	at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2445)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:191)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:166)
	at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeQuery(SQLServerStatement.java:677)
	at vendor.MSSQL.getColumnStatistics(MSSQL.java:174)
	at main.Schema.getPrimaryKeys(Schema.java:29)
	at example.Linkifier.estimatePk(Linkifier.java:45)
	at controller.Events$RunService$1.call(Events.java:266)
	at controller.Events$RunService$1.call(Events.java:256)
	at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at javafx.concurrent.Service.lambda$null$493(Service.java:725)
	at java.security.AccessController.doPrivileged(Native Method)
	at javafx.concurrent.Service.lambda$executeTask$494(Service.java:724)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Something went wrong...

Regards,
Filippo.

CMD Tool

Hi janmotl,

This is an absolute good tool!
I'd appreciate if there is some support of command line mode.
Because I don't know too much about java, I try to use Python to call some class of this module, but it failed.
Do you any plan about that?

Best regards,
Ziyang

several errors

The java class "example.Linkifier" is missing from github project

Testing with a mssql server (docker mssql https://github.com/Microsoft/mssql-docker | https://hub.docker.com/r/microsoft/mssql-server-linux/ )
got something like this

Successfully connected to the database.
Table count: 443
Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation.
Something went wrong...

Contact the developer at **** => the printed email is not working

Cannot handle large tables (more than 2 billion rows)

It appears that the number of rows stored by linkifier is an Integer. This seems to cause an issue for large tables:

com.mysql.jdbc.exceptions.jdbc4.MySQLDataException: '4.0053988E9' in column '2' is outside valid range for the datatype INTEGER.
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
	at com.mysql.jdbc.Util.getInstance(Util.java:408)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:897)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:886)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860)
	at com.mysql.jdbc.ResultSetImpl.throwRangeException(ResultSetImpl.java:7058)
	at com.mysql.jdbc.ResultSetImpl.parseIntAsDouble(ResultSetImpl.java:6336)
	at com.mysql.jdbc.ResultSetImpl.getInt(ResultSetImpl.java:2506)
	at vendor.MySQL.useTables(MySQL.java:75)
	at vendor.MySQL.getTableStatistics(MySQL.java:47)
	at main.Schema.getPrimaryKeys(Schema.java:28)
	at example.Linkifier.estimatePk(Linkifier.java:45)
	at controller.Events$RunService$1.call(Events.java:236)
	at controller.Events$RunService$1.call(Events.java:226)
	at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at javafx.concurrent.Service.lambda$null$492(Service.java:725)
	at java.security.AccessController.doPrivileged(Native Method)
	at javafx.concurrent.Service.lambda$executeTask$493(Service.java:724)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Cannot run .jar file

Even though I meet all the dependencies, I cannot seem to run your .jar file. I also tried with the source code itself but to no avail. I seem to get a "Could not find or load main class controller.MainApp". I am very interested in your project, could you help me?

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.