Template File: /var/www/html/wp-content/themes/livecloud2017/page-sidebar.php | Template Hierarchy

WP version: 4.8.2
PHP version 5.5.37-1+deprecated+dontuse+deb.sury.org~trusty+1

cdb_exportAsJSON

command cdb_exportAsJSON pInputA

Summary

This command exports a complete table (local records only) as individual documents for each record in JSON format in a folder on the desktop.

Inputs

  • pInputA (Array) – An array of keys containing data per the following format:
    • [“cdbTableName”] (String) – The specified table name.

Outputs

(Main storage device) – Desktop/folder/documents.

API Version

  • 0.3.2 – Introduced

Examples

local tInputA, tOutputA

#Table name: clients

#Input: tInputA
put "clients" into tInputA["cdbTableName"]

cdb_exportAsJSON tInputA

#Output: Folder with individual records written to the desktop. Folder name consists of "cdbTableName_cdbTableID". Records are named by their cdbRecordID.