當前位置: 首頁>>代碼示例>>C++>>正文


C++ GetDatabase函數代碼示例

本文整理匯總了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);
}
開發者ID:GHnubsST,項目名稱:pgadmin3,代碼行數:7,代碼來源:pgForeignServer.cpp

示例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);
}
開發者ID:kleopatra999,項目名稱:pgadmin3,代碼行數:7,代碼來源:gpExtTable.cpp

示例3: GetDatabase

bool pgDatabaseObjCollection::CanCreate()
{
	if (IsCollectionForType(PGM_CATALOG))
		return false;

	return GetDatabase()->GetCreatePrivilege();
}
開發者ID:KrisShannon,項目名稱:pgadmin3,代碼行數:7,代碼來源:pgDatabase.cpp

示例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);
}
開發者ID:KrisShannon,項目名稱:pgadmin3,代碼行數:7,代碼來源:pgCast.cpp

示例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);
}
開發者ID:kleopatra999,項目名稱:pgadmin3,代碼行數:8,代碼來源:pgCheck.cpp

示例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"));
}
開發者ID:kleopatra999,項目名稱:pgadmin3,代碼行數:8,代碼來源:slPath.cpp

示例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);
}
開發者ID:KrisShannon,項目名稱:pgadmin3,代碼行數:8,代碼來源:pgForeignKey.cpp

示例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);
}
開發者ID:intgr,項目名稱:pgadmin3,代碼行數:8,代碼來源:pgFunction.cpp

示例9: wxT

void pgView::RefreshMatView(bool concurrently)
{
	wxString sql = wxT("REFRESH MATERIALIZED VIEW ");
	if (concurrently)
		sql += wxT("CONCURRENTLY ");
	sql += GetQuotedFullIdentifier();
	GetDatabase()->ExecuteVoid(sql);
}
開發者ID:FabianCollaguazo,項目名稱:pgadmin3,代碼行數:8,代碼來源:pgView.cpp

示例10: SetTimer

void CDialogT3::Fresh()
{
    SetTimer(T3_MODEL,1000,NULL);
    GetDatabase();
    ShowDialogData();
    //Updatedatabase();

}
開發者ID:JTheCoder1,項目名稱:T3000_Building_Automation_System,代碼行數:8,代碼來源:DialogT3.cpp

示例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);
}
開發者ID:Joe-xXx,項目名稱:pgadmin3,代碼行數:9,代碼來源:pgTextSearchParser.cpp

示例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);
}
開發者ID:SokilV,項目名稱:pgadmin3,代碼行數:9,代碼來源:pgTextSearchConfiguration.cpp

示例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(");"));

}
開發者ID:ubershmekel,項目名稱:pgadmin3,代碼行數:9,代碼來源:slSubscription.cpp

示例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());
}
開發者ID:GHnubsST,項目名稱:pgadmin3,代碼行數:9,代碼來源:pgDomain.cpp

示例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);
}
開發者ID:lhcezar,項目名稱:pgadmin3,代碼行數:10,代碼來源:edbPrivateSynonym.cpp


注:本文中的GetDatabase函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。