Do bulk replace of stl types.

This commit is contained in:
jmsgrogan 2023-12-21 09:18:44 +00:00
parent 521486be62
commit c25a56ee19
531 changed files with 2274 additions and 2181 deletions

View file

@ -14,12 +14,12 @@ public:
VAR_CHAR255
};
using Entry = std::pair<std::string, Type>;
using Entry = std::pair<String, Type>;
std::string mName;
std::vector<Entry> mColumns;
String mName;
Vector<Entry> mColumns;
std::string toString(Type type) const
String toString(Type type) const
{
switch (type)
{
@ -32,9 +32,9 @@ public:
}
}
std::string getCreateQuery() const
String getCreateQuery() const
{
std::string query = "CREATE TABLE " + mName + " ( ";
String query = "CREATE TABLE " + mName + " ( ";
std::size_t count = 0;
for (const auto& column : mColumns)
{
@ -67,7 +67,7 @@ TEST_CASE(TestDatabaseManager, "database")
{"City", DbTable::Type::VAR_CHAR255}
};
std::string statement = table.getCreateQuery();
String statement = table.getCreateQuery();
db_manager.run(statement);
db_manager.onShutDown();