Skip to content

Support unknown as value for the is postgrest filter #1609

Description

@Vinzent03

Description

The current type of the value for the isFilter is bool? which does not allow specifying unknown even though that is supported by postgrest: https://docs.postgrest.org/en/v12/references/api/tables_views.html#operators

PostgrestFilterBuilder<T> isFilter(String column, bool? value) {

Suggested solution

I propose to add a new enum with four values for this. While bool? is a great type for the other values: null, true, false it does now work for the remaining one unknown. This also prevents from accidentally using null.
This would be a breaking change for v3.

Alternative

No response

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions