** Implementation of ".lint" dot command. */
| 21809 | ** Implementation of ".lint" dot command. |
| 21810 | */ |
| 21811 | static int lintDotCommand( |
| 21812 | ShellState *pState, /* Current shell tool state */ |
| 21813 | char **azArg, /* Array of arguments passed to dot command */ |
| 21814 | int nArg /* Number of entries in azArg[] */ |
| 21815 | ){ |
| 21816 | int n; |
| 21817 | n = (nArg>=2 ? strlen30(azArg[1]) : 0); |
| 21818 | if( n<1 || sqlite3_strnicmp(azArg[1], "fkey-indexes", n) ) goto usage; |
| 21819 | return lintFkeyIndexes(pState, azArg, nArg); |
| 21820 | |
| 21821 | usage: |
| 21822 | raw_printf(stderr, "Usage %s sub-command ?switches...?\n", azArg[0]); |
| 21823 | raw_printf(stderr, "Where sub-commands are:\n"); |
| 21824 | raw_printf(stderr, " fkey-indexes\n"); |
| 21825 | return SQLITE_ERROR; |
| 21826 | } |
| 21827 | |
| 21828 | #if !defined SQLITE_OMIT_VIRTUALTABLE |
| 21829 | static void shellPrepare( |
no test coverage detected