aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/output_sqlite.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/output_sqlite.org')
-rw-r--r--org/output_sqlite.org24
1 files changed, 14 insertions, 10 deletions
diff --git a/org/output_sqlite.org b/org/output_sqlite.org
index eeff4f1..11a853a 100644
--- a/org/output_sqlite.org
+++ b/org/output_sqlite.org
@@ -46,7 +46,9 @@ template SQLiteHubBuildTablesAndPopulate() {
I doc_matters,
) {
<<sqlite_db_statement_composite_collection>>
- writeln(" ", pth_sqlite.sqlite_file);
+ if (!(doc_matters.opt.action.quiet)) {
+ writeln(" ", pth_sqlite.sqlite_file);
+ }
}
}
SQLiteDbStatementComposite!()(db, doc_abstraction, doc_matters);
@@ -72,7 +74,9 @@ template SQLiteHubDiscreteBuildTablesAndPopulate() {
I doc_matters,
) {
<<sqlite_db_statement_composite_discrete>>
- writeln(" ", pth_sqlite.sqlite_file(doc_matters.src.filename));
+ if (!(doc_matters.opt.action.quiet)) {
+ writeln(" ", pth_sqlite.sqlite_file(doc_matters.src.filename));
+ }
}
}
SQLiteDiscreteDbStatementComposite!()(db, doc_abstraction, doc_matters);
@@ -229,9 +233,9 @@ template SQLiteTablesCreate() {
}
if (opt_action.sqlite_db_create) {
string _db_statement;
- auto pth_sqlite = SiSUpathsSQLite!()(opt_action.sqlite_filename, opt_action.output_dir_set); // ISSUE
+ auto pth_sqlite = SiSUpathsSQLite!()(opt_action.sqlite_filename, opt_action.output_dir_set);
pth_sqlite.base.mkdirRecurse;
- auto db = Database(pth_sqlite.sqlite_file); // ISSUE
+ auto db = Database(pth_sqlite.sqlite_file);
{
_db_statement ~= SQLiteTablesReCreate!()();
}
@@ -248,7 +252,7 @@ template SQLiteDbDrop() {
void SQLiteDbDrop(O)(O opt_action) {
writeln("db drop");
if ((opt_action.sqlite_db_drop)) {
- auto pth_sqlite = SiSUpathsSQLite!()(opt_action.sqlite_filename, opt_action.output_dir_set); // ISSUE
+ auto pth_sqlite = SiSUpathsSQLite!()(opt_action.sqlite_filename, opt_action.output_dir_set);
writeln("remove(", pth_sqlite.sqlite_file, ")");
try {
remove(pth_sqlite.sqlite_file);
@@ -968,12 +972,12 @@ foreach (part; doc_matters.xml.keys_seq.sql) {
break;
}
break;
- case "body": // assert(part == "body", part); // TODO broken
+ case "body": // assert(part == "body", part);
switch (obj.metainfo.is_of_type) {
case "para":
switch (obj.metainfo.is_a) {
case "heading":
- debug (asserts) { // TODO consider and fix or remove
+ debug (asserts) {
if (part != "body") {
writeln(__LINE__, ": ", obj.text);
}
@@ -1071,7 +1075,7 @@ foreach (part; doc_matters.xml.keys_seq.sql) {
break;
}
if (obj.metainfo.is_a == "heading") {
- if ((doc_matters.opt.action.verbose)) {
+ if ((doc_matters.opt.action.very_verbose)) {
writeln(
"markup: ", obj.metainfo.heading_lev_markup,
"> ", obj.metainfo.dom_structure_markedup_tags_status,
@@ -1127,8 +1131,8 @@ DROP TABLE IF EXISTS urls;
#+BEGIN_SRC sql
CREATE TABLE metadata_and_text (
uid VARCHAR(256) UNIQUE, /* filename, language char, pod/txt (decide on delimiter [,;:/]) */
- src_composite_id_per_txt VARCHAR(256) NOT NULL, /* UNIQUE, /* z pod name if any + src filename + language code */
- src_composite_id_per_pod VARCHAR(256) NOT NULL, /* z pod name if any + src filename */
+ src_composite_id_per_txt VARCHAR(256) NOT NULL, /* UNIQUE, /* z pod name if any + src filename + language code */
+ src_composite_id_per_pod VARCHAR(256) NOT NULL, /* z pod name if any + src filename */
title VARCHAR(800) NOT NULL,
title_main VARCHAR(400) NOT NULL,
title_sub VARCHAR(400) NULL,