GithubHelp home page GithubHelp logo

Comments (8)

Wisser avatar Wisser commented on August 23, 2024

Hi,

I also think that would be a good feature. Thanks for the suggestion.

However, at least the selection of the data model can already be skipped by selecting a connection in the initial dialog in the "Connection" tab. The data model associated with this connection is then automatically selected.
Similarly, an export model can be selected in the "Extraction Model" tab. The associated data model is then used.

from jailer.

jcaillon avatar jcaillon commented on August 23, 2024

Thank you for your answer, that's great to hear.

Even if you can simply select the connection and do not have to pick the correct data model from the dialog, you still need to manually input the connection settings.

In the use case I was thinking of, you would be able to configure several shortcuts that could instantly get you started in the databrowser/jailer with the right datamodel and the right connection. With no extra configuration needed at all.

To further explain my use case: I have an application with a database for which I have generated a data model. People working on this database install jailer locally in the same path (e.g. c:\jailer). On a shared drive, I put the datamodel for the database. I also create shortcuts that allow everyone to immediately connect to the dev/test/production databases through the databrowser. This way they never have to manually input the connection details and I can easily update those (and the datamodel) for everyone.

Best regards

from jailer.

Wisser avatar Wisser commented on August 23, 2024

Thank you for the explanation. This is indeed a feature that would be useful to many users.
Btw, the connection information is saved in a file called ".connections". When you distribute this file, not every user needs to type in the connection details.

from jailer.

jcaillon avatar jcaillon commented on August 23, 2024

I was aware of the .connections file but it is not really handy to update it for everyone (as it is stored either in the jailer directory or the user directory with .multiusers if i'm correct).

It is also stored in binary format which requires it to be modified through the graphical interface.

It could be a fallback option however.

from jailer.

jcaillon avatar jcaillon commented on August 23, 2024

Hello @Wisser :)

Thank you very much for the implementation! I just tried it (v8.8.5) and found 2 issues:


1. data browser -schemamapping is not working

I'm trying the following:

jailerDataBrowser.bat -datamodel "C:\omega" -jdbcjar "C:\db2jcc4.jar" -driver com.ibm.db2.jcc.DB2Driver -url jdbc:db2://****:50000/OMB30ZD -user **** -password **** -schemamapping REFSCHEMA:EXISTINGSCHEMA
  • The connection to the database is OK
  • My data model a schema named REFSCHEMA (e.g. in table.csv i have REFSCHEMA.tablename)

If I try to open a table, the select fails because it is still trying to select from REFSCHEMA instead of EXISTINGSCHEMA.

If I change the schema name in all the data model files, it works as expected.


2. jailerGUI does not use the -datamodel correctly

I'm trying the following:

jailerGUI.bat "C:\omega\equipement.jm" -datamodel "C:\omega" -jdbcjar "C:\db2jcc4.jar" -driver com.ibm.db2.jcc.DB2Driver -url jdbc:db2://****:50000/OMB30ZD -user **** -password ****

Jailer does not start, I have the following exception:

java.lang.RuntimeException: Data model not found: file:/C:/jailer/omega/table.csv
	at net.sf.jailer.datamodel.DataModel.<init>(DataModel.java:392)
	at net.sf.jailer.datamodel.DataModel.<init>(DataModel.java:324)
	at net.sf.jailer.extractionmodel.ExtractionModel.<init>(ExtractionModel.java:200)
	at net.sf.jailer.extractionmodel.ExtractionModel.<init>(ExtractionModel.java:183)
	at net.sf.jailer.ui.ExtractionModelEditor.<init>(ExtractionModelEditor.java:270)
	at net.sf.jailer.ui.ExtractionModelFrame.<init>(ExtractionModelFrame.java:196)
	at net.sf.jailer.ui.ExtractionModelFrame.createFrame(ExtractionModelFrame.java:2105)
	at net.sf.jailer.ui.ExtractionModelFrame.createFrame(ExtractionModelFrame.java:2139)
	at net.sf.jailer.ui.ExtractionModelFrame$69.run(ExtractionModelFrame.java:2071)

It still checks if a datamodel "omega" exists, which is referenced in my extraction model (#! block datamodelfolder).


Tell me if I can help you to test it again.

best regards

from jailer.

Wisser avatar Wisser commented on August 23, 2024

Hi @jcaillon

1. data browser -schemamapping is not working

the syntax for the mapping is: "REFSCHEMA=EXISTINGSCHEMA,...".
There is a new tool in the menu "Tools" -> "Show Command Line", which should help to create a command line.

2. jailerGUI does not use the -datamodel correctly

That is indeed an error. If you like, feel free to test the correction. To do this, please replace the file "jailer.jar" with that from the zip archive in the attachment, or build the project from the repo.
jailer.zip

from jailer.

jcaillon avatar jcaillon commented on August 23, 2024

1. data browser -schemamapping is not working

-> totally my bad! Whoops. It works well with the right parameter.

2. jailerGUI does not use the -datamodel correctly

-> The correction works perfectly!

Thank you very much @Wisser 👍

from jailer.

Wisser avatar Wisser commented on August 23, 2024

The feature has been released with version 8.8.6.

from jailer.

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.