Basic support for update in Crud implementation, error reporting and transfering data to modified set is still missing.

This commit is contained in:
eelke 2018-02-05 21:42:54 +01:00
parent 3fb32f1200
commit d626c19e14
15 changed files with 530 additions and 83 deletions

View file

@ -0,0 +1,22 @@
#include "QueryGenerator.h"
#include "PgDatabaseCatalog.h"
#include "PgClass.h"
#include "PgNamespace.h"
#include "PgNamespaceContainer.h"
using namespace Querygen;
QueryGeneratorFactory::QueryGeneratorFactory(std::shared_ptr<PgDatabaseCatalog> catalog)
: m_catalog(catalog)
{}
UpdatePtr QueryGeneratorFactory::update(QString ns, QString table_name, QString alias)
{
return std::make_shared<Update>(ns, table_name, alias);
}
UpdatePtr QueryGeneratorFactory::update(const PgClass &table_class, QString alias)
{
//QString nsname = m_catalog->namespaces()->getByKey(table_class.relnamespace_name)
return update(table_class.relnamespace_name, table_class.name, alias);
}