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/dbapi__bcp_8cpp_source.html below:

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

Go to the documentation of this file.

Go to the SVN repository for this file.

47 #include "../dbapi_sample_base.hpp" 90

unique_ptr<CDB_LangCmd> set_cmd;

97

set_cmd.reset(

GetConnection

().LangCmd(

"set textsize 1000000"

));

100  while

(set_cmd->HasMoreResults()) {

101

unique_ptr<CDB_Result>

r

(set_cmd->Result());

113

pTxt.

Append

(

"This is a test string."

);

116

bcp->Bind(0, &int_val);

117

bcp->Bind(1, &fl_val);

118

bcp->Bind(2, &date_val);

119

bcp->Bind(3, &str_val);

124

fl_val = float(

i

+ 0.999);

125

date_val = date_val.

Value

();

134

bcp->CompleteBatch();

161 int main

(

int

argc,

const char

* argv[])

string GetTableName(void) const

virtual ~CDbapiBcpApp(void)

virtual int RunSample(void)

void DeleteTable(const string &table_name)

void DeleteLostTables(void)

Delete tables which are lost after previous tests.

CDB_Connection & GetConnection(void)

Get connection created using server, username and password specified in the application command line.

void CreateTable(const string &table_name)

function CreateTable is creating table in the database

void ShowResults(const string &query)

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

int main(int argc, const char *argv[])

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.

static CDB_UserHandler & GetDefault(void)

virtual bool HandleIt(CDB_Exception *ex)=0

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

virtual size_t Append(const void *buff, size_t nof_bytes)

virtual bool MoveTo(size_t byte_number)

const CTime & Value(void) const

@ eCurrent

Use current time. See also CCurrentTime.

Defines the CNcbiApplication and CAppException classes for creating NCBI applications.

Defines command line argument related classes.

Defines unified interface to application:

double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)


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