summary refs log tree commit diff stats
path: root/generator/generator.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-11-08 14:53:26 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-11-08 14:53:26 -0500
commit350bfdb5ea9b4f7e50746c50a46d8032cbc5a104 (patch)
treee339d118669f85de1afb858828a7affd0b47c745 /generator/generator.h
parentb92db337bf7cbe2ea0564be6c63c336d2bcd4567 (diff)
downloadverbly-d1.0.tar.gz
verbly-d1.0.tar.bz2
verbly-d1.0.zip
Created database versioning system d1.0
Also added an ANALYZE statement to the end of the datafile generation
process. This generates information that allows sqlite to sometimes come
up with a better query plan, and in many cases can significant speed up
queries. This constitutes a minor database update, but because this is
the first version that uses the database versioning system, older
versions are essentially incompatible.

refs #2
Diffstat (limited to 'generator/generator.h')
-rw-r--r--generator/generator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/generator/generator.h b/generator/generator.h index 43b3272..5458c97 100644 --- a/generator/generator.h +++ b/generator/generator.h
@@ -60,6 +60,8 @@ namespace verbly {
60 60
61 void writeSchema(); 61 void writeSchema();
62 62
63 void writeVersion();
64
63 void dumpObjects(); 65 void dumpObjects();
64 66
65 void readWordNetAntonymy(); 67 void readWordNetAntonymy();
@@ -88,6 +90,8 @@ namespace verbly {
88 90
89 void readWordNetSimilarity(); 91 void readWordNetSimilarity();
90 92
93 void analyzeDatabase();
94
91 // Helpers 95 // Helpers
92 96
93 std::list<std::string> readFile(std::string path); 97 std::list<std::string> readFile(std::string path);