IODA Bundle
odc::tool::SQLTool Class Reference

#include <SQLTool.h>

Inheritance diagram for odc::tool::SQLTool:
[legend]
Collaboration diagram for odc::tool::SQLTool:
[legend]

Public Member Functions

 SQLTool (int argc, char **argv)
 
virtual ~SQLTool ()
 
virtual void run ()
 
- Public Member Functions inherited from odc::tool::Tool
virtual ~Tool ()
 
std::string name ()
 
void name (const std::string &s)
 
- Public Member Functions inherited from odc::tool::CommandLineParser
 CommandLineParser (int argc, char **argv)
 
 CommandLineParser (const CommandLineParser &)
 
CommandLineParseroperator= (const CommandLineParser &)
 
virtual ~CommandLineParser ()
 
void registerOptionWithArgument (const std::string &)
 
const std::vector< std::string > parameters ()
 
std::string parameters (size_t i)
 
bool optionIsSet (const std::string &)
 
template<typename T >
optionArgument (const std::string &, T defaultValue)
 
int argc ()
 
std::string argv (int i)
 
char ** argv ()
 

Static Public Member Functions

static void help (std::ostream &o)
 
static void usage (const std::string &name, std::ostream &o)
 
- Static Public Member Functions inherited from odc::tool::Tool
static void registerTools ()
 
- Static Public Member Functions inherited from odc::StringTool
static std::string readFile (const eckit::PathName fileName, bool logging=false)
 
static std::vector< std::string > readLines (const eckit::PathName fileName, bool logging=false)
 
static void trimInPlace (std::string &)
 
static bool match (const std::string &regex, const std::string &)
 
static bool matchAny (const std::vector< std::string > &regs, const std::string &)
 
static bool check (const std::string &, ctypeFun)
 
static bool isInQuotes (const std::string &)
 
static std::string unQuote (const std::string &)
 
static double cast_as_double (const std::string &)
 
static std::string double_as_string (double)
 
static std::string int_as_double2string (double)
 
static int shell (std::string cmd, const eckit::CodeLocation &where, bool assertSuccess=true)
 
static double translate (const std::string &v)
 
static std::string valueAsString (double, api::ColumnType)
 
static std::string patchTimeForMars (const std::string &v)
 
static bool isSelectStatement (const std::string &)
 

Private Attributes

std::unique_ptr< odc::sql::SQLOutputConfigsqlOutputConfig_
 
std::string inputFile_
 
eckit::Offset offset_
 
eckit::Length length_
 

Additional Inherited Members

- Protected Member Functions inherited from odc::tool::Tool
 Tool (int argc, char **argv)
 
 Tool (const CommandLineParser &)
 

Detailed Description

Definition at line 41 of file SQLTool.h.

Constructor & Destructor Documentation

◆ SQLTool()

odc::tool::SQLTool::SQLTool ( int  argc,
char **  argv 
)

Definition at line 39 of file SQLTool.cc.

Here is the call graph for this function:

◆ ~SQLTool()

odc::tool::SQLTool::~SQLTool ( )
virtual

Definition at line 82 of file SQLTool.cc.

Member Function Documentation

◆ help()

static void odc::tool::SQLTool::help ( std::ostream &  o)
inlinestatic

Definition at line 49 of file SQLTool.h.

◆ run()

void odc::tool::SQLTool::run ( )
virtual

parser.parseString(session, sql, &fh, config);

Implements odc::tool::Tool.

Definition at line 84 of file SQLTool.cc.

Here is the call graph for this function:

◆ usage()

static void odc::tool::SQLTool::usage ( const std::string &  name,
std::ostream &  o 
)
inlinestatic

Definition at line 50 of file SQLTool.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ inputFile_

std::string odc::tool::SQLTool::inputFile_
private

Definition at line 73 of file SQLTool.h.

◆ length_

eckit::Length odc::tool::SQLTool::length_
private

Definition at line 75 of file SQLTool.h.

◆ offset_

eckit::Offset odc::tool::SQLTool::offset_
private

Definition at line 74 of file SQLTool.h.

◆ sqlOutputConfig_

std::unique_ptr<odc::sql::SQLOutputConfig> odc::tool::SQLTool::sqlOutputConfig_
private

Definition at line 71 of file SQLTool.h.


The documentation for this class was generated from the following files: