Editing Module:Test/lib/search
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 50: | Line 50: | ||
--~ end | --~ end | ||
--~ end | --~ end | ||
+ | |||
+ | search.meta = {} | ||
---------------------- | ---------------------- | ||
-- search_condition -- | -- search_condition -- | ||
---------------------- | ---------------------- | ||
+ | |||
-- note: if I want to search for true/false, will need to change this up a bit | -- note: if I want to search for true/false, will need to change this up a bit | ||
function search.search_condition(query, key, value) | function search.search_condition(query, key, value) | ||
Line 74: | Line 77: | ||
-- find first -- | -- find first -- | ||
---------------- | ---------------- | ||
− | + | ||
function search.find(query, tbl, parentKey) | function search.find(query, tbl, parentKey) | ||
local children = {} | local children = {} |