Basic support for update in Crud implementation, error reporting and transfering data to modified set is still missing.
This commit is contained in:
parent
3fb32f1200
commit
d626c19e14
15 changed files with 530 additions and 83 deletions
22
pglablib/QueryGenerator.cpp
Normal file
22
pglablib/QueryGenerator.cpp
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue