include/RelationalWriter.h
author František Kučera <franta-hg@frantovo.cz>
Sun, 22 Jul 2018 10:26:22 +0200
branchv_0
changeset 15 8fd6c4d44071
parent 14 733334eca89b
child 16 3613617d3076
permissions -rw-r--r--
use more TypeId enum

#pragma once

#include <string>
#include <iostream>
#include <vector>

#include "typedefs.h"
#include "TypeId.h"

namespace relpipe {
namespace writer {

class RelationalWriter {
public:

	virtual ~RelationalWriter() = default;

	virtual TypeId toTypeId(const string_t typeCode) = 0;

	virtual string_t toTypeCode(const TypeId typeId) = 0;

	virtual void startRelation(string_t name, std::vector<std::pair<string_t, TypeId>> attributes, boolean_t writeHeader) = 0;

	virtual void writeRecord(std::vector<string_t> attributes) = 0;

};

}
}