Skip to content

Commit

Permalink
refs #4532 added additional attributes to search operator info
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnich committed May 23, 2022
1 parent d2da5bc commit f07b43b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions qlib/DataProvider/AbstractDataProvider.qc
Expand Up @@ -363,9 +363,8 @@ public class AbstractDataProvider {
},
DP_SEARCH_OP_NOT: <DataProviderSearchOperatorInfo>{
"name": "logical not (!)",
"type": AbstractDataProviderType::get(Reflection::NothingType),
"desc": "This operator takes no arguments and reverses the logical value of the field value or "
"implicit operand",
"type": AbstractDataProviderType::get(AbstractDataProviderType::anyType),
"desc": "This operator reverses the logcal value of the operator expression given as an argument",
"supports_nesting": True,
},
DP_SEARCH_OP_REGEX: <DataProviderSearchOperatorInfo>{
Expand Down
5 changes: 5 additions & 0 deletions qlib/DbDataProvider/DbTableDataProvider.qc
Expand Up @@ -54,6 +54,11 @@ public class DbTableDataProvider inherits AbstractDataProvider {
"desc": "The value to bind as the 'like' value (ex: '%some string%')",
"uses_field_type": False,
},
OP_NOT: <DataProviderSearchOperatorInfo>{
"name": "logical not",
"desc": "Negates the operator expression given as an argument",
"supports_nesting": True,
},
},
"transaction_management": True,
"has_record": True,
Expand Down

0 comments on commit f07b43b

Please sign in to comment.