RunDatabaseSetSQLModes sets the sql modes on the database
(c *CmdConfig)
| 1961 | |
| 1962 | // RunDatabaseSetSQLModes sets the sql modes on the database |
| 1963 | func RunDatabaseSetSQLModes(c *CmdConfig) error { |
| 1964 | if len(c.Args) < 2 { |
| 1965 | return doctl.NewMissingArgsErr(c.NS) |
| 1966 | } |
| 1967 | |
| 1968 | databaseID := c.Args[0] |
| 1969 | sqlModes := c.Args[1:] |
| 1970 | |
| 1971 | return c.Databases().SetSQLMode(databaseID, sqlModes...) |
| 1972 | } |
| 1973 | |
| 1974 | func RunDatabaseTopicList(c *CmdConfig) error { |
| 1975 | if len(c.Args) == 0 { |