OrientDB Manual 1.7.8

Console - DISCTIONARY PUT

Associates in the database dictionary a record to a key to be found later using a dictionary get command.

Syntax

dictionary put <key> <record-id>

Where:

  • key The key to bind
  • record-id The record-id of the record to bind to the key passes

Example

> dictionary put obama 5:4
--------------------------------------------------
Class: Person   id: 5:4   v.1
--------------------------------------------------
              parent : null
            children : [[email protected]5:5{parent:[email protected]5:4,children:null,name:Malia Ann,surname:Obama,city:null}, [email protected]5:6{parent:[email protected]5:4,children:null
,name:Natasha,surname:Obama,city:null}]
                name : Barack
             surname : Obama
                city : [email protected]6:2{name:Honolulu}
--------------------------------------------------
The entry obama=5:4 has been inserted in the database dictionary

To know all the keys stored in the database dictionary use the dictionary keys command.

For complete index (and dictionary) guide look at Index guide.

This is a command of the Orient console. To know all the commands go to Console-Commands.