• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ GetDatabase函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中GetDatabase函数的典型用法代码示例。如果您正苦于以下问题:C++ GetDatabase函数的具体用法?C++ GetDatabase怎么用?C++ GetDatabase使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了GetDatabase函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: SetDbName

void CConnection::SetDbName(const string& name, CDB_Connection* conn)
{
    m_database = name;

    if( GetDatabase().empty() )
        return;

    CDB_Connection* work = (conn == 0 ? GetCDB_Connection() : conn);
    work->SetDatabaseName(name);
}
开发者ID:svn2github,项目名称:ncbi_tk,代码行数:10,代码来源:conn_impl.cpp


示例17: StrToLong

long slNode::GetOutstandingAcks()
{
	long l = StrToLong(GetDatabase()->ExecuteScalar(
	                       wxT("SELECT SUM(st_lag_num_events) AS sumlagevents\n")
	                       wxT("  FROM ") + GetCluster()->GetSchemaPrefix() + wxT("sl_status\n")
	                       wxT(" WHERE st_origin = ") + NumToStr(GetCluster()->GetLocalNodeID()) + wxT("\n")
	                       wxT("  GROUP BY st_last_event")));

	return l;
}
开发者ID:kleopatra999,项目名称:pgadmin3,代码行数:10,代码来源:slNode.cpp


示例18: MockImapSession

MockImapSession& MockTestSetup::GetSession()
{
	if(!m_session.get()) {
		m_session.reset(new MockImapSession(GetClientPtr(), GetDatabase()));
		m_session->SetBusClient(*GetClientPtr());
		m_session->SetAccount(m_account);
	}

	return *m_session;
}
开发者ID:hatsada1,项目名称:app-services,代码行数:10,代码来源:MockTestSetup.cpp


示例19: rdbi_vndr_info

FdoPtr<FdoSmPhRdSchemaReader> FdoSmPhOdbcMgr::CreateRdSchemaReader( FdoSmPhRowsP rows, FdoSmPhOwnerP owner, bool dsInfo )
{
    rdbi_vndr_info_def info;
	rdbi_vndr_info(GetRdbiContext(), &info );
    
    if( info.dbversion == RDBI_DBVERSION_ODBC_TERADATA )
        return new FdoSmPhRdTeraSchemaReader( rows, GetDatabase(), owner );
    else
        return new FdoSmPhRdOdbcSchemaReader( rows, owner, dsInfo );
}
开发者ID:johanvdw,项目名称:fdo-git-mirror,代码行数:10,代码来源:Mgr.cpp


示例20: GetDatabase

bool Query::execute(const std::string& sql)
{		// query, no result
	m_last_query = sql;
	if (odb && res)
	{
		GetDatabase().error(*this, "execute: query busy");
	}
	if (odb && !res)
	{
		if (mysql_real_query(&odb -> mysql,sql.c_str(),sql.length()))
		{
			GetDatabase().error(*this,"query failed");
		}
		else
		{
			return true;
		}
	}
	return false;
}
开发者ID:blackshadowwalker,项目名称:wx_kk_up,代码行数:20,代码来源:Query.cpp



注:本文中的GetDatabase函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ GetDatabaseEncoding函数代码示例发布时间:2022-05-30
下一篇:
C++ GetDataViewPeer函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap