We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feadb0e commit d62bda8Copy full SHA for d62bda8
src/file.hdb.q
@@ -0,0 +1,18 @@
1
+// File Manipulation for HDBs
2
+// Copyright (c) 2021 Jaskirat Rajasansir
3
+
4
5
+/ Wrapper for '.Q.par' to deal with relative paths for a segmented DB configuration in the 'par.txt' file
6
+/ @param hdbRoot (FolderPath) The HDB root to run against
7
+/ @param partVal (Date|Month|Year|Long) The specific partition to lookup with 'par.txt' if present
8
+/ @returns (FolderPath) The expected location of the partition within the HDB
9
+.file.hdb.qPar:{[hdbRoot; partVal]
10
+ par:.Q.par[hdbRoot; partVal; `];
11
+ strPar:1_ string par;
12
13
+ if[not "/" = first strPar;
14
+ strPar:string[hdbRoot],"/",strPar;
15
+ ];
16
17
+ :hsym `$strPar;
18
+ };
0 commit comments