Comments (8)
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.
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.
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.
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.
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.
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.
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.
The feature has been released with version 8.8.6.
from jailer.
Related Issues (20)
- liquibase.exception.MigrationFailedException when importing generated XML files with dates HOT 6
- Ignore generated columns when export data HOT 12
- redmine mysql
- Error when using API with Java 17 HOT 1
- Data anonymization HOT 2
- Analyzing a Postgres DB with lots of partitioned tables creates seperate tables for each partition HOT 3
- ClickHouse database support HOT 3
- Exporting SQL including creation of DB schema HOT 7
- SQL statement detection incorrect while contain blank lines HOT 2
- Liquibase exception: Invalid string encoding on column.remarks. HOT 12
- The route for the custom installation is absent. HOT 1
- Saving the model files should be sorted HOT 2
- Missing parantheses causes problems with HSTOREs containing newlines HOT 3
- Subsetting SQL script generation fails with '"Connection reset" in statement "Insert into JAILER_ENTITY...' after having been running for 10s of hours HOT 1
- OSX Unable to connect to SSMS HOT 1
- Laggy SQL Console. HOT 5
- Liquibase export of Oracle RAW-columns fails HOT 2
- HTML Renderer - Fetch Database Comments HOT 2
- Some panels cannot display non ASCII characters correctly HOT 2
- PSQLException: SSL error: Received fatal alert: handshake_failure HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jailer.