"SequoiaDB Giant Sequoia Database" listLobs() Overview 2

error

listLobs()Common exceptions of functions are as follows:

When an exception is thrown, you can () getLastError get an error code , or through ) getLastErrMsg ( get an error message. You can refer to the common error handling guide to learn more.

Example

List all large objects in sample.employee

db.sample.employee.listLobs()
{
"Size": 2,
"Oid": {
"$oid": "00005d36c8a5350002de7edc"
},
"CreateTime": {
"$timestamp": "2019-07-23-16.43.17.360000"
},
"ModificationTime": {
"$timestamp": "2019-07-23-16.43.17.508000"
},
"Available": true,
"HasPiecesInfo": false
}
{
"Size": 51717368,
"Oid": {
"$oid": "00005d36cae8370002de7edd"
},
"CreateTime": {
"$timestamp": "2019-07-23-16.52.56.278000"
},
"ModificationTime": {
"$timestamp": "2019-07-23-16.52.56.977000"
},
"Available": true,
"HasPiecesInfo": false
}
Return 2 row(s).
Takes 0.002045s.

List large objects with a size greater than 10 in sample.employee

db.sample.employee.listLobs( SdbQueryOption().cond( { "Size": { $gt: 10 } } ) )
{
"Size": 51717368,
"Oid": {
"$oid": "00005d36cae8370002de7edd"
},
"CreateTime": {
"$timestamp": "2019-07-23-16.52.56.278000"
},
"ModificationTime": {
"$timestamp": "2019-07-23-16.52.56.977000"
},
"Available": true,
"HasPiecesInfo": false
}
Return 1 row(s).
Takes 0.003665s.

Click on Jushan Database Documentation Center for more information

Guess you like

Origin blog.csdn.net/weixin_48909806/article/details/112944542