aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/output_sqlite.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2018-09-10 18:15:02 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-04-10 15:14:15 -0400
commite95c49b76f4ac7bf72c383ee43a0567dfcbf1603 (patch)
treeb3aec9058f69be0047bb526052f8deefb5d97463 /org/output_sqlite.org
parentmaker, subprojects arrange, minor (diff)
0.1.0 renamed doc-reform, doc_reform (& rad)
- from sdp
Diffstat (limited to 'org/output_sqlite.org')
-rw-r--r--org/output_sqlite.org37
1 files changed, 18 insertions, 19 deletions
diff --git a/org/output_sqlite.org b/org/output_sqlite.org
index 49cd3f6..fc22089 100644
--- a/org/output_sqlite.org
+++ b/org/output_sqlite.org
@@ -1,8 +1,8 @@
-#+TITLE: sdp output sqlite
+#+TITLE: doc_reform output sqlite
+#+DESCRIPTION: documents - structuring, publishing in multiple formats & search
+#+FILETAGS: :doc_reform:output:sqlite:
#+AUTHOR: Ralph Amissah
#+EMAIL: [[mailto:ralph.amissah@gmail.com][ralph.amissah@gmail.com]]
-#+DESCRIPTION: documents - structuring, publishing in multiple formats & search
-#+KEYWORDS
#+LANGUAGE: en
#+STARTUP: indent content
#+OPTIONS: H:3 num:nil toc:t \n:nil @:t ::t |:t ^:nil _:nil -:t f:t *:t <:t
@@ -11,10 +11,9 @@
#+PROPERTY: header-args :padline no :exports code :noweb yes
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
-#+FILETAGS: :sdp:niu:output:
-#+TAGS: assert(a) class(c) debug(d) mixin(m) sdp(s) tangle(T) template(t) WEB(W) noexport(n)
+#+TAGS: assert(a) class(c) debug(d) mixin(m) doc_reform(s) tangle(T) template(t) WEB(W) noexport(n)
-- [[./sdp.org][sdp]] [[./][org/]]
+- [[./doc_reform.org][doc_reform]] [[./][org/]]
- [[./output_hub.org][output_hub]]
* sql
@@ -23,8 +22,8 @@
*** hub
**** collection
-#+BEGIN_SRC d :tangle ../src/sdp/output/sqlite.d
-module sdp.output.sqlite;
+#+BEGIN_SRC d :tangle ../src/doc_reform/output/sqlite.d
+module doc_reform.output.sqlite;
<<output_imports>>
import d2sqlite3;
import std.typecons : Nullable;
@@ -58,7 +57,7 @@ template SQLiteHubBuildTablesAndPopulate() {
**** discrete
-#+BEGIN_SRC d :tangle ../src/sdp/output/sqlite.d
+#+BEGIN_SRC d :tangle ../src/doc_reform/output/sqlite.d
template SQLiteHubDiscreteBuildTablesAndPopulate() {
void SQLiteHubDiscreteBuildTablesAndPopulate(D,I)(
D doc_abstraction,
@@ -86,7 +85,7 @@ template SQLiteHubDiscreteBuildTablesAndPopulate() {
*** db run
-#+BEGIN_SRC d :tangle ../src/sdp/output/sqlite.d
+#+BEGIN_SRC d :tangle ../src/doc_reform/output/sqlite.d
template SQLiteDbRun() {
void SQLiteDbRun(Db,St,O)(
Db db,
@@ -124,7 +123,7 @@ template SQLiteDbRun() {
*** munge
-#+BEGIN_SRC d :tangle ../src/sdp/output/sqlite.d
+#+BEGIN_SRC d :tangle ../src/doc_reform/output/sqlite.d
template SQLinsertDelimiter() {
auto SQLinsertDelimiter(string _txt) {
_txt = _txt
@@ -152,7 +151,7 @@ template SQLiteFormatAndLoadObject() {
*** sqlite instructions
**** create
-#+BEGIN_SRC d :tangle ../src/sdp/output/sqlite.d
+#+BEGIN_SRC d :tangle ../src/doc_reform/output/sqlite.d
template SQLiteTablesReCreate() {
string SQLiteTablesReCreate()() {
string _sql_instruct;
@@ -170,7 +169,7 @@ template SQLiteTablesReCreate() {
**** delete
-#+BEGIN_SRC d :tangle ../src/sdp/output/sqlite.d
+#+BEGIN_SRC d :tangle ../src/doc_reform/output/sqlite.d
template SQLiteDeleteDocument() {
string SQLiteDeleteDocument(I)(
I doc_matters,
@@ -183,7 +182,7 @@ template SQLiteDeleteDocument() {
**** insert
-#+BEGIN_SRC d :tangle ../src/sdp/output/sqlite.d
+#+BEGIN_SRC d :tangle ../src/doc_reform/output/sqlite.d
template SQLiteInsertMetadata() {
string SQLiteInsertMetadata(I)(
I doc_matters,
@@ -196,7 +195,7 @@ template SQLiteInsertMetadata() {
**** insert doc objects loop
-#+BEGIN_SRC d :tangle ../src/sdp/output/sqlite.d
+#+BEGIN_SRC d :tangle ../src/doc_reform/output/sqlite.d
template SQLiteInsertDocObjectsLoop() {
string SQLiteInsertDocObjectsLoop(D,I)(
D doc_abstraction,
@@ -214,7 +213,7 @@ template SQLiteInsertDocObjectsLoop() {
**** tables create
-#+BEGIN_SRC d :tangle ../src/sdp/output/sqlite.d
+#+BEGIN_SRC d :tangle ../src/doc_reform/output/sqlite.d
template SQLiteTablesCreate() {
void SQLiteTablesCreate(E,O)(E env, O opt_action) {
import d2sqlite3;
@@ -247,7 +246,7 @@ template SQLiteTablesCreate() {
**** tables drop
-#+BEGIN_SRC d :tangle ../src/sdp/output/sqlite.d
+#+BEGIN_SRC d :tangle ../src/doc_reform/output/sqlite.d
template SQLiteDbDrop() {
void SQLiteDbDrop(O)(O opt_action) {
writeln("db drop");
@@ -282,7 +281,7 @@ template SQLiteDbDrop() {
_db_statement ~= SQLiteDeleteDocument!()(doc_matters);
SQLiteDbRun!()(db, _db_statement, doc_matters.opt.action, "DELETE Document");
}
- if (doc_matters.opt.action.sqlite_update) { // sqlite_update is .opt.action sqlite_delete & sqlite_insert (set in sdp)
+ if (doc_matters.opt.action.sqlite_update) {
_db_statement ~= SQLiteDeleteDocument!()(doc_matters);
SQLiteDbRun!()(db, _db_statement, doc_matters.opt.action, "DELETE Document");
_db_statement ~= SQLiteInsertMetadata!()(doc_matters);
@@ -316,7 +315,7 @@ template SQLiteDbDrop() {
#+name: output_imports
#+BEGIN_SRC d
-import sdp.output;
+import doc_reform.output;
import
std.file,
std.conv : to;