Build a metadata WHERE fragment from a filter object against the JSONB metadata column.
Supports the internal _pgvectorConditions envelope (from BuildMetadataFilter) and the
generic { field: value } / { field: { $eq | $in } } shapes. Mirrors the external
PgVectorDatabase.BuildFilterClause semantics so colocated and external results match.
Parameters
filter: object
The opaque filter object from the query options.
startParamIndex: number
The first $N index available for this fragment's params.
Build a metadata
WHEREfragment from a filter object against the JSONBmetadatacolumn. Supports the internal_pgvectorConditionsenvelope (fromBuildMetadataFilter) and the generic{ field: value }/{ field: { $eq | $in } }shapes. Mirrors the externalPgVectorDatabase.BuildFilterClausesemantics so colocated and external results match.