MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / lintDotCommand

Function lintDotCommand

modules/dasSQLITE/sqlite/shell.c:21811–21826  ·  view source on GitHub ↗

** Implementation of ".lint" dot command. */

Source from the content-addressed store, hash-verified

21809** Implementation of ".lint" dot command.
21810*/
21811static 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
21829static void shellPrepare(

Callers 1

do_meta_commandFunction · 0.85

Calls 2

strlen30Function · 0.85
lintFkeyIndexesFunction · 0.85

Tested by

no test coverage detected