In the past, the only way to access or modify a database was through the command line, which was not only not intuitive, but also prone to errors that could lead to major problems. So people began to develop tools with a graphical user interface (GUI), and that became what we now know as SQL clients, which are basically front-end applications for database services. In this post, we are taking a look at some open source SQL clients options for you to try.
SQL Chat
SQL Chat is a young player (released in March, 2023), prompting SQL clients from the traditional GUI-based to the Chat-based stage: it's powered by ChatGPT to write and polish SQL for you. Databases supported now include MySQL, PostgreSQL and MSSQL. You can access it directly via sqlchat.ai or deploy it via Docker.
SQL Chat launched on Product Hunt mid April, and it gained lots of attention that there's a limit to the free service.
DBeaver
DBeaver is a veteran SQL client. In addition to basic visualization and management capabilities, it has a SQL editor, data and schema migration capabilities, monitor database connections, and more. It supports a full range of databases (both SQL and NoSQL). DBeaver is also hooked up with GPT-3, which converts your natural language to SQL.
It's worth noting that DBeaver just announced a $6M seed round two weeks ago (the press release also mentions that DBeaver has over 8M users and 5,000+ paying subscribers), and the first since the author built it in 2013.
Beekeeper Studio
Beekeeper Studio is a modern (aesthetic) and lightweight SQL client that supports MySQL, Postgres, SQLite, SQL Server, etc. It is available on Linux, Mac and Windows.
The author of Beekeeper Studio is an independent developer who started building this tool in 2019 because he couldn't find an easy-to-use cross-platform SQL client. After almost a year of hardwork, the first version was released in early 2020.
DbGate
DbGate works in Windows, Linux, Mac, and your web browsers without compromises in functionality. Both SQL and noSQL databases are supported, from MySQL, PostgreSQL, SQL Server, MongoDB, SQLite, to CockroachDB.
The author of DbGate says this was his passion project because he couldn't find a SQL client for Linux. He had built SQL clients for Windows in the past, so this was influenced by his own work experience.
Sqlectron
Sqlectron is lightweight SQL client with simplicity in mind. It has cross-database (PostgreSQL, Redshift, MySQL, MariaDB, SQL Server, Cassandra, SQLite) and platform (Mac, Linux, Windows) support.
Similar to the story of the two aforementioned tools, the original authors of Sqlectron built this because he couldn't find a tool on the market that worked well and solved his pain points (a simple, lightweight SQL client desktop with cross-database and platform support), but 2018 he mentioned that he hadn't used SQL databases since changing jobs, and opened a GitHub Issue looking for a successor. It seems someone (semi-)took it over, with the most recent release last May.
HeidiSQL
HeidiSQL is also a lightweight SQL client that supports a long list of databases including MariaDB, MySQL, MS SQL, PostgreSQL, SQLite, Interbase and Firebird. In addition to basic SQL client functionalities, users can export structures and data to SQL files or copy them to the clipboard or other servers.
The codebase for HeidiSQL originally came from the author's own MySQL-Front 2.5 software, but he later sold the MySQL-Front brand and the author renamed his project HeidiSQL and has maintained it to this day.
phpMyAdmin
phpMyAdmin was born in 1998, written in PHP, and is a classic SQL client. It was the default tool for LAMP and MAMP at that time. phpMyAdmin has grown to become one of the leading tools for managing MySQL and MySQL-like databases (e.g. MariaDB) It has over 200,000 direct downloads per month (and countless other users install it using prepackaged installations or using package managers).
pgAdmin 4
pgAdmin to PostgreSQL is what phpMyAdmin is to MySQL, and it can be used on Linux, Unix, macOS and Windows to manage PostgreSQL. pgAdmin 4, the latest pgAdmin, is a complete rewrite of pgAdmin using Python and Javascript/jQuery.
After taking a look at the history of pgAdmin, apparently the author came up with pgAdmin from scratch because the only option for managing PostgreSQL at that time (late 90s) was not working very well on Windows, which has since gone through many iterations.
To summarize
We briefly looked at the history of a handful of SQL Clients to understand some of the more famous open source solutions, rather than comparing the product or their functions (I mean, after 20 years of refinement those vetran SQL clients can't be too bad, right?) . It seems that most of the authors began building because they were unable to find a product that fit their needs perfectly, but the story afterwards is very different: some tools were then commercialized, some continued on with a strong community, and some gradually faded out due to a change of focus.
And we wonder, with the popularity of ChatGPT, will there be more open source SQL clients like SQL Chat based on Chat interaction?
Beyond using the general SQL Client to interact with the databases, developers and DBAs also adopt a dedicated tool to compare and synchronize database schemas, go check out those tools.
And if you want an all-in-one tool to provide not only general SQL Client features, but also management capabilities such as change approval workflow, data access control, you can check out our open source project Bytebase.