aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_out/sqlite.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2022-02-21 12:48:35 -0500
committerRalph Amissah <ralph.amissah@gmail.com>2022-02-21 14:05:24 -0500
commit8757dfd0fd175698b2bdf61ae49875080b8e1612 (patch)
treef3afdbc0bfb2902b4ba826e90e67c7cac1641307 /src/doc_reform/io_out/sqlite.d
parentcgi search housekeeping, sync & remove redundancy (diff)
debug flags, narrow purpose
Diffstat (limited to 'src/doc_reform/io_out/sqlite.d')
-rw-r--r--src/doc_reform/io_out/sqlite.d38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/doc_reform/io_out/sqlite.d b/src/doc_reform/io_out/sqlite.d
index f79a66e..3acd39e 100644
--- a/src/doc_reform/io_out/sqlite.d
+++ b/src/doc_reform/io_out/sqlite.d
@@ -172,7 +172,7 @@ template SQLiteDbRun() {
writeln("ERROR SQLite : ", ex);
}
{ /+ debug +/
- if (opt_action.debug_do
+ if (opt_action.debug_do_sqlite
&& opt_action.verbose) {
writeln(note);
if (opt_action.very_verbose) {
@@ -221,7 +221,7 @@ template SQLiteFormatAndLoadObject() {
_txt ~= _urls;
}
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
writeln(_txt, "\n");
}
@@ -265,7 +265,7 @@ template SQLiteFormatAndLoadObject() {
string _urls;
string _txt = _html_font_face(_html_special_characters(obj.text));
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
writeln(_txt, "\n");
}
@@ -755,7 +755,7 @@ template SQLiteFormatAndLoadObject() {
"html": html_heading(doc_matters, obj)
];
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
debug(sql_txt) {
writeln(obj_txt["text"]);
@@ -778,7 +778,7 @@ template SQLiteFormatAndLoadObject() {
"html": html_para(doc_matters, obj)
];
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
debug(sql_txt) {
writeln(obj_txt["text"]);
@@ -801,7 +801,7 @@ template SQLiteFormatAndLoadObject() {
"html": html_quote(doc_matters, obj)
];
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
debug(sql_txt) {
writeln(obj_txt["text"]);
@@ -824,7 +824,7 @@ template SQLiteFormatAndLoadObject() {
"html": html_group(doc_matters, obj)
];
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
debug(sql_txt) {
writeln(obj_txt["text"]);
@@ -847,7 +847,7 @@ template SQLiteFormatAndLoadObject() {
"html": html_block(doc_matters, obj)
];
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
debug(sql_txt) {
writeln(obj_txt["text"]);
@@ -870,7 +870,7 @@ template SQLiteFormatAndLoadObject() {
"html": html_verse(doc_matters, obj)
];
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
debug(sql_txt) {
writeln(obj_txt["text"]);
@@ -893,7 +893,7 @@ template SQLiteFormatAndLoadObject() {
"html": html_code(obj)
];
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
debug(sql_txt) {
writeln(obj_txt["text"]);
@@ -916,7 +916,7 @@ template SQLiteFormatAndLoadObject() {
"html": html_table(doc_matters, obj)
];
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
debug(sql_txt) {
writeln(obj_txt["text"]);
@@ -1297,7 +1297,7 @@ template SQLiteInsertDocObjectsLoop() {
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
@@ -1307,7 +1307,7 @@ template SQLiteInsertDocObjectsLoop() {
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_type);
}
@@ -1332,7 +1332,7 @@ template SQLiteInsertDocObjectsLoop() {
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
@@ -1364,7 +1364,7 @@ template SQLiteInsertDocObjectsLoop() {
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
@@ -1374,7 +1374,7 @@ template SQLiteInsertDocObjectsLoop() {
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_type);
}
@@ -1404,7 +1404,7 @@ template SQLiteInsertDocObjectsLoop() {
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);
}
@@ -1414,7 +1414,7 @@ template SQLiteInsertDocObjectsLoop() {
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_type);
}
@@ -1426,7 +1426,7 @@ template SQLiteInsertDocObjectsLoop() {
break;
default:
{ /+ debug +/
- if (doc_matters.opt.action.debug_do
+ if (doc_matters.opt.action.debug_do_sqlite
&& doc_matters.opt.action.verbose) {
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_of_part); // check where empty value could come from
writeln(__FILE__, ":", __LINE__, ": ", obj.metainfo.is_a);