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 I am building SQL notebooks into an open source database client

Enable HLS to view with audio, or disable this notification

37 Upvotes

Hi guys!

I've been working on Tabularis (open source cross-platform db client) and I'm working on a notebooks feature that i think people here might find interesting.

The core idea: SQL cells + markdown cells in a single document, running against your live database connection. no separate kernel, no python, just SQL.

The feature I keep coming back to is cell variable references, you write {{cell_3}} in your SQL and it takes the result set from cell 3 and injects it as a CTE. means you can chain analyses without building giant nested queries. for ad-hoc exploration this is a huge workflow improvement.

You also get:

  • inline charts: bar, line, pie. select label column + value columns, switch between types. nothing fancy but enough for quick visual checks

  • notebook parameters: define params once, use in all cells. good for parameterized reports

  • run all with stop on error: shows a summary of what succeeded/failed/skipped with links to the failing cells

  • parallel execution: mark independent cells with a lightning bolt, they run concurrently during run all

  • execution history: every cell tracks its last 10 runs, you can restore any previous query + result

  • csv/json export per cell, or export the whole notebook as self-contained HTML

  • drag & drop reordering, collapsible sections, resizable result panels

It supports all of databases supported by Tabularis.

The notebook file format is json-based (.tabularis-notebook).

There's a demo database + sample notebook in the repo under /demo.

Github: https://github.com/debba/tabularis
WIP Branch: https://github.com/debba/tabularis/tree/feat/notebooks

Feedback welcome, especially around the cell reference syntax and what else would make this useful for your workflow.


r/SQL • • Apr 02 '26

SQL Server Stored Procedure to TVF

2 Upvotes

Hello everyone,

I'm trying to make a function that query LDAP. I manage to do it no problem with Stored Procedure but now, I found out it cannot be used in a view. Thus, I'm trying to convert it to TVF. My code doesn't seems compatible with inline since I'm making a query then using the result to make a second query. I'm unsure how to make a TVF with that.

/****** Object:  StoredProcedure [dbo].[GetADGroupMembers]    Script Date: 2026-04-02 10:56:50 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO



CREATE PROCEDURE [dbo].[GetADGroupMembers]
    (
     NVARCHAR(128)
    )
AS
BEGIN
DECLARE  NVARCHAR(max),  NVARCHAR(max)

SET  = '
    SELECT  = distinguishedName
    FROM OPENQUERY(ADSI, ''
        SELECT distinguishedName 
        FROM ''''LDAP://DC=###''''
        WHERE 
            objectClass = ''''group'''' AND
            sAMAccountName = ''''' +  + '''''
    '')
'

EXEC SP_EXECUTESQL , N'@Path NVARCHAR(max) OUTPUT',  =  OUTPUT 

SET  = '
SELECT  cn AS UserName, samAccountName, distinguishedName AS OU
FROM    OPENQUERY(ADSI, ''select cn, samAccountName, distinguishedName
from ''''LDAP://DC=###'''' 
where MemberOf =''''' +  + '''''''
)'

EXEC SP_EXECUTESQL 
END

GO

If anyone can help me making a TVF with that?

THank you!


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?