Skip to content

Commit

Permalink
delete_entry_by_in 适配 orm_table_m
Browse files Browse the repository at this point in the history
  • Loading branch information
huahua132 committed Nov 26, 2024
1 parent 7feec26 commit 34d2e62
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/orm/module/test_m.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ local function test()
local ret = client:delete_entry_by_range(10002)
local all_data = client:get_all_entry()
log.info("all_data >>> ", ret, all_data)

--in删除
local ret = client:delete_entry_by_in({10001})
local all_data = client:get_all_entry()
log.info("all_data >>> ", ret, all_data)
end

--切换测试
Expand Down
5 changes: 5 additions & 0 deletions module/orm_table_m.lua
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ function g_handle.delete_entry_by_range(left, right, ...)
return g_orm_obj:delete_entry_by_range(left, right, ...)
end

-- IN 删除
function g_handle.delete_entry_by_in(in_values, ...)
return g_orm_obj:delete_entry_by_in(in_values, ...)
end

local CMD = {}

function CMD.start(config)
Expand Down

0 comments on commit 34d2e62

Please sign in to comment.