You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (strcmp("UNSIGNED BIG INT", str) == 0 || strcmp("UBIGINT", str) == 0)
1071
1071
return"UBigint";
1072
1072
if (strcmp("DATE", str) == 0)
1073
1073
return"Date";
1074
1074
if (strcmp("DATETIME", str) == 0)
1075
1075
return"Datetime";
1076
-
if (str_type.find("NUMERIC") == 0)
1076
+
if (str_type.find("NUMERIC") == 0 || str_type.find("NUMBER") == 0)
1077
1077
return"Numeric";
1078
1078
if (str_type.find("DECIMAL") == 0)
1079
1079
return"Decimal";
@@ -1153,6 +1153,22 @@ namespace sqlite3pp
1153
1153
staticconstchar TopHeaderCommnetsPrt1[] = "/* This file was automatically generated using [Sqlite3pp_EZ].\nSqlite3pp_EZ Copyright (C) 2025 David Maisonave (http::\\www.axter.com)";
1154
1154
staticconstchar TopHeaderCommnetsPrt2[] = "For more details see https://github.com/David-Maisonave/sqlite3pp_EZ\n*/";
// These constructors are only useful if method setData is created.
1429
-
myfile << "\t" << ClassName << "() {}"; // Allow default constructor to still work
1445
+
myfile << "\t" << GetValidFuncName(ClassName) << "() {}"; // Allow default constructor to still work
1430
1446
if (!m_options.m.exclude_comments)
1431
1447
myfile << " // Default constructor";
1432
1448
myfile << std::endl;
1433
-
myfile << "\ttemplate <class T> " << ClassName << "(const T &t) { setData(t); }"; // This constructor allows data transfer from different tables/views having same data types and column names
1449
+
myfile << "\ttemplate <class T> " << GetValidFuncName(ClassName) << "(const T &t) { setData(t); }"; // This constructor allows data transfer from different tables/views having same data types and column names
1434
1450
if (!m_options.m.exclude_comments)
1435
1451
myfile << " // Allows data input from different (or same) tables/views having the same data types and column names";
1436
1452
myfile << std::endl;
@@ -1444,7 +1460,7 @@ namespace sqlite3pp
1444
1460
// Create getColumnNames member function. Needed for sqlite3pp::Table template class
// Create setData member function. Used to transfer data from different tables/views having same data types and column names
1474
1490
myfile << "\ttemplate <class T> void setData(const T &t) // Used to transfer data from different tables/views having same data types and column names\n\t{" << std::endl;
const std::string OperatorStreamComment1 = "/* sqlite3pp::TableOStream container interface.\n\tFunctions OStream(), operator<<(), and Delimiter() are required when using the sqlite3pp::TableOStream container.\n\tExample Usage:\t\t(Using sqlite3pp::TableOStream container)\n\t\t\tTableOStream<" + ClassName + "> tbl(DbFileNameArg(\"myDatabase.db\"));\n\t\t\ttbl.setDelimit(\"|\"); // Change delimiter\n\t\t\tstd::cout << tbl; // Send data to screen with the changed delimiter\n\n\t\t\tstd::ofstream ofs (\"data.csv\", std::ofstream::out);\n\t\t\ttbl.setDelimit(\",\"); // Change delimiter\n\t\t\tofs << tbl; // Write data to a CSV file using the changed \",\" delimiter.\n\n\t\t\ttbl.out(std::cout); // Send data to screen using out() member function.\n\tTo exclude TableOStream interface, set exclude_ostream_operator to true when creating this class using SQLiteClassBuilder.\n\t*/\n";
1523
+
const std::string OperatorStreamComment1 = "/* sqlite3pp::TableOStream container interface.\n\tFunctions OStream(), operator<<(), and Delimiter() are required when using the sqlite3pp::TableOStream container.\n\tExample Usage:\t\t(Using sqlite3pp::TableOStream container)\n\t\t\tTableOStream<" + GetValidFuncName(ClassName) + "> tbl(DbFileNameArg(\"myDatabase.db\"));\n\t\t\ttbl.setDelimit(\"|\"); // Change delimiter\n\t\t\tstd::cout << tbl; // Send data to screen with the changed delimiter\n\n\t\t\tstd::ofstream ofs (\"data.csv\", std::ofstream::out);\n\t\t\ttbl.setDelimit(\",\"); // Change delimiter\n\t\t\tofs << tbl; // Write data to a CSV file using the changed \",\" delimiter.\n\n\t\t\ttbl.out(std::cout); // Send data to screen using out() member function.\n\tTo exclude TableOStream interface, set exclude_ostream_operator to true when creating this class using SQLiteClassBuilder.\n\t*/\n";
0 commit comments