You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#include "Table.h"
#include "TableBuilder.h"
namespace db { namespace migrations { namespace builder { class CreateTableBuilder;
CreateTableBuilder Table::create(std::string table_name) { return CreateTableBuilder{table_name}; }
AlterTableBuilder Table::alter(std::string table_name) { return AlterTableBuilder{table_name}; }
DropTableBuilder Table::drop(std::string table_name) { return DropTableBuilder{table_name}; }
std::string Table::str() const { return header + "\n" + body + "\n"; }
std::ostream &operator<<(std::ostream &os, const Table &t) { return os << t.header << std::endl << t.body << std::endl; } } } }
|