Go to the SVN repository for this file.
47 #include "../dbapi_sample_base.hpp" 90unique_ptr<CDB_LangCmd> set_cmd;
97set_cmd.reset(
GetConnection().LangCmd(
"set textsize 1000000"));
100 while(set_cmd->HasMoreResults()) {
101unique_ptr<CDB_Result>
r(set_cmd->Result());
113pTxt.
Append(
"This is a test string.");
116bcp->Bind(0, &int_val);
117bcp->Bind(1, &fl_val);
118bcp->Bind(2, &date_val);
119bcp->Bind(3, &str_val);
124fl_val = float(
i+ 0.999);
125date_val = date_val.
Value();
134bcp->CompleteBatch();
161 int main(
intargc,
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