Column Store
SchemaLoader.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <iostream>
4 #include <pqxx/pqxx>
5 #include <string>
6 #include <unordered_map>
7 #include <vector>
8 
9 #include "SchemaExtractor.h"
10 #include "SchemaMetaData.h"
11 
12 namespace Parser {
13  class SchemaLoader {
16  pqxx::connection *conn;
17  void setup_database();
18  void create_tables();
19  void create_views();
20 
21  public:
22  SchemaLoader(string db_name, string username, string password,
24  };
25 }
Table.h
SchemaMetaData.h
Parser::SchemaMetaData
Definition: SchemaMetaData.h:14
Parser::SchemaLoader::create_tables
void create_tables()
Definition: SchemaLoader.cpp:39
Parser::SchemaLoader::username
string username
Definition: SchemaLoader.h:14
Parser
Definition: Column.h:6
Parser::SchemaLoader::db_name
string db_name
Definition: SchemaLoader.h:14
ColumnStore::DataType::STRING
@ STRING
Parser::SchemaLoader
Definition: SchemaLoader.h:13
Parser::SchemaLoader::create_views
void create_views()
Definition: SchemaLoader.cpp:87
SchemaExtractor.h
Parser::Projection
Definition: Projection.h:44
Parser::SchemaLoader::password
string password
Definition: SchemaLoader.h:14
Parser::SchemaLoader::SchemaLoader
SchemaLoader(string db_name, string username, string password, SchemaMetaData schema_meta_data)
Definition: SchemaLoader.cpp:9
Parser::SchemaLoader::schema_meta_data
SchemaMetaData schema_meta_data
Definition: SchemaLoader.h:15
SchemaLoader.h
ColumnStore::DataType::INT
@ INT
Parser::projection_column
Definition: Projection.h:27
Parser::Table
Definition: Table.h:25
Parser::SchemaLoader::conn
pqxx::connection * conn
Definition: SchemaLoader.h:16
Parser::SchemaLoader::setup_database
void setup_database()
Definition: SchemaLoader.cpp:34
Parser::foreign_key
Definition: ForeignKey.h:6
DataLoader.h
ColumnStore::DataType::FLOAT
@ FLOAT