Skip to content

Strongly typed "Where" type #30

Closed

Description

@cincuranet
No description provided.

Activity

  1. changed the title [-]Strongly typed "Where"[/-] [+]Strongly typed "Where" type[/+] on Sep 11, 2024
  2. cincuranet commented on Nov 6, 2024

    @cincuranet
    CollaboratorAuthor

    For my own "understanding".

    LiteralValue = Union[str, int, float, bool]
    LogicalOperator = Union[Literal["$and"], Literal["$or"]]
    WhereOperator = Union[
        Literal["$gt"],
        Literal["$gte"],
        Literal["$lt"],
        Literal["$lte"],
        Literal["$ne"],
        Literal["$eq"],
    ]
    InclusionExclusionOperator = Union[Literal["$in"], Literal["$nin"]]
    OperatorExpression = Union[
        Dict[Union[WhereOperator, LogicalOperator], LiteralValue],
        Dict[InclusionExclusionOperator, List[LiteralValue]],
    ]
    
    Where = Dict[
        Union[str, LogicalOperator], Union[LiteralValue, OperatorExpression, List["Where"]]
    ]
    
  3. Laurianti commented on Oct 4, 2026

    @Laurianti

    ChromaDotNet.Client adds Contains and NotContains on lists in metadata (#84).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions