acapy_agent.database_manager.wql_nosql package
Subpackages
Submodules
acapy_agent.database_manager.wql_nosql.query module
Askar WQL (Wallet Query Language) parsing and optimization.
- class acapy_agent.database_manager.wql_nosql.query.AndQuery(subqueries: List[Query])[source]
Bases:
QueryLogical AND of multiple clauses.
- class acapy_agent.database_manager.wql_nosql.query.EqQuery(key: str, value: str)[source]
Bases:
QueryEquality comparison for a field value.
- class acapy_agent.database_manager.wql_nosql.query.ExistQuery(keys: List[str])[source]
Bases:
QueryMatch any non-null field value of the given field names.
- class acapy_agent.database_manager.wql_nosql.query.GtQuery(key: str, value: str)[source]
Bases:
QueryGreater-than comparison for a field value.
- class acapy_agent.database_manager.wql_nosql.query.GteQuery(key: str, value: str)[source]
Bases:
QueryGreater-than-or-equal comparison for a field value.
- class acapy_agent.database_manager.wql_nosql.query.InQuery(key: str, values: List[str])[source]
Bases:
QueryMatch one of multiple field values in a set.
- class acapy_agent.database_manager.wql_nosql.query.LikeQuery(key: str, value: str)[source]
Bases:
QuerySQL ‘LIKE’-compatible string comparison for a field value.
- class acapy_agent.database_manager.wql_nosql.query.LtQuery(key: str, value: str)[source]
Bases:
QueryLess-than comparison for a field value.
- class acapy_agent.database_manager.wql_nosql.query.LteQuery(key: str, value: str)[source]
Bases:
QueryLess-than-or-equal comparison for a field value.
- class acapy_agent.database_manager.wql_nosql.query.NeqQuery(key: str, value: str)[source]
Bases:
QueryInequality comparison for a field value.
- class acapy_agent.database_manager.wql_nosql.query.NotQuery(subquery: Query)[source]
Bases:
QueryNegation of a clause.
- class acapy_agent.database_manager.wql_nosql.query.OrQuery(subqueries: List[Query])[source]
Bases:
QueryLogical OR of multiple clauses.
- class acapy_agent.database_manager.wql_nosql.query.Query[source]
Bases:
objectBase class for all query types.
- map(key_func: Callable[[str], str], value_func: Callable[[str, str], str]) Query[source]
Transform keys and values in the query.
- acapy_agent.database_manager.wql_nosql.query.parse_operator(key: str, value: dict | list | str | None) Query | None[source]
Parse an operator from a key-value pair.
- acapy_agent.database_manager.wql_nosql.query.parse_query(query_dict: dict) Query[source]
Parse a dictionary into a Query object.
- acapy_agent.database_manager.wql_nosql.query.parse_single_operator(op_name: str, key: str, value: dict | list | str | None) Query[source]
Parse a single operator from a key-value pair.
- acapy_agent.database_manager.wql_nosql.query.query_from_json(json_value: dict | list | str | None) Query[source]
Parse a JSON value (dict or list) into a Query object.
acapy_agent.database_manager.wql_nosql.test_string_to_tagquery module
Tests for string to TagQuery conversion.
- class acapy_agent.database_manager.wql_nosql.test_string_to_tagquery.TestQuery(methodName='runTest')[source]
Bases:
TestCaseTest cases for query parsing, serialization, and optimization.
- test_and_or_not_complex_case_parse()[source]
Test parsing a complex query with AND, OR, and NOT subqueries.
- test_and_or_not_complex_case_to_string()[source]
Convert complex query with AND, OR, and NOT subqueries to a string.
- test_and_with_multiple_eq_parse()[source]
Test parsing an AND query with multiple equality subqueries.
- test_and_with_multiple_eq_to_string()[source]
Convert query with multiple equality subqueries to a string.
- test_and_with_multiple_gt_parse()[source]
Test parsing an AND query with multiple greater-than subqueries.
- test_and_with_multiple_gt_to_string()[source]
Convert AND query with multiple greater-than subqueries to a string.
- test_and_with_multiple_gte_parse()[source]
Test parsing an AND query with multiple greater-than-or-equal subqueries.
- test_and_with_multiple_gte_to_string()[source]
Convert query with multiple greater-than-or-equal subqueries to a string.
- test_and_with_multiple_in_to_string()[source]
Test converting an AND query with multiple IN subqueries to a string.
- test_and_with_multiple_like_parse()[source]
Test parsing an AND query with multiple LIKE subqueries.
- test_and_with_multiple_like_to_string()[source]
Test converting an AND query with multiple LIKE subqueries to a string.
- test_and_with_multiple_lt_parse()[source]
Test parsing an AND query with multiple less-than subqueries.
- test_and_with_multiple_lt_to_string()[source]
Convert query with multiple less-than subqueries to a string.
- test_and_with_multiple_lte_parse()[source]
Test parsing an AND query with multiple less-than-or-equal subqueries.
- test_and_with_multiple_lte_to_string()[source]
Convert query with multiple less-than-or-equal subqueries to a string.
- test_and_with_multiple_mixed_to_string()[source]
Test converting an AND query with mixed subqueries to a string.
- test_and_with_multiple_neq_parse()[source]
Test parsing an AND query with multiple inequality subqueries.
- test_and_with_multiple_neq_to_string()[source]
Convert query with multiple inequality subqueries to a string.
- test_and_with_multiple_not_eq_parse()[source]
Test parsing an AND query with multiple NOT equality subqueries.
- test_and_with_multiple_not_eq_to_string()[source]
Convert query with multiple NOT equality subqueries to a string.
- test_and_with_one_eq_to_string()[source]
Test converting an AND query with a single equality subquery to a string.
- test_and_with_one_gt_parse()[source]
Test parsing an AND query with a single greater-than subquery.
- test_and_with_one_gt_to_string()[source]
Convert query with a single greater-than subquery to a string.
- test_and_with_one_gte_parse()[source]
Test parsing an AND query with a single greater-than-or-equal subquery.
- test_and_with_one_gte_to_string()[source]
Convert AND query with a single greater-than-or-equal subquery to a string.
- test_and_with_one_in_to_string()[source]
Test converting an AND query with a single IN subquery to a string.
- test_and_with_one_like_to_string()[source]
Test converting an AND query with a single LIKE subquery to a string.
- test_and_with_one_lt_to_string()[source]
Convert AND query with a single less-than subquery to a string.
- test_and_with_one_lte_parse()[source]
Test parsing an AND query with a single less-than-or-equal subquery.
- test_and_with_one_lte_to_string()[source]
Convert AND query with a single less-than-or-equal subquery to a string.
- test_and_with_one_neq_to_string()[source]
Test converting an AND query with a single inequality subquery to a string.
- test_and_with_one_not_eq_parse()[source]
Test parsing an AND query with a single NOT equality subquery.
- test_and_with_one_not_eq_to_string()[source]
Convert query with a single NOT equality subquery to a string.
- test_not_with_one_eq_to_string()[source]
Test converting a NOT query with a single equality subquery to a string.
- test_not_with_one_gt_to_string()[source]
Test converting a NOT query with a single greater-than subquery to a string.
- test_not_with_one_gte_parse()[source]
Test parsing a NOT query with a single greater-than-or-equal subquery.
- test_not_with_one_gte_to_string()[source]
Convert NOT query with a single greater-than-or-equal subquery to a string.
- test_not_with_one_in_to_string()[source]
Test converting a NOT query with a single IN subquery to a string.
- test_not_with_one_like_to_string()[source]
Test converting a NOT query with a single LIKE subquery to a string.
- test_not_with_one_lt_to_string()[source]
Test converting a NOT query with a single less-than subquery to a string.
- test_not_with_one_lte_parse()[source]
Test parsing a NOT query with a single less-than-or-equal subquery.
- test_not_with_one_lte_to_string()[source]
Convert NOT query with a single less-than-or-equal subquery to a string.
- test_not_with_one_neq_to_string()[source]
Test converting a NOT query with a single inequality subquery to a string.
- test_or_with_multiple_eq_parse()[source]
Test parsing an OR query with multiple equality subqueries.
- test_or_with_multiple_eq_to_string()[source]
Test converting an OR query with multiple equality subqueries to a string.
- test_or_with_multiple_gt_parse()[source]
Test parsing an OR query with multiple greater-than subqueries.
- test_or_with_multiple_gt_to_string()[source]
Convert OR query with multiple greater-than subqueries to a string.
- test_or_with_multiple_gte_parse()[source]
Test parsing an OR query with multiple greater-than-or-equal subqueries.
- test_or_with_multiple_gte_to_string()[source]
Convert OR query with multiple greater-than-or-equal subqueries to a string.
- test_or_with_multiple_in_to_string()[source]
Test converting an OR query with multiple IN subqueries to a string.
- test_or_with_multiple_like_to_string()[source]
Test converting an OR query with multiple LIKE subqueries to a string.
- test_or_with_multiple_lt_parse()[source]
Test parsing an OR query with multiple less-than subqueries.
- test_or_with_multiple_lt_to_string()[source]
Convert OR query with multiple less-than subqueries to a str.
- test_or_with_multiple_lte_parse()[source]
Test parsing an OR query with multiple less-than-or-equal subqueries.
- test_or_with_multiple_lte_to_string()[source]
Convert OR query with multiple less-than-or-equal subqueries to a string.
- test_or_with_multiple_mixed_to_string()[source]
Test converting an OR query with mixed subqueries to a string.
- test_or_with_multiple_neq_parse()[source]
Test parsing an OR query with multiple inequality subqueries.
- test_or_with_multiple_neq_to_string()[source]
Test converting an OR query with multiple inequality subqueries to a string.
- test_or_with_multiple_not_eq_parse()[source]
Test parsing an OR query with multiple NOT equality subqueries.
- test_or_with_multiple_not_eq_to_string()[source]
Convert OR query with multiple NOT equality subqueries to a string.
- test_or_with_one_eq_to_string()[source]
Test converting an OR query with a single equality subquery to a string.
- test_or_with_one_gt_to_string()[source]
Test converting an OR query with a single greater-than subquery to a string.
- test_or_with_one_gte_parse()[source]
Test parsing an OR query with a single greater-than-or-equal subquery.
- test_or_with_one_gte_to_string()[source]
Convert OR query with a single greater-than-or-equal subquery to a string.
- test_or_with_one_in_to_string()[source]
Test converting an OR query with a single IN subquery to a string.
- test_or_with_one_like_to_string()[source]
Test converting an OR query with a single LIKE subquery to a string.
- test_or_with_one_lt_to_string()[source]
Test converting an OR query with a single less-than subquery to a string.
- test_or_with_one_lte_parse()[source]
Test parsing an OR query with a single less-than-or-equal subquery.
- test_or_with_one_lte_to_string()[source]
Convert OR query with a single less-than-or-equal subquery to a string.
- test_or_with_one_neq_to_string()[source]
Convert OR query with a single inequality subquery to a string.
- test_or_with_one_not_eq_parse()[source]
Test parsing an OR query with a single NOT equality subquery.
- test_or_with_one_not_eq_to_string()[source]
Test converting an OR query with a single NOT equality subquery to a string.
- test_short_and_with_multiple_eq_parse()[source]
Test parsing a short AND query with multiple equality subqueries.
- test_simple_operator_eq_with_tilde_to_string()[source]
Test converting an equality query with ‘~’ prefix to a string.
- test_simple_operator_gt_plaintext_to_string()[source]
Test converting a greater-than query to a string.
- test_simple_operator_gte_to_string()[source]
Test converting a greater-than-or-equal query to a string.
- test_simple_operator_in_multimply_to_string()[source]
Test converting an IN query with multiple values to a string.