()
| 29 | var LineSeparator = "" |
| 30 | |
| 31 | func errNoTerminator() error { |
| 32 | if len(LineSeparator) == 0 { |
| 33 | return fmt.Errorf(`ERROR: The last statement must be ended by a semicolon or '-- +migrate StatementEnd' marker. |
| 34 | See https://github.com/rubenv/sql-migrate for details.`) |
| 35 | } |
| 36 | |
| 37 | return fmt.Errorf(`ERROR: The last statement must be ended by a semicolon, a line whose contents are %q, or '-- +migrate StatementEnd' marker. |
| 38 | See https://github.com/rubenv/sql-migrate for details.`, LineSeparator) |
| 39 | } |
| 40 | |
| 41 | // Checks the line to see if the line has a statement-ending semicolon |
| 42 | // or if the line contains a double-dash comment. |
no outgoing calls
no test coverage detected
searching dependent graphs…