Home | History | Annotate | Download | only in dist

Lines Matching refs:nArg

674 static int shell_callback(void *pArg, int nArg, char **azArg, char **azCol, int *aiType){
682 for(i=0; i<nArg; i++){
687 for(i=0; i<nArg; i++){
696 for(i=0; i<nArg; i++){
713 fprintf(p->out,"%-*.*s%s",w,w,azCol[i], i==nArg-1 ? "\n": " ");
717 for(i=0; i<nArg; i++){
726 i==nArg-1 ? "\n": " ");
731 for(i=0; i<nArg; i++){
743 azArg[i] ? azArg[i] : p->nullvalue, i==nArg-1 ? "\n": " ");
750 for(i=0; i<nArg; i++){
751 fprintf(p->out,"%s%s",azCol[i], i==nArg-1 ? "\n" : p->separator);
755 for(i=0; i<nArg; i++){
759 if( i<nArg-1 ){
772 for(i=0; i<nArg; i++){
781 for(i=0; i<nArg; i++){
791 for(i=0; i<nArg; i++){
798 for(i=0; i<nArg; i++){
807 for(i=0; i<nArg; i++){
808 output_csv(p, azCol[i] ? azCol[i] : "", i<nArg-1);
813 for(i=0; i<nArg; i++){
814 output_csv(p, azArg[i], i<nArg-1);
823 for(i=0; i<nArg; i++){
855 static int callback(void *pArg, int nArg, char **azArg, char **azCol){
857 return shell_callback(pArg, nArg, azArg, azCol, NULL);
1252 static int dump_callback(void *pArg, int nArg, char **azArg, char **azCol){
1261 if( nArg!=3 ) return 1;
1551 int nArg = 0;
1558 while( zLine[i] && nArg<ArraySize(azArg) ){
1563 azArg[nArg++] = &zLine[i];
1568 if( delim=='"' ) resolve_backslashes(azArg[nArg-1]);
1570 azArg[nArg++] = &zLine[i];
1573 resolve_backslashes(azArg[nArg-1]);
1579 if( nArg==0 ) return 0; /* no tokens, no error */
1582 if( c=='b' && n>=3 && strncmp(azArg[0], "backup", n)==0 && nArg>1 && nArg<4){
1587 if( nArg==2 ){
1618 if( c=='b' && n>=3 && strncmp(azArg[0], "bail", n)==0 && nArg>1 && nArg<3 ){
1622 if( c=='d' && n>1 && strncmp(azArg[0], "databases", n)==0 && nArg==1 ){
1641 if( c=='d' && strncmp(azArg[0], "dump", n)==0 && nArg<3 ){
1651 if( nArg==1 ){
1666 for(i=1; i<nArg; i++){
1690 if( c=='e' && strncmp(azArg[0], "echo", n)==0 && nArg>1 && nArg<3 ){
1694 if( c=='e' && strncmp(azArg[0], "exit", n)==0 && nArg==1 ){
1698 if( c=='e' && strncmp(azArg[0], "explain", n)==0 && nArg<3 ){
1699 int val = nArg>=2 ? booleanValue(azArg[1]) : 1;
1734 strncmp(azArg[0], "headers", n)==0) && nArg>1 && nArg<3 ){
1745 if( c=='i' && strncmp(azArg[0], "import", n)==0 && nArg==3 ){
1872 if( c=='i' && strncmp(azArg[0], "indices", n)==0 && nArg<3 ){
1879 if( nArg==1 ){
1917 if( nArg<2 ){
1936 if( c=='l' && strncmp(azArg[0], "load", n)==0 && nArg>=2 ){
1940 zProc = nArg>=3 ? azArg[2] : 0;
1951 if( c=='l' && strncmp(azArg[0], "log", n)==0 && nArg>=2 ){
1971 if( c=='m' && strncmp(azArg[0], "mode", n)==0 && nArg==2 ){
2003 if( c=='m' && strncmp(azArg[0], "mode", n)==0 && nArg==3 ){
2015 if( c=='n' && strncmp(azArg[0], "nullvalue", n)==0 && nArg==2 ) {
2020 if( c=='o' && strncmp(azArg[0], "output", n)==0 && nArg==2 ){
2039 if( c=='p' && strncmp(azArg[0], "prompt", n)==0 && (nArg==2 || nArg==3)){
2040 if( nArg >= 2) {
2043 if( nArg >= 3) {
2048 if( c=='q' && strncmp(azArg[0], "quit", n)==0 && nArg==1 ){
2052 if( c=='r' && n>=3 && strncmp(azArg[0], "read", n)==0 && nArg==2 ){
2063 if( c=='r' && n>=3 && strncmp(azArg[0], "restore", n)==0 && nArg>1 && nArg<4){
2070 if( nArg==2 ){
2110 if( c=='s' && strncmp(azArg[0], "schema", n)==0 && nArg<3 ){
2117 if( nArg>1 ){
2184 if( c=='s' && strncmp(azArg[0], "separator", n)==0 && nArg==2 ){
2189 if( c=='s' && strncmp(azArg[0], "show", n)==0 && nArg==1 ){
2211 if( c=='s' && strncmp(azArg[0], "stats", n)==0 && nArg>1 && nArg<3 ){
2215 if( c=='t' && n>1 && strncmp(azArg[0], "tables", n)==0 && nArg<3 ){
2220 if( nArg==1 ){
2273 if( c=='t' && n>=8 && strncmp(azArg[0], "testctrl", n)==0 && nArg>=2 ){
2320 if( nArg==3 ){
2334 if( nArg==2 ){
2344 if( nArg==3 ){
2357 if( nArg==3 ){
2370 if( nArg==3 ){
2393 if( c=='t' && n>4 && strncmp(azArg[0], "timeout", n)==0 && nArg==2 ){
2399 && nArg==2
2410 const char *zDbName = nArg==2 ? azArg[1] : "main";
2421 if( c=='w' && strncmp(azArg[0], "width", n)==0 && nArg>1 ){
2423 assert( nArg<=ArraySize(azArg) );
2424 for(j=1; j<nArg && j<ArraySize(p->colWidth); j++){