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
// Logging out as DEBUG because some views do return NULL value for the column type.
370
+
V_COUT(DEBUG, "Entered with DB type NULL value for column '" << colName << "' in table/view '" << tblVw << "'.\nGracefully continuing by returning default type '" << DefaultType << "'.");
348
371
return DefaultType;
349
372
}
350
373
char str[99] = { 0 };
@@ -364,6 +387,14 @@ namespace sqlite3pp
364
387
365
388
if (UseBaseTypes || m_options.m.use_basic_types_only)
366
389
{
390
+
// Only output detail once
391
+
staticbool HasLoggedDetails = false;
392
+
if (!HasLoggedDetails)
393
+
{
394
+
HasLoggedDetails = true;
395
+
V_COUT(DETAIL, "Only setting DB types to basic types due to compiler #define SQLITE3PP_CONVERT_TO_RESULTING_AFFINITY(" << UseBaseTypes << ") or input option use_basic_types_only(" << m_options.m.use_basic_types_only << ")");
staticconstchar TopHeaderCommnetsPrt1[] = "/* This file was automatically generated using [Sqlite3pp_EZ].\nSqlite3pp_EZ Copyright (C) 2021 David Maisonave (http::\\www.axter.com)";
470
520
staticconstchar TopHeaderCommnetsPrt2[] = "For more details see https://github.com/David-Maisonave/sqlite3pp_EZ\n*/";
Copy file name to clipboardExpand all lines: sqlite3pp_ez.h
+26-8Lines changed: 26 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,15 @@
32
32
33
33
namespacesqlite3pp
34
34
{
35
+
enum VerbosityLevels {
36
+
VerbosityLevels_NO_OUTPUT = 0
37
+
, VBLV_ERROR = 1// Prints out unexpected behavior which will cause program to fail
38
+
, VBLV_WARN = 2// Prints out unexpected behavior, but program can still continue.
39
+
, VBLV_INFO = 3// Prints out process information
40
+
, VBLV_DEBUG = 4// Prints out information mainly useful for debugging
41
+
, VBLV_DETAIL = 5// Prints out expected behavior
42
+
};
43
+
35
44
classsql_base
36
45
{
37
46
public:
@@ -94,11 +103,14 @@ namespace sqlite3pp
94
103
staticconstchar TableArg_PreExecuteArg[];
95
104
staticconstchar TableArg_WhereClauseArg[];
96
105
staticconstchar TableArg_DbFileNameArg[];
106
+
staticvoidSetVerbosityLevel(VerbosityLevels v);
107
+
static VerbosityLevels GetVerbosityLevel();
97
108
98
109
protected:
99
110
static sqlite3pp::database global_db; // To be used as global DB
100
111
staticbool bIsGlblDbOpen; // To be used as global DB
101
112
staticconstchar TableArg_ValueArg[];
113
+
static VerbosityLevels m_VerbosityLevels; // Default value VBLV_ERROR
102
114
};
103
115
104
116
@@ -379,11 +391,11 @@ namespace sqlite3pp
379
391
};
380
392
structHeaderOpt
381
393
{
382
-
std::string dest_folder; //Can be empty, but if folder is specified, it must end with "\\". Otherwise it will be treated as part of the file name.
383
-
std::string header_prefix; //Can be empty, or can specify a desired prefix for headers created.
384
-
std::string header_postfix; //Can be empty, or can specify a desired postfix for header created.
385
-
std::string file_type; // Default "h". Other options (hpp, hxx, class)
386
-
std::string header_include; // Default "sqlite3pp_ez.h". Other options (../SQLite3pp_ez.h)
394
+
std::string dest_folder; //Default: "SQL\\" Destination folder where headers are created. If drive letter is not included in the path, folder is treated as relative path.
395
+
std::string header_prefix; //Default: "sql_" Desired prefix for headers created.
396
+
std::string header_postfix; //Default: "" Desired postfix for header created.
bool exclude_comments; // If true, excludes comments and additional spaces.
396
408
bool exclude_table_interface; // If true, excludes sqlite3pp::Table interface functions ( getTableName, getColumnNames, and getStreamData), and excludes Miscellaneous function(s).
397
409
bool use_basic_types_only; // If true, only int, double, std::string, and std::wstring are used
398
-
bool exclude_main_hdr_example; // If true, excludes example code added to sql_All_Headers.h
410
+
bool exclude_main_hdr_example; // If true, excludes example code added to sql_Master_Header.h
399
411
bool exclude_comment_out_exampl;// If true, does NOT comment out example code
400
412
}; // Create a custom defined TblClassOptions variable, or used one of the SQLiteClassBuilder predefined types, or use the default type which is automatically set by the SQLiteClassBuilder constructor
0 commit comments