You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current Clotho's functionality is limited to create, createAll, get, getAll, query, queryOne, set, setAll, and destroy. Query and get functions can only do very specific search. Two additional functions, such as "list all unique items without having to specify the keyword" and "search that supports wildcard/regex" need to be added
The text was updated successfully, but these errors were encountered:
rmardian
changed the title
Add new functionalities/queries (e.g list all items, wildcard)
Add new functionalities/queries (e.g list all/unique items, wildcard)
Feb 16, 2017
rmardian
changed the title
Add new functionalities/queries (e.g list all/unique items, wildcard)
Add new core functionalities/queries (e.g list all/unique items, wildcard)
Feb 16, 2017
Functions listAll() and findRegex(Map query) have been implemented and tested in Persistor.java.
listAll() returns a list of ObjBase objects in the database that have a "schema" field.
findRegex(Map query) takes a Map with some "fieldName", "regexString" pair and returns a list of ObjBase objects that matched that regex in the corresponding field (case insensitive).
Testing was performed in AdvancedQueryTest.java in the test package org.clothocad.core.persistence. Please use that file for reference and example usage.
Edit: These changes are live on the jetty9 branch, I still need to establish a common branch for Jacob, Alex, and I to merge all of our work.
Current Clotho's functionality is limited to create, createAll, get, getAll, query, queryOne, set, setAll, and destroy. Query and get functions can only do very specific search. Two additional functions, such as "list all unique items without having to specify the keyword" and "search that supports wildcard/regex" need to be added
The text was updated successfully, but these errors were encountered: