这篇教程C++ GetDatabase函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetDatabase函数的典型用法代码示例。如果您正苦于以下问题:C++ GetDatabase函数的具体用法?C++ GetDatabase怎么用?C++ GetDatabase使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetDatabase函数的23个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: wxTbool 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,
示例2: wxTbool 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,
示例3: GetDatabasebool pgDatabaseObjCollection::CanCreate(){ if (IsCollectionForType(PGM_CATALOG)) return false; return GetDatabase()->GetCreatePrivilege();}
开发者ID:KrisShannon,项目名称:pgadmin3,代码行数:7,
示例4: wxTbool 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,
示例5: wxTbool 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,
示例6: GetDatabasebool 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,
示例7: wxTbool 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,
示例8: wxTbool 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,
示例9: wxTvoid pgView::RefreshMatView(bool concurrently){ wxString sql = wxT("REFRESH MATERIALIZED VIEW "); if (concurrently) sql += wxT("CONCURRENTLY "); sql += GetQuotedFullIdentifier(); GetDatabase()->ExecuteVoid(sql);}
开发者ID:FabianCollaguazo,项目名称:pgadmin3,代码行数:8,
示例10: SetTimervoid CDialogT3::Fresh(){ SetTimer(T3_MODEL,1000,NULL); GetDatabase(); ShowDialogData(); //Updatedatabase();}
开发者ID:JTheCoder1,项目名称:T3000_Building_Automation_System,代码行数:8,
示例11: wxTbool 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,
示例12: wxTbool 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,
示例13: GetDatabasebool 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,
示例14: wxTvoid 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,
示例15: wxTbool 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,
示例16: SetDbNamevoid 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,
示例17: StrToLonglong 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,
示例18: MockImapSessionMockImapSession& 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,
示例19: rdbi_vndr_infoFdoPtr<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,
示例20: GetDatabasebool 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,
示例21: GetDatabaseQuery::~Query(){ if (res) { GetDatabase().error(*this, "sqlite3_finalize in destructor"); sqlite3_finalize(res); } if (odb) { m_db.freedb(odb); }}
开发者ID:mehmehsomeone,项目名称:OpenRP,代码行数:12,
示例22: GetDatabasevoid CApplicationImpl::OpenDataFile(const CString& csFileName){ if (!IsDataFileOpened(csFileName)) { Database::IDataFile* pTempDataFile = GetDatabase()->OpenDataFile(csFileName); try { if (pTempDataFile->IsEmpty()) { CreateDefaultContent(pTempDataFile); } else { CheckContent(pTempDataFile); } CheckModules(pTempDataFile); if (!m_spDataFile.is_null()) { GetDatabase()->CloseDataFile(m_spDataFile.get()); } m_spDataFile = pTempDataFile; m_mru.AddToList(m_spDataFile->GetFileName()); m_mru.WriteToRegistry(GetOptionsPath(_T("Application"))); UpdateViews(UNM_FILE_OPENED, (WPARAM)m_spDataFile->GetFileName()); } catch(...) { // close new opened temp data file and throw exception up GetDatabase()->CloseDataFile(pTempDataFile); throw; } }}
开发者ID:mosunovpa,项目名称:Projects,代码行数:37,
示例23: wxTvoid pgTrigger::SetEnabled(ctlTree *browser, const bool b){ if (GetQuotedFullTable().Len() > 0 && ((enabled && !b) || (!enabled && b))) { wxString sql = wxT("ALTER TABLE ") + GetQuotedFullTable() + wxT(" "); if (enabled && !b) sql += wxT("DISABLE"); else if (!enabled && b) sql += wxT("ENABLE"); sql += wxT(" TRIGGER ") + GetQuotedIdentifier(); GetDatabase()->ExecuteVoid(sql); } enabled = b; UpdateIcon(browser);}
开发者ID:zr40,项目名称:pgadmin3-light,代码行数:15,
注:本文中的GetDatabase函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ GetDatabaseEncoding函数代码示例 C++ GetDataViewPeer函数代码示例 |