mirror of
https://github.com/cldellow/sqlite-parquet-vtable.git
synced 2025-12-22 06:33:29 +00:00
add support for windows system
This commit is contained in:
25
parquet-windows/parquet_table.h
Normal file
25
parquet-windows/parquet_table.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef PARQUET_TABLE_H
|
||||
#define PARQUET_TABLE_H
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include "parquet/api/reader.h"
|
||||
|
||||
class ParquetTable {
|
||||
std::string file;
|
||||
std::string tableName;
|
||||
std::vector<std::string> columnNames;
|
||||
std::shared_ptr<parquet::FileMetaData> metadata;
|
||||
|
||||
|
||||
public:
|
||||
ParquetTable(std::string file, std::string tableName);
|
||||
std::string CreateStatement();
|
||||
std::string columnName(int idx);
|
||||
unsigned int getNumColumns();
|
||||
std::shared_ptr<parquet::FileMetaData> getMetadata();
|
||||
const std::string& getFile();
|
||||
const std::string& getTableName();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user