Go to the SVN repository for this file.
49 virtual int Run(
void);
60unique_ptr<CDB_Connection> con(my_context.
Connect(
"msdev1",
65unique_ptr<CDB_LangCmd> lcmd
66(con->LangCmd(
"select name, crdate from sysobjects"));
69 while(lcmd->HasMoreResults()) {
70unique_ptr<CDB_Result>
r(lcmd->Result());
75<<
r->ItemName(0) <<
" \t\t\t" 76<<
r->ItemName(1) << endl
77<<
"-----------------------------------------------------" 80 while(
r->Fetch()) {
88<<
dbname.AsString() <<
' ' 105 int main(
intargc,
const char* argv[])
virtual ~COcbdDemoApp(void)
virtual int Run(void)
Run the application.
#define DBLB_INSTALL_DEFAULT()
Easy-to-use macro to install the default DBAPI service mapper.
int AppMain(int argc, const char *const *argv, const char *const *envp=0, EAppDiagStream diag=eDS_Default, const char *conf=NcbiEmptyCStr, const string &name=NcbiEmptyString)
Main function (entry point) for the NCBI application.
virtual bool HandleIt(CDB_Exception *ex)
Handle the exceptions resulting from a native API call, one-by-one.
CDB_Connection * Connect(const string &srv_name, const string &user_name, const string &passwd, TConnectionMode mode, bool reusable=false, const string &pool_name=kEmptyStr)
Create new connection to specified server (or service) within this context.
const CTime & Value(void) const
string AsString(const CTimeFormat &format=kEmptyStr, TSeconds out_tz=eCurrentTimeZone) const
Transform time to string.
char * dbname(DBPROCESS *dbproc)
Get name of current database.
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
int main(int argc, const char *argv[])
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4