Skip to content

Support for SQL scripts? #50

@fdcastel

Description

@fdcastel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions