@@ -2679,7 +2679,7 @@ A dictionary containing cache statistics: hits, misses, size, maxsize.
2679
2679
class BasePostgresLookupField(BaseField, abc.ABC )
2680
2680
```
2681
2681
2682
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L25 )
2682
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L31 )
2683
2683
2684
2684
< a id = " quixstreams.dataframe.joins.lookups.postgresql.BasePostgresLookupField.build_query" >< / a>
2685
2685
@@ -2694,7 +2694,7 @@ def build_query(
2694
2694
) -> Tuple[sql.Composable, Union[dict[str , Any], Tuple[str , ... ]]]
2695
2695
```
2696
2696
2697
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L32 )
2697
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L38 )
2698
2698
2699
2699
Build the SQL query string for this field.
2700
2700
@@ -2722,7 +2722,7 @@ A tuple of the SQL query string and the parameters.
2722
2722
def result(cursor: pg_cursor) -> Union[dict[str , Any], list[dict[str , Any]]]
2723
2723
```
2724
2724
2725
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L46 )
2725
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L52 )
2726
2726
2727
2727
Extract the result from the cursor based on the field definition.
2728
2728
@@ -2747,7 +2747,7 @@ The extracted data, either a single row or a list of rows.
2747
2747
class PostgresLookupField(BasePostgresLookupField)
2748
2748
```
2749
2749
2750
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L58 )
2750
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L64 )
2751
2751
2752
2752
< a id = " quixstreams.dataframe.joins.lookups.postgresql.PostgresLookupField.build_query" >< / a>
2753
2753
@@ -2760,7 +2760,7 @@ def build_query(on: str,
2760
2760
value: dict[str , Any]) -> Tuple[sql.Composed, Tuple[str , ... ]]
2761
2761
```
2762
2762
2763
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L97 )
2763
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L103 )
2764
2764
2765
2765
Build the SQL query string for this field.
2766
2766
@@ -2787,7 +2787,7 @@ A tuple of the SQL query string and the parameters.
2787
2787
def result(cursor: pg_cursor) -> Union[dict[str , Any], list[dict[str , Any]]]
2788
2788
```
2789
2789
2790
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L127 )
2790
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L133 )
2791
2791
2792
2792
Extract the result from the cursor based on the field definition.
2793
2793
@@ -2812,7 +2812,7 @@ The extracted data, either a single row or a list of rows.
2812
2812
class PostgresLookupQueryField(BasePostgresLookupField)
2813
2813
```
2814
2814
2815
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L142 )
2815
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L148 )
2816
2816
2817
2817
< a id = " quixstreams.dataframe.joins.lookups.postgresql.PostgresLookupQueryField.result" >< / a>
2818
2818
@@ -2824,7 +2824,7 @@ class PostgresLookupQueryField(BasePostgresLookupField)
2824
2824
def result(cursor: pg_cursor) -> Union[list[Any], Any]
2825
2825
```
2826
2826
2827
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L155 )
2827
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L161 )
2828
2828
2829
2829
Extract the result from the cursor based on the field definition.
2830
2830
@@ -2849,7 +2849,7 @@ class PostgresLookup(BaseLookup[Union[PostgresLookupField,
2849
2849
PostgresLookupQueryField]])
2850
2850
```
2851
2851
2852
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L168 )
2852
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L174 )
2853
2853
2854
2854
Lookup join implementation for enriching streaming data with data from a Postgres database.
2855
2855
@@ -2887,7 +2887,7 @@ def __init__(host: str,
2887
2887
** kwargs)
2888
2888
```
2889
2889
2890
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L188 )
2890
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L194 )
2891
2891
2892
2892
2893
2893
< br>
@@ -2922,7 +2922,7 @@ def field(table: str,
2922
2922
first_match_only: bool = True ) -> PostgresLookupField
2923
2923
```
2924
2924
2925
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L312 )
2925
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L318 )
2926
2926
2927
2927
Field definition for use with PostgresLookup in lookup joins.
2928
2928
@@ -2991,7 +2991,7 @@ def query_field(query: str,
2991
2991
first_match_only: bool = True ) -> PostgresLookupQueryField
2992
2992
```
2993
2993
2994
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L386 )
2994
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L392 )
2995
2995
2996
2996
Field definition for use with PostgresLookup in lookup joins.
2997
2997
@@ -3053,7 +3053,7 @@ def join(fields: Mapping[str, Union[PostgresLookupField,
3053
3053
Any], key: Any, timestamp: int , headers: Any) -> None
3054
3054
```
3055
3055
3056
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L440 )
3056
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L446 )
3057
3057
3058
3058
Enrich the message value in - place by querying SQLite for each field and caching results per TTL .
3059
3059
@@ -3084,7 +3084,7 @@ None. The input value dictionary is updated in-place with the enriched data.
3084
3084
def cache_info() -> CacheInfo
3085
3085
```
3086
3086
3087
- [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L480 )
3087
+ [[VIEW SOURCE ]](https:// github.com/ quixio/ quix- streams/ blob/ main/ quixstreams/ dataframe/ joins/ lookups/ postgresql.py# L486 )
3088
3088
3089
3089
Get cache statistics for the SQLiteLookup LRU cache.
3090
3090
0 commit comments