Delete a single record
Example DB Table
smartPanda.mdh.brand
CREATE TABLE `brand`
(
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`logo` text,
`logo_url` varchar(255) DEFAULT NULL,
`website` varchar(255) DEFAULT NULL,
`disabled` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
);
Find and delete a single record by ID
db.schema.table.del
Find and delete a single record by ID
Return the count of rows affected.
Delete a record based on the ID or unique identifier specified in the method name
API delBy*
Example Request
{
"method": "smartPanda.mdh.brand.delById",
"params": 1
}
Example Response
1
Script delBy*
Example Code
var result = luwak.dao("smartPanda.mdh.brand.set", 1);
Example Result
1