What's the current support for SQL scripts?
Reviewing the documentation and source code, it appears there is none.
- Are there any known workarounds?
- Any plans to implement this kind of support?
Something like:
SET TERM ^^ ;
CREATE OR ALTER PROCEDURE STP_ONE...
AS
BEGIN
END
^^
CREATE PROCEDURE STP_TWO...
AS
BEGIN
END
^^
Or, even better
CREATE OR ALTER PROCEDURE STP_ONE...
AS
BEGIN
END;
CREATE PROCEDURE STP_TWO...
AS
BEGIN
END;
I've never been a fan of SET TERM. And most SQL databases get by just fine without it.
Any parser could easily track BEGIN/END pairs and distinguish between semicolons inside the block and the ones that terminate the CREATE PROCEDURE command.
Happy to put together a PR if you're interested.
What's the current support for SQL scripts?
Reviewing the documentation and source code, it appears there is none.
Something like:
Or, even better
I've never been a fan of
SET TERM. And most SQL databases get by just fine without it.Any parser could easily track
BEGIN/ENDpairs and distinguish between semicolons inside the block and the ones that terminate theCREATE PROCEDUREcommand.Happy to put together a PR if you're interested.