diff options
author | Ralph Amissah <ralph@amissah.com> | 2017-10-17 13:36:41 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:14 -0400 |
commit | 2a359a57ce021ba6ddf7232b3f3d79726d4738ba (patch) | |
tree | b9e9c11ecf4bb0cc3dab7ea94454f868d69792bf /src/sdp/output/paths_output.d | |
parent | meta_abstraction, a renaming, minor (diff) |
sqlite document db discrete & collection, started
- discrete document , drop & recreate document
--sqlite-disctrete
- document collection
- create tables
--sqlite-create
- populate db with specified document
--sqlite-update
Diffstat (limited to 'src/sdp/output/paths_output.d')
-rw-r--r-- | src/sdp/output/paths_output.d | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/sdp/output/paths_output.d b/src/sdp/output/paths_output.d index ae4d4ac..d66ada8 100644 --- a/src/sdp/output/paths_output.d +++ b/src/sdp/output/paths_output.d @@ -295,6 +295,32 @@ template SiSUpathsEPUB() { return _PathsStruct(); } } +template SiSUpathsSQLiteDiscrete() { + mixin SiSUrgxInit; + static auto rgx = Rgx(); + auto SiSUpathsSQLiteDiscrete(Ps,Lng)( + Ps src_pth_info, + Lng lng, + ) { + auto out_pth = SiSUoutPaths!()(src_pth_info, lng); + string base_dir = "sqlite"; + struct _PathsStruct { + string base_filename(string fn_src) { + return fn_src.baseName.stripExtension; + } + string base() { + return (out_pth.output_base).chainPath(base_dir).array; + } + string seg(string fn_src) { + return base.chainPath(base_filename(fn_src)).array; + } + string sqlite_file(string fn_src) { + return base.chainPath(base_filename(fn_src) ~ ".sqlite").array; + } + } + return _PathsStruct(); + } +} template SiSUpathsSQLite() { mixin SiSUrgxInit; static auto rgx = Rgx(); |