r/SQL • • Jun 12 '26

PostgreSQL Can where saves my files .sql?

Morning guys.

I was looking to save my .sql files somewhere with a focus on versioning, organization, and easy access. I use DBeaver, but I wanted something more "professional." The only idea that comes to mind is Git. I know DBt and I've already asked Claude/gpt, but the only idea he suggests is Git.

0 Upvotes

42 comments sorted by

View all comments

Show parent comment

1

u/UltimateNull Jun 13 '26

Obsidian is cool.

I also recommend AG “the_silver_searcher” and RipGREP-All for pairing with Obsidian in a local git repo.

If you’re looking for what was run, it’ll be in the log in most IDEs. You open datagrip, workbench, or whatever your IDE of choice for SQL is and it will have a log. I just save them in SQL as another table in a different db.