csvzall 0.4.0
CSV command-line tool and emerging C++ library
Loading...
Searching...
No Matches
csvzall::postgres::SchemaInference Class Reference

#include <schema_inference.hpp>

Classes

struct  ColumnStats
 

Public Member Functions

 SchemaInference (const std::vector< std::string > &headers)
 
void observe_row (const csv::CSVRow &row)
 
void observe_row (const std::vector< std::string > &row)
 
std::vector< InferredColumn > finalize ()
 
bool has_enough_samples () const
 

Static Public Member Functions

static std::vector< InferredColumn > finalize_stats (const std::vector< ColumnStats > &stats)
 
static void observe_type (ColumnStats &stats, csv::DataType type)
 

Constructor & Destructor Documentation

◆ SchemaInference()

csvzall::postgres::SchemaInference::SchemaInference ( const std::vector< std::string > &  headers)
explicit

Member Function Documentation

◆ finalize()

std::vector< InferredColumn > csvzall::postgres::SchemaInference::finalize ( )

◆ finalize_stats()

std::vector< InferredColumn > csvzall::postgres::SchemaInference::finalize_stats ( const std::vector< ColumnStats > &  stats)
static

◆ has_enough_samples()

bool csvzall::postgres::SchemaInference::has_enough_samples ( ) const
inline

◆ observe_row() [1/2]

void csvzall::postgres::SchemaInference::observe_row ( const csv::CSVRow &  row)

◆ observe_row() [2/2]

void csvzall::postgres::SchemaInference::observe_row ( const std::vector< std::string > &  row)

◆ observe_type()

void csvzall::postgres::SchemaInference::observe_type ( ColumnStats &  stats,
csv::DataType  type 
)
static

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