diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-11-08 14:53:26 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-11-08 14:53:26 -0500 |
commit | 350bfdb5ea9b4f7e50746c50a46d8032cbc5a104 (patch) | |
tree | e339d118669f85de1afb858828a7affd0b47c745 /generator/generator.h | |
parent | b92db337bf7cbe2ea0564be6c63c336d2bcd4567 (diff) | |
download | verbly-350bfdb5ea9b4f7e50746c50a46d8032cbc5a104.tar.gz verbly-350bfdb5ea9b4f7e50746c50a46d8032cbc5a104.tar.bz2 verbly-350bfdb5ea9b4f7e50746c50a46d8032cbc5a104.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.h | 4 |
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); |