Fare Record is the order used to send out the stacked record into the mentioned and upheld design. In the event that you are executing any off-base punctuation, it will give the rundown of upheld designs. OrientDB is a group of Document data set, consequently JSON is the default upheld design.
The accompanying assertion is the essential language structure of the Export Record order.
EXPORT RECORD <format>
Where <Format> characterizes the arrangement you need to get the record.
Note − Export order will send out the stacked record dependent on Record ID.
Example
Allow us to consider a similar Customer table that we have utilized in the past section.
Sr.No. | Name | Age |
---|---|---|
1 | Satish | 25 |
2 | Krishna | 26 |
3 | Kiran | 29 |
4 | Javeed | 21 |
5 | Raja | 29 |
Attempt the accompanying inquiry to recover the record having Record ID @rid: #11:0.
orientdb {db = demo}> LOAD RECORD #11:0
On the off chance that the above inquiry is executed effectively, you will get the accompanying yield.
+---------------------------------------------------------------------------+
| Document - @class: Customer @rid: #11:0 @version: 1 |
+---------------------------------------------------------------------------+
| Name | Value |
+---------------------------------------------------------------------------+
| id | 1 |
| name | satish |
| age | 25 |
+---------------------------------------------------------------------------+
Utilize the accompanying inquiry to send out he stacked record (#11:0) into JSON design.
orientdb {db = demo}> EXPORT RECORD json
In the event that the above inquiry is executed effectively, you will get the accompanying yield.
{
"@type": "d",
"@rid": "#11:0",
"@version": 1,
"@class": "Customer",
"id": 1,
"name": "satish",
"age": 25
}