Lines Matching refs:rc

31 static char *errorName(int rc){
33 switch( rc ){
66 int rc;
73 rc = sqliteBtreeFactory(0, argv[1], 0, 1000, &pBt);
74 if( rc!=SQLITE_OK ){
75 Tcl_AppendResult(interp, errorName(rc), 0);
98 int rc;
105 rc = sqliteBtreeClose(pBt);
106 if( rc!=SQLITE_OK ){
107 Tcl_AppendResult(interp, errorName(rc), 0);
125 int rc;
132 rc = sqliteBtreeBeginTrans(pBt);
133 if( rc!=SQLITE_OK ){
134 Tcl_AppendResult(interp, errorName(rc), 0);
152 int rc;
159 rc = sqliteBtreeRollback(pBt);
160 if( rc!=SQLITE_OK ){
161 Tcl_AppendResult(interp, errorName(rc), 0);
179 int rc;
186 rc = sqliteBtreeCommit(pBt);
187 if( rc!=SQLITE_OK ){
188 Tcl_AppendResult(interp, errorName(rc), 0);
206 int rc, iTable;
214 rc = sqliteBtreeCreateTable(pBt, &iTable);
215 if( rc!=SQLITE_OK ){
216 Tcl_AppendResult(interp, errorName(rc), 0);
237 int rc;
245 rc = sqliteBtreeDropTable(pBt, iTable);
246 if( rc!=SQLITE_OK ){
247 Tcl_AppendResult(interp, errorName(rc), 0);
266 int rc;
274 rc = sqliteBtreeClearTable(pBt, iTable);
275 if( rc!=SQLITE_OK ){
276 Tcl_AppendResult(interp, errorName(rc), 0);
294 int rc;
303 rc = sqliteBtreeGetMeta(pBt, aMeta);
304 if( rc!=SQLITE_OK ){
305 Tcl_AppendResult(interp, errorName(rc), 0);
328 int rc;
343 rc = sqliteBtreeUpdateMeta(pBt, aMeta);
344 if( rc!=SQLITE_OK ){
345 Tcl_AppendResult(interp, errorName(rc), 0);
364 int rc;
373 rc = sqliteBtreePageDump(pBt, iPage, 0);
374 if( rc!=SQLITE_OK ){
375 Tcl_AppendResult(interp, errorName(rc), 0);
394 int rc;
403 rc = sqliteBtreePageDump(pBt, iPage, 1);
404 if( rc!=SQLITE_OK ){
405 Tcl_AppendResult(interp, errorName(rc), 0);
521 int rc;
533 rc = sqliteBtreeCursor(pBt, iTable, wrFlag, &pCur);
534 if( rc ){
535 Tcl_AppendResult(interp, errorName(rc), 0);
555 int rc;
563 rc = sqliteBtreeCloseCursor(pCur);
564 if( rc ){
565 Tcl_AppendResult(interp, errorName(rc), 0);
583 int rc;
593 rc = sqliteBtreeMoveto(pCur, argv[2], strlen(argv[2]), &res);
594 if( rc ){
595 Tcl_AppendResult(interp, errorName(rc), 0);
617 int rc;
625 rc = sqliteBtreeDelete(pCur);
626 if( rc ){
627 Tcl_AppendResult(interp, errorName(rc), 0);
646 int rc;
654 rc = sqliteBtreeInsert(pCur, argv[2], strlen(argv[2]),
656 if( rc ){
657 Tcl_AppendResult(interp, errorName(rc), 0);
677 int rc;
687 rc = sqliteBtreeNext(pCur, &res);
688 if( rc ){
689 Tcl_AppendResult(interp, errorName(rc), 0);
711 int rc;
721 rc = sqliteBtreePrevious(pCur, &res);
722 if( rc ){
723 Tcl_AppendResult(interp, errorName(rc), 0);
744 int rc;
754 rc = sqliteBtreeFirst(pCur, &res);
755 if( rc ){
756 Tcl_AppendResult(interp, errorName(rc), 0);
777 int rc;
787 rc = sqliteBtreeLast(pCur, &res);
788 if( rc ){
789 Tcl_AppendResult(interp, errorName(rc), 0);
809 int rc;
821 rc = sqliteBtreeKey(pCur, 0, n, zBuf);
822 if( rc!=n ){
825 sprintf(zMsg, "truncated key: got %d of %d bytes", rc, n);
847 int rc;
859 rc = sqliteBtreeData(pCur, 0, n, zBuf);
860 if( rc!=n ){
863 sprintf(zMsg, "truncated data: got %d of %d bytes", rc, n);
923 int rc;
934 rc = sqliteBtreeCursorDump(pCur, aResult);
935 if( rc ){
936 Tcl_AppendResult(interp, errorName(rc), 0);