Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/sqlite/src/create_tables

Issue 9110047: The complete work-in-progress SQLite recover virtual table. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/Makefile.linux-gcc ('k') | third_party/sqlite/src/interior.pl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/sh
2
3 ./build/sqlite3 build/my.db <<EOF
4 DROP TABLE IF EXISTS leaf;
5 DROP TABLE IF EXISTS interior;
6 DROP TABLE IF EXISTS interior2;
7 EOF
8
9 # A small leaf-only table.
10 cat >afile <<EOF
11 This is a small file.
12 Just a couple lines.
13 Ending soon.
14 EOF
15 ls afile | xargs ./interior.pl --table=leaf | ./build/sqlite3 build/my.db
16 rm afile
17
18 # Table with enough items to create an interior node.
19 ls src/corrupt.c | xargs ./interior.pl --table=interior | ./build/sqlite3 build/ my.db
20
21 # Table with enough items to create multiple levels of interior node.
22 find src -name "*.[hc]" | xargs ./interior.pl --table=interior2 | ./build/sqlite 3 build/my.db
23
24 ./build/sqlite3 build/my.db <<EOF
25 .schema leaf
26 SELECT "row:", COUNT(*) FROM leaf;
27 .schema interior
28 SELECT "rows:", COUNT(*) FROM interior;
29 .schema interior2
30 SELECT "rows:", COUNT(*) FROM interior2;
31 EOF
OLDNEW
« no previous file with comments | « third_party/sqlite/src/Makefile.linux-gcc ('k') | third_party/sqlite/src/interior.pl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698