You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Parameters | Type |
| --- | --- | --- |
| path | String | path to the objects folder for the alternate |
Returns
Number
0 on success; error code otherwise
Odb#expandIds Sync
varresult=odb.expandIds(ids,count);
| Parameters | Type |
| --- | --- | --- |
| ids | OdbExpandId | An array of short object IDs to search for |
| count | Number | The length of the ids array |
Returns
Number
0 on success or an error code on failure
Odb#free Sync
odb.free();
Odb#read Async
odb.read(id).then(function(odbObject){// Use odbObject});
| Parameters | Type |
| --- | --- | --- |
| id | Oid | identity of the object to read. |
odb.write(data,len,type).then(function(oid){// Use oid});
| Parameters | Type |
| --- | --- | --- |
| data | Buffer | buffer with the data to store |
| len | Number | size of the buffer |
| type | Number | type of the data to store |