Inserting Records in Batches
Recordset
ID set of records that are successfully inserted.
Batch Update Records
Recordset
Updated record ID set
Count the number of records that meet the condition.
Optional
condition: ConditionMatching condition
Number of records that meet the conditions
import * as db from 'db';
let s = db.setup('setup_object');
let cond = {
conjunction: db.Conjunction.AND,
conditions: [
{
field: "name",
"operator": db.Operator.eq,
"value": 'setup_name'
}
]
}
let num = s.count(cond);
Deletes records by ID.
Record ID.
Number of Affected Records
A maximum of 5000 records can be deleted based on conditions.
Optional
condition: Condition匹配条件
Create a record
Recording
Specifies the ID of a new record.
Querying Records by ID
Recording
The number of records to be returned can be limited. The skip value is used to specify the number of records to be returned. The limit value is used to specify the number of records to be returned.
If skip and limit are not specified, the default values are skip=0 and limit=5000, indicating that the first 5000 records in the result set are returned. The maximum limit can be set to 10000, indicating that the query interface can return only the first 10000 records in the query result set.
Recordset
Updates records by ID.
Record ID.
Update Content
Number of Affected Records
Records are updated based on conditions. A maximum of 5000 records can be updated.
System Object Operation Interface