Database
CLOUDFLOW uses MongoDB as a database to store all the assets. It can store locally, on one or more servers, or in a cloud. It has support for password protected MongoDB databases.
Database collections
MongoDB stores records in collections as JSON objects.
Example of a record in JSON
format:
{
"id" : "123",
"url" : "Filestores/DemoResources/demo files input/10_SnR_FoldingCarton/XML 7 designs in SnR.xml",
"path" : [
"Filestores",
"DemoResources",
"demo files input",
"10_SnR_FoldingCarton"]
}
A brief explanation on JSON syntax
- JSON objects are surrounded by curly brackets {}.
- The two main parts in a JSON object are keys and values. Together they form
key/value pairs.
Example
"id" : "123"
- "id" = the key
- "123" = the value
- Keys must be strings and values must be one of the following data types:
- a string:
{ "id" : "123" }
- a number:
{ "amount" : 30 }
- a JSON object:
{ "file":{ "id" : "123", "amount":30 } }
- an array:
{ "path" : [ "Filestores", "DemoResources", "demo files input", "10_SnR_FoldingCarton" ] }
- a boolean:
{ "checkbox" : true }
- null: { "sub" : null }
- a string:
- Keys and values are separated by a colon.
- Each key/value pair is separated by a comma.