diff options
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 | ||
