Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitSQLStatements ¶
func SplitSQLStatements(r io.ReadSeeker, direction bool) ([]string, error)
Split the given sql script into individual statements.
The base case is to simply split on semicolons, as these naturally terminate a statement.
However, more complex cases like pl/pgsql can have semicolons within a statement. For these cases, we provide the explicit annotations 'StatementBegin' and 'StatementEnd' to allow the script to tell us to ignore semicolons.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.