updated samples

- pikotools is in src subdirectory now
- map_fields() -> fields()
- prepare_table() -> table()
- instead of pt::MainSpaceParser we have pt::MainOptionsParser now
This commit is contained in:
2021-06-24 21:14:29 +02:00
parent 86bf9cf688
commit 89148de66d
8 changed files with 45 additions and 49 deletions

View File

@@ -63,16 +63,16 @@ public:
long attachment_id;
std::wstring name;
void map_fields()
void fields()
{
field(L"id", id, FT::no_insertable | FT::no_updatable | FT::primary_key);
field(L"attachment_id", attachment_id);
field(L"name", name);
}
void prepare_table()
void table()
{
table(L"public", L"types");
table_name(L"public", L"types");
}
void after_insert()