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

Method HasOption

sqlparse/sqlparse.go:72–80  ·  view source on GitHub ↗
(opt string)

Source from the content-addressed store, hash-verified

70}
71
72func (c *migrateCommand) HasOption(opt string) bool {
73 for _, specifiedOption := range c.Options {
74 if specifiedOption == opt {
75 return true
76 }
77 }
78
79 return false
80}
81
82func parseCommand(line string) (*migrateCommand, error) {
83 cmd := &migrateCommand{}

Callers 1

ParseMigrationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected