diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-03-30 09:59:48 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-03-30 09:59:48 -0400 |
commit | 3554df2e34e63364eea3a7998e0dfb0e6be65ca4 (patch) | |
tree | e82ccb7eb257adde7d7df2b2295975ed81f137b5 /generator/notion.cpp | |
parent | 84bae572d353b03ecb3498df83ba301a456b6c6f (diff) | |
download | verbly-3554df2e34e63364eea3a7998e0dfb0e6be65ca4.tar.gz verbly-3554df2e34e63364eea3a7998e0dfb0e6be65ca4.tar.bz2 verbly-3554df2e34e63364eea3a7998e0dfb0e6be65ca4.zip |
Started migrating to hkutil (does not build)
Diffstat (limited to 'generator/notion.cpp')
-rw-r--r-- | generator/notion.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/generator/notion.cpp b/generator/notion.cpp index 1878ba9..35ba7b1 100644 --- a/generator/notion.cpp +++ b/generator/notion.cpp | |||
@@ -46,10 +46,11 @@ namespace verbly { | |||
46 | { | 46 | { |
47 | // First, serialize the notion | 47 | // First, serialize the notion |
48 | { | 48 | { |
49 | std::list<field> fields; | 49 | std::list<hatkirby::column> fields; |
50 | 50 | ||
51 | fields.emplace_back("notion_id", arg.getId()); | 51 | fields.emplace_back("notion_id", arg.getId()); |
52 | fields.emplace_back("part_of_speech", static_cast<int>(arg.getPartOfSpeech())); | 52 | fields.emplace_back("part_of_speech", |
53 | static_cast<int>(arg.getPartOfSpeech())); | ||
53 | 54 | ||
54 | if (arg.hasWnid()) | 55 | if (arg.hasWnid()) |
55 | { | 56 | { |
@@ -69,12 +70,12 @@ namespace verbly { | |||
69 | { | 70 | { |
70 | for (std::string group : arg.getPrepositionGroups()) | 71 | for (std::string group : arg.getPrepositionGroups()) |
71 | { | 72 | { |
72 | std::list<field> fields; | 73 | db.insertIntoTable( |
73 | 74 | "is_a", | |
74 | fields.emplace_back("notion_id", arg.getId()); | 75 | { |
75 | fields.emplace_back("groupname", group); | 76 | { "notion_id", arg.getId() }, |
76 | 77 | { "groupname", group } | |
77 | db.insertIntoTable("is_a", std::move(fields)); | 78 | }); |
78 | } | 79 | } |
79 | } | 80 | } |
80 | 81 | ||