aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output/hub.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp/output/hub.d')
-rw-r--r--src/sdp/output/hub.d21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/sdp/output/hub.d b/src/sdp/output/hub.d
index b6caca9..47713f5 100644
--- a/src/sdp/output/hub.d
+++ b/src/sdp/output/hub.d
@@ -124,7 +124,14 @@ template outputHub() {
}
SQLiteHubDiscreteBuildTablesAndPopulate!()(doc_abstraction, doc_matters);
}
- if (doc_matters.opt.action.sqlite_update) {
+ if (doc_matters.opt.action.sqlite_insert
+ || doc_matters.opt.action.sqlite_update
+ ) {
+ if ((doc_matters.opt.action.verbose)) {
+ writeln("sqlite processing... ");
+ }
+ SQLiteHubBuildTablesAndPopulate!()(doc_abstraction, doc_matters);
+ } else if (doc_matters.opt.action.sqlite_delete) {
if ((doc_matters.opt.action.verbose)) {
writeln("sqlite processing... ");
}
@@ -148,17 +155,17 @@ template outputHubOp() {
void outputHubOp(E,O)(E env, O opt_action) {
mixin SiSUoutputRgxInit;
static auto rgx = Rgx();
- if ((opt_action.sqlite_create)) {
+ if ((opt_action.sqlite_db_drop)) {
if ((opt_action.verbose)) {
- writeln("sqlite create table... ");
+ writeln("sqlite drop db... ");
}
- SQLiteTablesCreate!()(env, opt_action);
+ SQLiteDbDrop!()(opt_action);
}
- if ((opt_action.sqlite_drop)) {
+ if ((opt_action.sqlite_db_create)) {
if ((opt_action.verbose)) {
- writeln("sqlite drop table... ");
+ writeln("sqlite create table... ");
}
- SQLiteTablesDrop!()();
+ SQLiteTablesCreate!()(env, opt_action);
}
}
}