Use Contract's actions
Create Table row
[inery-node][ inrcrud ] cline push action inrcrud create '[1, "inrcrud", "My first Record"]' -p inrcrud
executed transaction: 915797b51f978cc02959ed72183c50c56bc2665999849525c67bf825538dffaa 128 bytes 545 us
# inrcrud <= inrcrud::create {"id":1,"user":"inrcrud","data":"My first Record"}
>> Hello, inrcrud Created with data: My first Record
warning: transaction executed locally, but may not be confirmed by the network yet
Read table
[inery-node][ inrcrud ] cline push action inrcrud read [1] -p inrcrud
executed transaction: ba2def70ee5f1d949ddca02a339e1aa04a6cac78da35b89dc76159a80b6d07a1 104 bytes 300 us
# inrcrud <= inrcrud::read {"id":1}
>> Data: My first Record
warning: transaction executed locally, but may not be confirmed by the network yet ]
Update table element
[inery-node][ inrcrud ] cline push action inrcrud update '[ 1, "My first Record Modified"]' -p inrcrud
executed transaction: abe857b937700f9f37621c7486acabfead61edf5c17d0800a8622c46fe2fd53c 128 bytes 497 us
# inrcrud <= inrcrud::update {"id":1,"data":"My first Record Modified"}
>> Data: My first Record Modified
warning: transaction executed locally, but may not be confirmed by the network yet
Check the changes
[inery-node][ inrcrud ] cline push action inrcrud read [1] -p inrcrud
executed transaction: 31b6fc8034b748b22062419d6b6c0fa6473256d7c38a8ae782269c9aa61e0eb7 104 bytes 339 us
# inrcrud <= inrcrud::read {"id":1}
>> Data: My first Record Modified
warning: transaction executed locally, but may not be confirmed by the network yet
Delete element from table
[inery-node][ inrcrud ] cline push action inrcrud destroy [1] -p inrcrud
executed transaction: cf80a075efedf684cbd4892995f97be8775072e90db7f5a21443b58c5a690a28 104 bytes 452 us
# inrcrud <= inrcrud::destroy {"id":1}
>> Record Destroyed: 1
warning: transaction executed locally, but may not be confirmed by the network yet
Check if element with id = 1 exist
[inery-node][ inrcrud ] cline push action inrcrud read [1] -p inrcrud
Error 3050003: inery_assert_message assertion failure
Error Details:
assertion failure with message: record with that ID does not exist