Sublime Forum

Psql plugin?

#1

Hi, I love ST and i was wondering if its possible to write plugin work with a db server to execute queries. In my case i’m using postgres, which lacks any decent clients and i’m hoping i could leverage ST to accomplish what i’m looking for. If anyone can tell me to what extent this is possible, would be great if i could create a plugin for this, and being able to manage different connections.

0 Likes

#2

Yes I believe it’s possible. I had hoped to work on one. For now I’m spending most of my time in SQL Server so I made it so sqlcmd, Microsoft’s weak attempt and a command line sql client can have sql sent to it from sublime. See my github repo at github.com/wuub/SublimeREPL/pull/153.

The same idea can be applied to psql. I make use of the existing SublimeREPL and added a sqlcmd SublimeREPL. I might get around to a psql one, but I wouldn’t hold my breath unless I run into some Postgre work that would push me to get it done.

Good luck
Bob

0 Likes