Lines Matching refs:rc

28 static char *errorName(int rc){  in errorName()  argument
30 switch( rc ){ in errorName()
63 int rc; in btree_open() local
70 rc = sqliteBtreeFactory(0, argv[1], 0, 1000, &pBt); in btree_open()
71 if( rc!=SQLITE_OK ){ in btree_open()
72 Tcl_AppendResult(interp, errorName(rc), 0); in btree_open()
95 int rc; in btree_close() local
102 rc = sqliteBtreeClose(pBt); in btree_close()
103 if( rc!=SQLITE_OK ){ in btree_close()
104 Tcl_AppendResult(interp, errorName(rc), 0); in btree_close()
122 int rc; in btree_begin_transaction() local
129 rc = sqliteBtreeBeginTrans(pBt); in btree_begin_transaction()
130 if( rc!=SQLITE_OK ){ in btree_begin_transaction()
131 Tcl_AppendResult(interp, errorName(rc), 0); in btree_begin_transaction()
149 int rc; in btree_rollback() local
156 rc = sqliteBtreeRollback(pBt); in btree_rollback()
157 if( rc!=SQLITE_OK ){ in btree_rollback()
158 Tcl_AppendResult(interp, errorName(rc), 0); in btree_rollback()
176 int rc; in btree_commit() local
183 rc = sqliteBtreeCommit(pBt); in btree_commit()
184 if( rc!=SQLITE_OK ){ in btree_commit()
185 Tcl_AppendResult(interp, errorName(rc), 0); in btree_commit()
203 int rc, iTable; in btree_create_table() local
211 rc = sqliteBtreeCreateTable(pBt, &iTable); in btree_create_table()
212 if( rc!=SQLITE_OK ){ in btree_create_table()
213 Tcl_AppendResult(interp, errorName(rc), 0); in btree_create_table()
234 int rc; in btree_drop_table() local
242 rc = sqliteBtreeDropTable(pBt, iTable); in btree_drop_table()
243 if( rc!=SQLITE_OK ){ in btree_drop_table()
244 Tcl_AppendResult(interp, errorName(rc), 0); in btree_drop_table()
263 int rc; in btree_clear_table() local
271 rc = sqliteBtreeClearTable(pBt, iTable); in btree_clear_table()
272 if( rc!=SQLITE_OK ){ in btree_clear_table()
273 Tcl_AppendResult(interp, errorName(rc), 0); in btree_clear_table()
291 int rc; in btree_get_meta() local
300 rc = sqliteBtreeGetMeta(pBt, aMeta); in btree_get_meta()
301 if( rc!=SQLITE_OK ){ in btree_get_meta()
302 Tcl_AppendResult(interp, errorName(rc), 0); in btree_get_meta()
325 int rc; in btree_update_meta() local
340 rc = sqliteBtreeUpdateMeta(pBt, aMeta); in btree_update_meta()
341 if( rc!=SQLITE_OK ){ in btree_update_meta()
342 Tcl_AppendResult(interp, errorName(rc), 0); in btree_update_meta()
361 int rc; in btree_page_dump() local
370 rc = sqliteBtreePageDump(pBt, iPage, 0); in btree_page_dump()
371 if( rc!=SQLITE_OK ){ in btree_page_dump()
372 Tcl_AppendResult(interp, errorName(rc), 0); in btree_page_dump()
391 int rc; in btree_tree_dump() local
400 rc = sqliteBtreePageDump(pBt, iPage, 1); in btree_tree_dump()
401 if( rc!=SQLITE_OK ){ in btree_tree_dump()
402 Tcl_AppendResult(interp, errorName(rc), 0); in btree_tree_dump()
518 int rc; in btree_cursor() local
530 rc = sqliteBtreeCursor(pBt, iTable, wrFlag, &pCur); in btree_cursor()
531 if( rc ){ in btree_cursor()
532 Tcl_AppendResult(interp, errorName(rc), 0); in btree_cursor()
552 int rc; in btree_close_cursor() local
560 rc = sqliteBtreeCloseCursor(pCur); in btree_close_cursor()
561 if( rc ){ in btree_close_cursor()
562 Tcl_AppendResult(interp, errorName(rc), 0); in btree_close_cursor()
580 int rc; in btree_move_to() local
590 rc = sqliteBtreeMoveto(pCur, argv[2], strlen(argv[2]), &res); in btree_move_to()
591 if( rc ){ in btree_move_to()
592 Tcl_AppendResult(interp, errorName(rc), 0); in btree_move_to()
614 int rc; in btree_delete() local
622 rc = sqliteBtreeDelete(pCur); in btree_delete()
623 if( rc ){ in btree_delete()
624 Tcl_AppendResult(interp, errorName(rc), 0); in btree_delete()
643 int rc; in btree_insert() local
651 rc = sqliteBtreeInsert(pCur, argv[2], strlen(argv[2]), in btree_insert()
653 if( rc ){ in btree_insert()
654 Tcl_AppendResult(interp, errorName(rc), 0); in btree_insert()
674 int rc; in btree_next() local
684 rc = sqliteBtreeNext(pCur, &res); in btree_next()
685 if( rc ){ in btree_next()
686 Tcl_AppendResult(interp, errorName(rc), 0); in btree_next()
708 int rc; in btree_prev() local
718 rc = sqliteBtreePrevious(pCur, &res); in btree_prev()
719 if( rc ){ in btree_prev()
720 Tcl_AppendResult(interp, errorName(rc), 0); in btree_prev()
741 int rc; in btree_first() local
751 rc = sqliteBtreeFirst(pCur, &res); in btree_first()
752 if( rc ){ in btree_first()
753 Tcl_AppendResult(interp, errorName(rc), 0); in btree_first()
774 int rc; in btree_last() local
784 rc = sqliteBtreeLast(pCur, &res); in btree_last()
785 if( rc ){ in btree_last()
786 Tcl_AppendResult(interp, errorName(rc), 0); in btree_last()
806 int rc; in btree_key() local
818 rc = sqliteBtreeKey(pCur, 0, n, zBuf); in btree_key()
819 if( rc!=n ){ in btree_key()
822 sprintf(zMsg, "truncated key: got %d of %d bytes", rc, n); in btree_key()
844 int rc; in btree_data() local
856 rc = sqliteBtreeData(pCur, 0, n, zBuf); in btree_data()
857 if( rc!=n ){ in btree_data()
860 sprintf(zMsg, "truncated data: got %d of %d bytes", rc, n); in btree_data()
920 int rc; in btree_cursor_dump() local
931 rc = sqliteBtreeCursorDump(pCur, aResult); in btree_cursor_dump()
932 if( rc ){ in btree_cursor_dump()
933 Tcl_AppendResult(interp, errorName(rc), 0); in btree_cursor_dump()