24 using namespace eckit;
37 eckit::sql::BitfieldDef bfDef;
38 bfDef.first.push_back(
"x");
39 bfDef.second.push_back(1);
40 bfDef.first.push_back(
"y");
41 bfDef.second.push_back(2);
47 for (
size_t i = 1;
i <= 2;
i++)
58 const string fileName =
"TestAtTableInTheOutput_A.odb";
59 string sql =
"select lat,lon,obsvalue,bf into \"TestAtTableInTheOutput_B.odb\"";
60 sql +=
" from \"" + fileName +
"\" ;";
85 odc::Comparator().
compare(it1, end1, it2, end2,
"TestAtTableInTheOutput_A.odb",
"TestAtTableInTheOutput_B.odb");
static void compareFiles()
static void selectIntoSecondFile()
#define SIMPLE_TEST(name)
bool compare(T1 &it1, const T1 &end1, T2 &it2, const T2 &end2, const std::string &desc1, const std::string &desc2)
const iterator end() const
void setNumberOfColumns(size_t n)
int setColumn(size_t index, const std::string &name, api::ColumnType type)
int setBitfieldColumn(size_t index, const std::string &name, api::ColumnType type, eckit::sql::BitfieldDef b)