Difference between revisions of "SME Server db property naming convention"
From SME Server
Jump to navigationJump to search(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
The db Property naming convention is as follows: | The db Property naming convention is as follows: | ||
− | * Single property names are always in ''lowercase' e.g. | + | * '''Single property names are always in ''lowercase' e.g.''' |
db configuration sshd setprop ''access'' private | db configuration sshd setprop ''access'' private | ||
− | where '''access''' is completely in lowercase | + | where '''access''' is a single string and completely in lowercase |
− | * Composite property names | + | * '''Composite property names have ''capitalized'' first letter per word of the composite property name e.g.''' |
db configuration sshd setprop ''PermitRootLogin'' yes | db configuration sshd setprop ''PermitRootLogin'' yes | ||
− | where '''PermitRootLogin''' is | + | where '''PermitRootLogin''' is a composite string and have a capitalized first letter per composite word. |
+ | |||
+ | |||
+ | * '''Composite property names that include abbreviations have capitalized abbreviations e.g.''' | ||
+ | db configuration sshd setprop ''TCPPort'' 22 | ||
+ | where '''TCPPort''' is a composite string with capitalized abbreviation and capitalized first letter per composite word. |
Latest revision as of 18:50, 28 December 2014
The db Property naming convention is as follows:
- Single property names are always in lowercase' e.g.
db configuration sshd setprop access private
where access is a single string and completely in lowercase
- Composite property names have capitalized first letter per word of the composite property name e.g.
db configuration sshd setprop PermitRootLogin yes
where PermitRootLogin is a composite string and have a capitalized first letter per composite word.
- Composite property names that include abbreviations have capitalized abbreviations e.g.
db configuration sshd setprop TCPPort 22
where TCPPort is a composite string with capitalized abbreviation and capitalized first letter per composite word.