News for hackers. Stuff that matters.
Re:Jailer, a unique open-source database tool by igammarays on Tuesday August 08, 2023 @06:58AM (#37047154)
The browsing-through-relationships features looks very, very, cool. One-click "see related rows" would save me a ton of time every day, as I use TablePlus, where I often find myself manually copying foreign keys as I switch between related tables. Anyone know of any other apps that do this, as this is Windows only?
Re:Jailer, a unique open-source database tool by dotdi on Tuesday August 08, 2023 @07:02AM (#37047176)
This has a Linux build too. The releases contain a .deb file.
Re:Jailer, a unique open-source database tool by jailertool2 on Tuesday August 08, 2023 @07:05AM (#37047192)
I'm glad you like it. It is not only available for Windows, but also for macOS/linux and others. (It is a Java application)
Re:Jailer, a unique open-source database tool by SOLAR_FIELDS on Tuesday August 08, 2023 @09:13AM (#37048483)
Is this supposed to be a generic drop in replacement for cross platform admin tools like Dbgate or Dbeaver? Or is it more of a specialized tool to do a specific thing?
Re:Jailer, a unique open-source database tool by pbowyer on Tuesday August 08, 2023 @10:31AM (#37049549)
Not being familiar with Java apps, can any reader tell me the best way to run this on macOS? From the CLI?
Re:Jailer, a unique open-source database tool by mmsimanga on Tuesday August 08, 2023 @09:20AM (#37048564)
+1. I work with data from different applications dumped into one database. Analytics. Often you cannot enforce foreign key relations and you need to define these relationships. Jailer allows you to define these relationships and then you can explore the data by following you defined relationships. This is so useful when working in analytics. I have never actually used jailer to subset but to explore data and to demo data to users. You can quickly find a piece of data by filtering on the field and then retrieve related rows in other tables. This is way faster than writing the SQL out.

Thank you to the author(s). Great underated tool that takes a bit of effort to understand.

Re:Jailer, a unique open-source database tool by treyfitty on Tuesday August 08, 2023 @07:13AM (#37047248)
Looking Beyond the shitty title that doesn’t tell you why it’s “unique” until you click the link (and it is not unique anyway), I can’t imagine this tool will provide consistent value for a user. Sure, every now and then, you’ll want to trace back relationships strictly defined by a user at some point… but what meaningful business use cases are there?
Re:Jailer, a unique open-source database tool by viraptor on Tuesday August 08, 2023 @07:34AM (#37047404)
The use cases are right there in the first section. You're being a dick to the authors just because you don't understand why this is useful. Please take a moment and chill.
Re:Jailer, a unique open-source database tool by jailertool2 on Tuesday August 08, 2023 @07:33AM (#37047393)
Moreover, it is not just a "tool", but "tools". In addition to the data browser that you are talking about here, there is also the "subsetter" (for extracting consistent subsets of a database). And for sure this tool is unique.
Re:Jailer, a unique open-source database tool by jailertool2 on Tuesday August 08, 2023 @07:20AM (#37047299)
The tool is aimed more at developers/quality assurance specialists. So people who have a more technical view of the data. It is therefore not much about business cases.

Furthermore, the relationships do not have to be defined manually either. Rather, they are automatically recognized based on the database metadata. (However, manual entry is also possible).

Re:Jailer, a unique open-source database tool by igammarays on Tuesday August 08, 2023 @07:34AM (#37047405)
Any support for remote server connections via SSH? My RDBMS instance is not exposed publicly, and is only accessible over SSH.
Re:Jailer, a unique open-source database tool by wcerfgba on Tuesday August 08, 2023 @07:41AM (#37047467)
Can you do SSH tunneling? That would be transparent to any other tooling.
Re:Jailer, a unique open-source database tool by jailertool2 on Tuesday August 08, 2023 @07:40AM (#37047456)
If you have any problems with this tool, you can contact the developers. Either here (preferred): https://github.com/Wisser/Jailer/issues

or here (no registration necessary): https://sourceforge.net/p/jailer/_list/tickets

Re:Jailer, a unique open-source database tool by the-alchemist on Tuesday August 08, 2023 @09:30AM (#37048686)
as wcerfgba pointed out, SSH tunnel is the way to go.
Re:Jailer, a unique open-source database tool by alflervag on Tuesday August 08, 2023 @11:09AM (#37050157)
Jailer works well with ssh port forwarding.
Re:Jailer, a unique open-source database tool by hiatus on Tuesday August 08, 2023 @07:37AM (#37047439)
This was posted just yesterday by a user "jailertool". Did you make a new username just to repost?

https://news.ycombinator.com/item?id=37032304

Re:Jailer, a unique open-source database tool by babayega2 on Tuesday August 08, 2023 @07:49AM (#37047526)
It took them time. I had asked the same problem few months ago [0]. I needed a tool to subset a huge PostgreSQL db. The choices where Condenser [1] and this Jailer. Since I'm not a Java guy, I was struggling to know how to properly run this Jailer. I'm glad they released a .deb format. But I ended up using Condenser.

[0]: https://news.ycombinator.com/item?id=35975606 [1]: https://github.com/TonicAI/condenser

Re:Jailer, a unique open-source database tool by jailertool2 on Tuesday August 08, 2023 @07:58AM (#37047620)
May I ask why you decided to use a condenser?
Re:Jailer, a unique open-source database tool by exceptione on Tuesday August 08, 2023 @08:57AM (#37048322)
Java is a huge plus over Python for me, namely type checking and ease of deployment.

I don't know either jailer or condenser, but I know that jailer@java has an unreasonable better change to have less bugs then condenser@python. Like you already noticed, condenser produces errors during run time.

Re:Jailer, a unique open-source database tool by mmsimanga on Tuesday August 08, 2023 @09:13AM (#37048484)
I just took a quick look at condenser application you linked. Only supports Postgresql and MySQL. This is often the case with none Java tools. They tend to support a select few number of databases. With tools that support JDBC you will be able to connect to most databases. That is often my challenge as someone who works in BI.
Re:Jailer, a unique open-source database tool by gregwebs on Tuesday August 08, 2023 @08:07AM (#37047728)
Replibyte also does this and supports anonymization: https://www.replibyte.com/docs/introduction

You might want to combine a subsetting tool with an anonymizing tool like this one:

https://datanymizer.github.io/docs/

Re:Jailer, a unique open-source database tool by jailertool2 on Tuesday August 08, 2023 @08:30AM (#37047974)
"Replibyte" is a toy. This thing operates seriously on database dumps - a text file full of "insert" statements (what DBMS often generates like this, but no guarantee)
Re:Jailer, a unique open-source database tool by exceptione on Tuesday August 08, 2023 @09:03AM (#37048387)
Do you mean it is a toy because it only works on database dumps or..? I can imagine that querying, filtering and traversing relations will be harder with only a textual dump.
Re:Jailer, a unique open-source database tool by jailertool2 on Tuesday August 08, 2023 @09:20AM (#37048566)
It operates on database dumps. That alone is absurd. Database dumps are not public interfaces. And they are really not suitable for mass data processing.

You have a DBMS available, but all you ask from it is a dump of all data in a format that can only be used as an archive or transfer format. And yet you think you can process this data reasonably?

Re:Jailer, a unique open-source database tool by exceptione on Tuesday August 08, 2023 @09:32AM (#37048724)
> would you expect to be congratulated on your unusually high IQ?

I guess your "you" is not directed at me, as I basically wondered the same.

Replibyte seems like to use a highly unpractical way as I explained, but I meant to ask wether you only found the implementation to be bad, or that you also found it lacking in other terms.

Re:Jailer, a unique open-source database tool by giancarlostoro on Tuesday August 08, 2023 @09:00AM (#37048358)
For those wondering: Seems to be coded in Java and supports a decent number of SQL databases:

PostgreSQL

Oracle

MySQL

MariaDB

Mirosoft SQL Server

IBM Db2

SQLite

Sybase

Amazon Redshift

Firebird

Informix Dynamic Server

H2

Exasol

My only "negative feedback" since I dont have time to test it out so far is the name of the tool. Jailer does not imply database management to me. When I think of jailer I think of containers, I guess databases can be seen as container types.

Personally I have a JetBrains license so I usually just opt to use DataGrip (Which I have some minor gripes against) most of the time. Although a lot of the time I use HeidiSQL for MySQL / MariaDB since I got too used to it.

I will have to see if I have time to try this tool next.

Re:Jailer, a unique open-source database tool by systems on Tuesday August 08, 2023 @04:26PM (#37055026)
you should check azure data studio, they have a plugin for few databases other then ms sql server

  * Postgresql
  * MySQL
  * Oracle
And maybe more
Re:Jailer, a unique open-source database tool by alflervag on Tuesday August 08, 2023 @11:05AM (#37050073)
We’ve used this tool to subset a decent sized database (~1500 tables, mostly 5th normal form) with success. The UI is pretty good for exploring the database and getting a configuration up and running.

The resulting configuration is in plain text which makes it very easy to commit to source control and even batch edit.

Extracting data can be done on the command line without running the UI and is thus well suited for pipelines.

We had a few questions and the author was very friendly and helped us understand how to solve our issues.

Big +1 from me.