csvzall 0.4.0
CSV command-line tool and emerging C++ library
Loading...
Searching...
No Matches
csv_loader.cpp File Reference
#include "csv_loader.hpp"
#include <SQLiteCpp/SQLiteCpp.h>
#include <csv.hpp>
#include <algorithm>
#include <cstdint>
#include <ostream>
#include <sstream>
#include <string>
#include <vector>

Namespaces

namespace  csvzall
 
namespace  csvzall::sqlite
 

Macros

#define CSVZALL_SQLITE_BIND_USE_STRING_COPY   1
 

Functions

std::string csvzall::sqlite::QuoteIdentifier (const std::string &name)
 
std::vector< SqliteColumnAffinity > csvzall::sqlite::InferColumnAffinities (csv::CSVReader &reader, const std::vector< std::string > &headers)
 
bool csvzall::sqlite::LoadCsvIntoTable (csv::CSVReader &reader, const std::vector< std::string > &headers, SQLite::Database &db, const std::string &table_name, const std::vector< SqliteColumnAffinity > &column_affinities, const CsvLoadOptions &options, const SqliteLogCallbacks &logger)
 
bool csvzall::sqlite::LoadCsvIntoTableWithInferredAffinities (const std::function< csv::CSVReader &()> &reader, const std::vector< std::string > &headers, SQLite::Database &db, const std::string &table_name, const std::function< bool()> &reset_reader, const CsvLoadOptions &options, const SqliteLogCallbacks &logger)
 
std::vector< std::string > csvzall::sqlite::StatementColumnNames (SQLite::Statement &statement)
 
std::vector< std::string > csvzall::sqlite::StatementRowValues (SQLite::Statement &statement)
 
std::uint64_t csvzall::sqlite::WriteStatementRowsAsCsv (SQLite::Statement &statement, const std::vector< std::string > &headers, std::ostream &output)
 

Macro Definition Documentation

◆ CSVZALL_SQLITE_BIND_USE_STRING_COPY

#define CSVZALL_SQLITE_BIND_USE_STRING_COPY   1

Variable Documentation

◆ needs_text

bool needs_text = false

◆ saw_numeric

bool saw_numeric = false