MCPcopy Index your code
hub / github.com/rubenv/sql-migrate / errNoTerminator

Function errNoTerminator

sqlparse/sqlparse.go:31–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29var LineSeparator = ""
30
31func 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.

Callers 1

ParseMigrationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…