本文整理匯總了C++中GetDatabase函數的典型用法代碼示例。如果您正苦於以下問題:C++ GetDatabase函數的具體用法?C++ GetDatabase怎麽用?C++ GetDatabase使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了GetDatabase函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: wxT
bool pgForeignServer::DropObject(wxFrame *frame, ctlTree *browser, bool cascaded)
{
wxString sql = wxT("DROP SERVER ") + GetQuotedFullIdentifier();
if (cascaded)
sql += wxT(" CASCADE");
return GetDatabase()->ExecuteVoid(sql);
}
示例2: wxT
bool gpExtTable::DropObject(wxFrame *frame, ctlTree *browser, bool cascaded)
{
wxString sql = wxT("DROP EXTERNAL TABLE ") + this->GetSchema()->GetQuotedIdentifier() + wxT(".") + this->GetQuotedIdentifier();
if (cascaded)
sql += wxT(" CASCADE");
return GetDatabase()->ExecuteVoid(sql);
}
示例3: GetDatabase
bool pgDatabaseObjCollection::CanCreate()
{
if (IsCollectionForType(PGM_CATALOG))
return false;
return GetDatabase()->GetCreatePrivilege();
}
示例4: wxT
bool pgCast::DropObject(wxFrame *frame, ctlTree *browser, bool cascaded)
{
wxString sql = wxT("DROP CAST (") + GetSourceType() + wxT(" AS ") + GetTargetType() + wxT(")");
if (cascaded)
sql += wxT(" CASCADE");
return GetDatabase()->ExecuteVoid(sql);
}
示例5: wxT
bool pgCheck::DropObject(wxFrame *frame, ctlTree *browser, bool cascaded)
{
wxString sql = wxT("ALTER ") + objectKind + wxT(" ") + qtIdent(objectSchema) + wxT(".") + qtIdent(objectName)
+ wxT(" DROP CONSTRAINT ") + GetQuotedIdentifier();
if (cascaded)
sql += wxT(" CASCADE");
return GetDatabase()->ExecuteVoid(sql);
}
示例6: GetDatabase
bool slPath::DropObject(wxFrame *frame, ctlTree *browser, bool cascaded)
{
return GetDatabase()->ExecuteVoid(
wxT("SELECT ") + GetCluster()->GetSchemaPrefix()
+ wxT("droppath(") + NumToStr(GetSlId())
+ wxT(", ") + NumToStr(GetNode()->GetSlId())
+ wxT(");\n"));
}
示例7: wxT
bool pgForeignKey::DropObject(wxFrame *frame, ctlTree *browser, bool cascaded)
{
wxString sql = wxT("ALTER TABLE ") + this->GetSchema()->GetQuotedIdentifier() + wxT(".") + qtIdent(fkTable)
+ wxT(" DROP CONSTRAINT ") + GetQuotedIdentifier();
if (cascaded)
sql += wxT(" CASCADE");
return GetDatabase()->ExecuteVoid(sql);
}
示例8: wxT
bool pgProcedure::DropObject(wxFrame *frame, ctlTree *browser, bool cascaded)
{
if (!GetConnection()->EdbMinimumVersion(8, 0))
return pgFunction::DropObject(frame, browser, cascaded);
wxString sql = wxT("DROP PROCEDURE ") + this->GetSchema()->GetQuotedIdentifier() + wxT(".") + this->GetQuotedIdentifier();
return GetDatabase()->ExecuteVoid(sql);
}
示例9: wxT
void pgView::RefreshMatView(bool concurrently)
{
wxString sql = wxT("REFRESH MATERIALIZED VIEW ");
if (concurrently)
sql += wxT("CONCURRENTLY ");
sql += GetQuotedFullIdentifier();
GetDatabase()->ExecuteVoid(sql);
}
示例10: SetTimer
void CDialogT3::Fresh()
{
SetTimer(T3_MODEL,1000,NULL);
GetDatabase();
ShowDialogData();
//Updatedatabase();
}
示例11: wxT
bool pgTextSearchParser::DropObject(wxFrame *frame, ctlTree *browser, bool cascaded)
{
wxString sql = wxT("DROP TEXT SEARCH PARSER ") + this->GetSchema()->GetQuotedIdentifier() + wxT(".") + this->GetIdentifier();
if (cascaded)
sql += wxT(" CASCADE");
return GetDatabase()->ExecuteVoid(sql);
}
示例12: wxT
bool pgTextSearchConfiguration::DropObject(wxFrame *frame, ctlTree *browser, bool cascaded)
{
wxString sql = wxT("DROP TEXT SEARCH CONFIGURATION ") + this->GetSchema()->GetQuotedIdentifier() + wxT(".") + qtIdent(this->GetIdentifier());
if (cascaded)
sql += wxT(" CASCADE");
return GetDatabase()->ExecuteVoid(sql);
}
示例13: GetDatabase
bool slSubscription::DropObject(wxFrame *frame, ctlTree *browser, bool cascaded)
{
return GetDatabase()->ExecuteVoid(
wxT("SELECT ") + GetCluster()->GetSchemaPrefix()
+ wxT("unsubscribeset(") + NumToStr(GetSet()->GetSlId())
+ wxT(", ") + NumToStr(GetReceiverId())
+ wxT(");"));
}
示例14: wxT
void pgDomain::Validate(frmMain *form)
{
wxString sql = wxT("ALTER DOMAIN ") + GetQuotedFullIdentifier()
+ wxT("\n VALIDATE CONSTRAINT ") + GetCheckConstraintName();
GetDatabase()->ExecuteVoid(sql);
iSetValid(true);
UpdateIcon(form->GetBrowser());
}
示例15: wxT
bool edbPrivateSynonym::DropObject(wxFrame *frame, ctlTree *browser, bool cascaded)
{
wxString sql;
if (isPublic)
sql = wxT("DROP PUBLIC SYNONYM ") + GetQuotedIdentifier();
else
sql = wxT("DROP SYNONYM ") + this->GetSchema()->GetQuotedIdentifier() + wxT(".") + GetQuotedIdentifier();
return GetDatabase()->ExecuteVoid(sql);
}