User Tools

Site Tools


dido:public:s_cli:05_contents:01_prt:04_dll:volume

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dido:public:s_cli:05_contents:01_prt:04_dll:volume [2021/05/01 21:44]
nick ↷ Page moved from dido:public:s_cli:05_contents:04_dll:volume to dido:public:s_cli:05_contents:01_prt:04_dll:volume
dido:public:s_cli:05_contents:01_prt:04_dll:volume [2021/06/15 13:55] (current)
nick
Line 1: Line 1:
-====== ​2.2.DEFINE VOLUME Command ​====== +====== 4.5 Volume ​====== 
-[[dido:​public:​s_cli:​05_contents:​04_dll:​start| Return to DidoDLL]]+[[dido:​public:​s_cli:​05_contents:01_prt:​04_dll:​start| Return to DidoDLL]]
  
  
 ===== Purpose ===== ===== Purpose =====
-[[dido:​public:​s_cli:​05_contents:​04_dll:​volume| Return to Top]]+[[dido:​public:​s_cli:​05_contents:01_prt:​04_dll:​volume| Return to Top]] 
 + 
 +The purpose of the DEFINE VOLUME command is to define a localized name mapping an actual path to a directory to a symbolic name. The symbolic name provides a logical name for use throughout the DIDO CLI. This helps with maintenance because the actual path is maintained in a single location. ​
  
 ===== Syntax ===== ===== Syntax =====
-[[dido:​public:​s_cli:​05_contents:​04_dll:​volume| Return to Top]]+[[dido:​public:​s_cli:​05_contents:01_prt:​04_dll:​volume| Return to Top]]
  
 <​code>​ <​code>​
 DEFINE VOLUME <​VolumeName>​ AS DEFINE VOLUME <​VolumeName>​ AS
-   PATH = <​DirectoryPath>;​+   PATH = <​DirectoryPath
 +   MODE = <​DirectoryPermissions>;
 </​code>​ </​code>​
  
 ==== Where ==== ==== Where ====
-[[dido:​public:​s_cli:​05_contents:​04_dll:​volume| Return to Top]]+[[dido:​public:​s_cli:​05_contents:01_prt:​04_dll:​volume| Return to Top]]
  
-  * **VolumeName** ​    ​::= +  * **VolumeName** ​          ​::= The symbolic name used to reference the volume throughout the DIDO CLI. 
-  * **DirectoryPath** ​ ::=+  * **DirectoryPath** ​       ::= The path to the directory associated with the volume. 
 +  * **DirectoryPermissions** ​::= The mode (i.e., permissions) associated with the volume (i.e., R, W, X). The default is RW.
  
 ==== Examples ==== ==== Examples ====
-[[dido:​public:​s_cli:​05_contents:​04_dll:​volume| Return to Top]]+[[dido:​public:​s_cli:​05_contents:01_prt:​04_dll:​volume| Return to Top]]
  
 <code sql | Examples of Defining Volume in DidoLL> <code sql | Examples of Defining Volume in DidoLL>
     DEFINE VOLUME config AS     DEFINE VOLUME config AS
-      path      = "/​etc/​myDidoRoot/";​+      path      = "/​etc/​myDidoRoot/​
 +      mode      = "RX";
     DEFINE VOLUME data AS     DEFINE VOLUME data AS
-      path      = "/​etc/​myDidoRoot/";​+      path      = "/​etc/​myDidoRoot/​
 +      mode      = "RW";
     DEFINE VOLUME wallet AS     DEFINE VOLUME wallet AS
       path      = "​~/​myWallet/";​       path      = "​~/​myWallet/";​
dido/public/s_cli/05_contents/01_prt/04_dll/volume.1619919843.txt.gz · Last modified: 2021/05/01 21:44 by nick