A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/lang__query_8cpp_source.html below:

NCBI C++ ToolKit: src/dbapi/driver/samples/lang_query.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

67  "SQL statement to execute"

,

80  query

= args[

"Q"

].AsString();

85

cout <<

"query is on ctdin"

<< endl;

87  while

( !cin.eof() ) {

95  query

=

"exec sp_who"

;

100

cout <<

"--------------------------------------------" 101

<<

"----------------------------" 115 int main

(

int

argc,

char

* argv[])

const string & GetServerName(void) const

Return current server name.

const string & GetDriverName(void) const

Return current driver name.

void ShowResults(const string &query)

Delete table if it exists ShowResults is printing resuts on screen.

virtual void InitSample(CArgDescriptions &arg_desc)

Override these 3 to suit your test's needs.

virtual int RunSample(void)

virtual ~CLangQueryApp(void)

virtual const CArgs & GetArgs(void) const

Get parsed command line arguments.

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.

void AddOptionalKey(const string &name, const string &synopsis, const string &comment, EType type, TFlags flags=0)

Add description for optional key without default value.

@ eString

An arbitrary string.

static CDB_UserHandler & GetDefault(void)

virtual bool HandleIt(CDB_Exception *ex)=0

Handle the exceptions resulting from a native API call, one-by-one.

int main(int argc, 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