Skip to content

The Postgres and MySQL plugins should run *.sql files like a SQL client #245

@joakimbeng

Description

@joakimbeng

Currently the Postgres and MySQL plugins runs *.sql files using multi statement queries which is bad because it can't run database dumps containing DELIMITER statements, which dumps with stored procedures and similar contains.

To be able to run such migration files the different plugins needs to be able to split a query into statements based on ; and DELIMITER statements.

Splitting files into statements and running each statement in order also opens up possibilities to report progress per statement and affected rows and such. The plugins could also report exactly which statement that failed in case of an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions