本文整理汇总了C++中GetOidStr函数的典型用法代码示例。如果您正苦于以下问题:C++ GetOidStr函数的具体用法?C++ GetOidStr怎么用?C++ GetOidStr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetOidStr函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: wxT
pgObject *pgSchemaBase::Refresh(ctlTree *browser, const wxTreeItemId item)
{
pgObject *schema = 0;
pgCollection *coll = browser->GetParentCollection(item);
if (coll)
{
if (coll->IsCollectionForType(PGM_CATALOG))
schema = catalogFactory.CreateObjects(coll, 0, wxT(" WHERE nsp.oid=") + GetOidStr() + wxT("\n"));
else
schema = schemaFactory.CreateObjects(coll, 0, wxT(" WHERE nsp.oid=") + GetOidStr() + wxT("\n"));
}
return schema;
}
示例2: wxT
pgObject *pgRole::Refresh(ctlTree *browser, const wxTreeItemId item)
{
pgObject *role = 0;
pgCollection *coll = browser->GetParentCollection(item);
if (coll)
{
if (coll->GetServer()->GetConnection()->BackendMinimumVersion(8, 5))
role = loginRoleFactory.CreateObjects(coll, 0, wxT("\n WHERE tab.oid=") + GetOidStr());
else
role = loginRoleFactory.CreateObjects(coll, 0, wxT("\n WHERE oid=") + GetOidStr());
}
return role;
}
示例3: wxLogInfo
void pgTablespace::ShowStatistics(frmMain *form, ctlListView *statistics)
{
if (statistics)
{
if (GetConnection()->HasFeature(FEATURE_SIZE))
{
wxLogInfo(wxT("Displaying statistics for %s"), GetTypeName().c_str());
// Add the statistics view columns
CreateListColumns(statistics, _("Statistic"), _("Value"));
pgSet *stats = GetConnection()->ExecuteSet(
wxT("SELECT pg_size_pretty(pg_tablespace_size(") + GetOidStr() + wxT(")) AS ") + qtIdent(_("Tablespace Size")));
if (stats)
{
int col;
for (col = 0 ; col < stats->NumCols() ; col++)
{
if (!stats->ColName(col).IsEmpty())
statistics->AppendItem(stats->ColName(col), stats->GetVal(col));
}
delete stats;
}
}
}
}
示例4: GetConnection
void pgTablespace::ShowDependents(frmMain *form, ctlListView *referencedBy, const wxString &where)
{
form->StartMsg(_(" Retrieving tablespace usage"));
referencedBy->ClearAll();
referencedBy->AddColumn(_("Type"), 60);
referencedBy->AddColumn(_("Database"), 80);
referencedBy->AddColumn(_("Name"), 300);
wxArrayString dblist;
pgSet *set = GetConnection()->ExecuteSet(
wxT("SELECT datname, datallowconn, dattablespace\n")
wxT(" FROM pg_database db\n")
wxT(" ORDER BY datname"));
if (set)
{
while (!set->Eof())
{
wxString datname = set->GetVal(wxT("datname"));
if (set->GetBool(wxT("datallowconn")))
dblist.Add(datname);
OID oid = set->GetOid(wxT("dattablespace"));
if (oid == GetOid())
referencedBy->AppendItem(databaseFactory.GetIconId(), _("Database"), datname);
set->MoveNext();
}
delete set;
}
FillOwned(form->GetBrowser(), referencedBy, dblist,
wxT("SELECT cl.relkind, COALESCE(cin.nspname, cln.nspname) as nspname, COALESCE(ci.relname, cl.relname) as relname, cl.relname as indname\n")
wxT(" FROM pg_class cl\n")
wxT(" JOIN pg_namespace cln ON cl.relnamespace=cln.oid\n")
wxT(" LEFT OUTER JOIN pg_index ind ON ind.indexrelid=cl.oid\n")
wxT(" LEFT OUTER JOIN pg_class ci ON ind.indrelid=ci.oid\n")
wxT(" LEFT OUTER JOIN pg_namespace cin ON ci.relnamespace=cin.oid,\n")
wxT(" pg_database\n")
wxT(" WHERE datname = current_database()\n")
wxT(" AND (cl.reltablespace = ") + GetOidStr() + wxT("\n")
wxT(" OR (cl.reltablespace=0 AND dattablespace = ") + GetOidStr() + wxT("))\n")
wxT(" ORDER BY 1,2,3"));
form->EndMsg(set != 0);
}
示例5: wxT
pgObject *pgType::Refresh(ctlTree *browser, const wxTreeItemId item)
{
pgObject *type = 0;
pgCollection *coll = browser->GetParentCollection(item);
if (coll)
type = typeFactory.CreateObjects(coll, 0, wxT("\n AND t.oid=") + GetOidStr());
return type;
}
示例6: wxT
pgObject *pgRule::Refresh(ctlTree *browser, const wxTreeItemId item)
{
pgObject *rule = 0;
pgCollection *coll = browser->GetParentCollection(item);
if (coll)
rule = ruleFactory.CreateObjects(coll, 0, wxT("\n AND rw.oid=") + GetOidStr());
return rule;
}
示例7: wxT
pgObject *pgForeignTable::Refresh(ctlTree *browser, const wxTreeItemId item)
{
pgObject *ft = 0;
pgCollection *coll = browser->GetParentCollection(item);
if (coll)
ft = foreignTableFactory.CreateObjects(coll, 0, wxT("\n AND c.oid=") + GetOidStr());
return ft;
}
示例8: wxT
pgObject *pgCatalogObject::Refresh(ctlTree *browser, const wxTreeItemId item)
{
pgObject *catalog = 0;
pgCollection *parent = (pgCollection *)browser->GetItemData(browser->GetItemParent(item));
if (parent)
catalog = catalogObjectFactory.CreateObjects(parent, 0, wxT("\n AND c.oid=") + GetOidStr());
return catalog;
}
示例9: wxT
pgObject *pgTextSearchParser::Refresh(ctlTree *browser, const wxTreeItemId item)
{
pgObject *parser = 0;
pgCollection *coll = browser->GetParentCollection(item);
if (coll)
parser = textSearchParserFactory.CreateObjects(coll, 0, wxT("\n AND prs.oid=") + GetOidStr());
return parser;
}
示例10: wxT
pgObject *pgTablespace::Refresh(ctlTree *browser, const wxTreeItemId item)
{
pgObject *tablespace = 0;
pgCollection *coll = browser->GetParentCollection(item);
if (coll)
tablespace = tablespaceFactory.CreateObjects(coll, 0, wxT("\n WHERE ts.oid=") + GetOidStr());
return tablespace;
}
示例11: wxT
pgObject *slCluster::Refresh(ctlTree *browser, const wxTreeItemId item)
{
pgObject *cluster = 0;
pgCollection *coll = browser->GetParentCollection(item);
if (coll)
cluster = slClusterFactory.CreateObjects(coll, 0, wxT(" WHERE nsp.oid=") + GetOidStr() + wxT("\n"));
return cluster;
}
示例12: wxT
pgObject *edbResourceGroup::Refresh(ctlTree *browser, const wxTreeItemId item)
{
pgObject *group = 0;
pgCollection *coll = browser->GetParentCollection(item);
if (coll)
group = resourceGroupFactory.CreateObjects(coll, 0, wxT("\n WHERE oid=") + GetOidStr());
return group;
}
示例13: wxT
pgObject *pgExtension::Refresh(ctlTree *browser, const wxTreeItemId item)
{
pgObject *language = 0;
pgCollection *coll = browser->GetParentCollection(item);
if (coll)
language = extensionFactory.CreateObjects(coll, 0, wxT("\n AND x.oid=") + GetOidStr());
return language;
}
示例14: wxT
pgObject *pgOperator::Refresh(ctlTree *browser, const wxTreeItemId item)
{
pgObject *oper = 0;
pgCollection *coll = browser->GetParentCollection(item);
if (coll)
oper = operatorFactory.CreateObjects(coll, 0, wxT("\n AND op.oid=") + GetOidStr());
return oper;
}
示例15: wxT
pgObject *pgSequence::Refresh(ctlTree *browser, const wxTreeItemId item)
{
pgObject *sequence = 0;
pgCollection *coll = browser->GetParentCollection(item);
if (coll)
sequence = sequenceFactory.CreateObjects(coll, 0, wxT("\n AND cl.oid=") + GetOidStr());
return sequence;
}