OmniSciDB
a5dc49c757
|
#include "Shared/StringTransform.h"
#include "sqltypes.h"
#include <optional>
#include <ostream>
#include <string_view>
Go to the source code of this file.
Classes | |
class | DateTimeParser |
struct | DateTimeParser::DateTime |
Functions | |
template<SQLTypes SQL_TYPE> | |
std::optional< int64_t > | dateTimeParseOptional (std::string_view, unsigned const dim) |
template<> | |
std::optional< int64_t > | dateTimeParseOptional< kDATE > (std::string_view, unsigned const dim) |
template<> | |
std::optional< int64_t > | dateTimeParseOptional< kTIME > (std::string_view, unsigned const dim) |
template<> | |
std::optional< int64_t > | dateTimeParseOptional< kTIMESTAMP > (std::string_view, unsigned const dim) |
template<SQLTypes SQL_TYPE> | |
int64_t | dateTimeParse (std::string_view const s, unsigned const dim) |
int64_t dateTimeParse | ( | std::string_view const | s, |
unsigned const | dim | ||
) |
Definition at line 40 of file DateTimeParser.h.
References cat(), and toString().
std::optional<int64_t> dateTimeParseOptional | ( | std::string_view | , |
unsigned const | dim | ||
) |
std::optional<int64_t> dateTimeParseOptional< kDATE > | ( | std::string_view | , |
unsigned const | dim | ||
) |
Definition at line 190 of file DateTimeParser.cpp.
References DateTimeParser::Date, DateTimeParser::parse(), run_benchmark_import::parser, DateTimeParser::setFormatType(), DateTimeParser::Timezone, anonymous_namespace{DateTimeParser.cpp}::unixTime(), and DateTimeParser::unparsed().
Referenced by import_export::Detector::detect_sqltype().
std::optional<int64_t> dateTimeParseOptional< kTIME > | ( | std::string_view | , |
unsigned const | dim | ||
) |
Definition at line 135 of file DateTimeParser.cpp.
References DateTimeParser::parse(), run_benchmark_import::parser, DateTimeParser::setFormatType(), DateTimeParser::Time, DateTimeParser::Timezone, and DateTimeParser::unparsed().
Referenced by import_export::Detector::detect_sqltype().
std::optional<int64_t> dateTimeParseOptional< kTIMESTAMP > | ( | std::string_view | , |
unsigned const | dim | ||
) |
Definition at line 159 of file DateTimeParser.cpp.
References DateTimeParser::Date, DateTimeParser::parse(), run_benchmark_import::parser, DateTimeParser::setFormatType(), DateTimeParser::Time, DateTimeParser::Timezone, anonymous_namespace{DateTimeParser.cpp}::unixTime(), and DateTimeParser::unparsed().
Referenced by import_export::Detector::detect_sqltype().