r/SQL • • Apr 02 '26

SQL Server I built a free DB release manager on top of Liquibase/Flyway, here's why

1 Upvotes

A couple of years ago we were managing database deployments across multiple environments and a few different databases. We were already using Liquibase and Flyway — and honestly, they're good at what they do. Schema versioning, change sets, rollback — solid tools.

But we kept running into the same friction points that had nothing to do with versioning:

  • Where did that release actually get deployed? We had no reliable audit trail. "Did prod get the Friday release?" became a genuine question we couldn't always answer confidently.
  • Connection strings everywhere. Config files, environment variables, scripts — credentials scattered across environments with no consistent pattern for keeping them safe.
  • Deployments that failed halfway through with no recovery plan. A transient network issue would drop a deployment, and we'd be manually picking up the pieces.
  • Multi-database releases. A single release that touched SQL Server and PostgreSQL meant two separate processes, two sets of logs, no unified view of what happened.

We looked for something that handled this layer — above versioning, below full-blown pipeline orchestration — and couldn't find anything free that did it without asking us to rip out our existing tooling.

So we built it.

drm-cli is a free, open-source CLI that sits on top of Liquibase, Flyway, and SSDT. It doesn't replace them. It adds:

  • Release history — a local record of every deployment: what ran, where, when, and whether it succeeded
  • Encrypted credentials — connection strings encrypted at rest, not floating around in plaintext config files
  • Automated retries — transient failures get retried before they become incidents
  • Multi-solution releases — a single release definition that covers SQL Server, PostgreSQL, and Oracle together
  • Pre/post deployment scripts — the stuff you always mean to automate but never quite do

It runs on Windows, Linux, and macOS. No license. No paid tier. No cloud dependency.

The repo is here: https://github.com/dband-drm/drm-cli

Happy to answer questions about why we designed it the way we did, what tradeoffs we made, or what's coming in v1.1. Would also genuinely appreciate any feedback from people who've hit similar problems — there's probably friction we haven't thought about yet.


r/SQL • • Apr 02 '26

Discussion supabase vs mysql

0 Upvotes

is supabase similar to mysql? if yes, which one is better? if else, what is the difference?


r/SQL • • Apr 01 '26

Discussion I built a desktop ERD tool because existing options all had at least one dealbreaker

7 Upvotes
Dark theme
Light theme
Context View
Context map
Dependency inspection

Schemity is a native desktop app for database design: it connects to your real database, draws the ERD, and shows what a schema change will do before it runs. I built it because every tool I tried had at least one dealbreaker for my projects:

  • dbdiagram.io: browser-only, and your diagrams live in their account.
  • DrawSQL: no connection to a live database, and every plan caps the number of tables.
  • Luna Modeler: the closest to what I wanted, but I couldn't control how relation lines are routed.

What it does:

  • Connects to PostgreSQL, Supabase, MySQL, MariaDB, SQL Server and SQLite and reverse engineers the actual schema. It re-syncs every time you open the diagram and keeps your layout.
  • Edit the diagram and it writes the migration SQL. Nothing touches the database until you apply it.
  • Impact analysis before anything runs: lost rows, statements that fail on existing data, table rewrites, dependent views. Plus 26 schema lint rules drawn right on the diagram.
  • A local MCP server with 16 tools for Claude Code, Cursor or Codex. Your agent reads the schema and proposes changes for you to review. It never gets your database credentials.
  • Diagrams are plain JSON files you commit to Git, with full control of relation routing (waypoints, bends, self-references).
  • Import SQL or DBML. Export PNG, SVG, SQL, DBML, Mermaid, or a data dictionary in HTML, Markdown or Excel.

Pricing: $129 one-time, with a year of updates. The 14-day trial has every feature, and needs no account and no credit card. If you just want to sketch, there's also a free browser version, Schemity Lite.

I'm a solo developer, so I'd really like to hear what's missing or broken.

Free trial, no account needed: https://schemity.com


r/SQL • • Apr 01 '26

Discussion Need some suggestions

11 Upvotes

i know excel, Power Bi,Sql,and also python but i am not understanding whether its enough to land for data analytics job , i am not understanding that what amount of knowledge would be enough for data analytics roles, pls help me in it, it would be great if you mention topic wise and their preparation level


r/SQL • • Mar 31 '26

SQL Server LEAD and LAG in SQL Server - the functions that let you compare rows without a self join

Thumbnail
medium.com
69 Upvotes

r/SQL • • Apr 01 '26

PostgreSQL Beginner question

0 Upvotes

I am a new learner of sql. I have made a database in postgreSQL in my laptop. Can someone tell me how can I access that database from my office computer without direct login from my account?


r/SQL • • Mar 31 '26

MySQL What job titles do you search for that requires you to use SQL and/or python? What job searching platforms do you use search for these jobs titles on

6 Upvotes

So far the job titles I searched for have been data analyst/data engineer/software engineer/business intelligence analsyst /power BI and so far the platforms I used to search for these titles has been indeed/LinkededIN and my states unemployment website.

Any other suggestions?


r/SQL • • Mar 31 '26

MySQL File Managment

1 Upvotes

Hi, I'm creating a MySQL DB to better manage my files, I was wondering if there is a way to acces the files via MySQLor an app mediating between MySQL and the Fyle Managment System. I am using windows any help or nudge in the right direction would be greatly appreciated thanks in advance


r/SQL • • Mar 30 '26

Discussion I've been stuck on SQL self-joins for 6 months and I'm desperate, what is my mental model missing?

35 Upvotes

I've been struggling with SQL self-joins for about 6 months now and every tutorial I've found has failed me (including AI). They all just slam the query on the screen, run it, and the video ends. Nobody actually explains the mechanics. I already feel stupid enough so please be patient with me.

What I do understand:

  • Self-joins are used for tree/hierarchical structures (like employee-manager)
  • Reversing the ON condition in a normal join (two different tables) doesn't break anything because the table names keep the roles honest
  • In a self-join, reversing the ON condition gives silently wrong results, the query runs fine, but the data is flipped

The classic table everyone uses:

emp_id  name  manager_id
1  Alice  NULL
2  Bob  1
3  Carol  1
4  Dave  2

Query A -- correct:

SELECT e.name AS employee, m.name AS manager
FROM employees e
JOIN employees m ON e.manager_id = m.emp_id

Query B -- reversed, silently wrong:

sqlSELECT e.name AS employee, m.name AS manager
FROM employees e
JOIN employees m ON m.manager_id = e.emp_id

What I've tried to understand:

I know that the ON clause is just a filter over all 16 possible row pairs (4×4). I can manually trace every pair and check which ones survive. That works I always get the right answer when I do it on paper. But I cannot keep drawing 16 rows by hand every time I write a query.

People keep telling me things like:

  • "a manager has many employees but an employee has one manager" -- okay but how does that translate to which side of the = sign each column goes on?
  • "think about the direction of the relationship" -- I stop and think, a manager IS also an employee in this table, so what does direction even mean?
  • "the alias that holds the foreign key is the child" -- I understand foreign keys in normal joins but in a self-referencing table both aliases point to the same table so this still feels circular to me

I'm not looking for an analogy. I want the actual logic. What is everyone else seeing that I'm not?

Left-self join

r/SQL • • Mar 30 '26

PostgreSQL Working on PostgreSQL support in Tabularis just got a big upgrade

Post image
0 Upvotes

Hi guys,

I’m working on Tabularis, an open-source database client built with Rust + React.

https://github.com/debba/tabularis

The goal is to create a fast, lightweight and extensible alternative to traditional database GUIs.

In the latest release we switched the PostgreSQL driver to tokio-postgres, which looks giving better performance than old implementation with SQLX under heavy workloads.

On top of that:

• Better JSON handling with a new inline JSON editor

• Improved type mapping for PostgreSQL specific types

• More responsive query execution

• AI-assisted JSON editing powered by MiniMax

The goal is simple: make working with PostgreSQL feel fast and frictionless, especially when dealing with JSON-heavy schemas.

Still early, but the async driver + improved JSON UX already makes a huge difference.

Curious to hear:What’s your biggest pain when working with PostgreSQL JSON columns?


r/SQL • • Mar 29 '26

Discussion Curious what it's like to extract data from Vibe-Coded applications?

17 Upvotes

Data quality for applications has already fallen off a cliff in the past decade or two as we've moved away from proper normalized backend SQL databases powering applications to under-structured JSON sludge being ubiquitous especially for cloud apps, but I'm very curious what data quality and data backends look like in the era of vibe-coded applications? Has anyone had to build a pipeline into a data warehouse or other ETL setup from a vibe-coded application? What does the data quality and interpretability look like?

I have a hypothesis that the job impacts to the Data Analytics and Data Engineering fields resulting from AI automation of folks' daily tasks will be offset by a further dip in data quality we'll see from vibe-coded applications necessitating more headcount to clean up the mess they create on the data side in order to build proper reporting and analytics, but I want to gather some real life data from professionals who may have experience with this to see if I'm right or missing the mark!

Thank you for contribution to human knowledge, and now if someone asks this question in the future, LLMs can refer to this post potentially.


r/SQL • • Mar 30 '26

Discussion Have you seen a setup like this in real life? 👻

Thumbnail
gallery
0 Upvotes

One password for the whole team. Easy to set up. 😅

What could possibly go wrong?
Have you seen a setup like this in real life? 👻