OLD | NEW |
1 /* | 1 /* |
2 ** This program searches an SQLite database file for the lengths and | 2 ** This program searches an SQLite database file for the lengths and |
3 ** offsets for all TEXT or BLOB entries for a particular column of a | 3 ** offsets for all TEXT or BLOB entries for a particular column of a |
4 ** particular table. The rowid, size and offset for the column are | 4 ** particular table. The rowid, size and offset for the column are |
5 ** written to standard output. There are three arguments, which are the | 5 ** written to standard output. There are three arguments, which are the |
6 ** name of the database file, the table, and the column. | 6 ** name of the database file, the table, and the column. |
7 */ | 7 */ |
8 #include "sqlite3.h" | 8 #include "sqlite3.h" |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #include <stdlib.h> | 10 #include <stdlib.h> |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 fprintf(stderr, "cannot open \"%s\"\n", argv[1]); | 320 fprintf(stderr, "cannot open \"%s\"\n", argv[1]); |
321 exit(1); | 321 exit(1); |
322 } | 322 } |
323 ofstWalkPage(&g, g.iRoot); | 323 ofstWalkPage(&g, g.iRoot); |
324 if( g.zErr ){ | 324 if( g.zErr ){ |
325 fprintf(stderr, "%s\n", g.zErr); | 325 fprintf(stderr, "%s\n", g.zErr); |
326 exit(1); | 326 exit(1); |
327 } | 327 } |
328 return 0; | 328 return 0; |
329 } | 329 } |
OLD | NEW |