Builds a column name based on the attribute and value provided. The column name is used in filtering data in a Supabase database.
The attribute to be used in the column name.
The value to be used in the column name.
Whether to include the data type in the column name.
The built column name.
Returns a function that applies the appropriate comparator operation on the attribute and value provided. The function returned is used to filter data in a Supabase database.
The comparator to be used in the operation.
A function that applies the comparator operation on the attribute and value provided.
Merges two filters into one. The merged filter can be used to filter data in a Supabase database.
The default filter to be merged.
The generated filter to be merged.
The type of merge to be performed. It can be 'and', 'or', or 'replace'.
The merged filter.
Visits a comparison and returns a function that applies the comparison on a Supabase database. This is used in translating a structured query into a format that can be understood by Supabase.
The comparison to be visited.
A function that applies the comparison on a Supabase database.
Visits a comparison and returns a string representation of it. This is used in translating a structured query into a format that can be understood by Supabase.
The comparison to be visited.
A string representation of the comparison.
Visits an operation and returns a function that applies the operation on a Supabase database. This is used in translating a structured query into a format that can be understood by Supabase.
The operation to be visited.
A function that applies the operation on a Supabase database.
Visits an operation and returns a string representation of it. This is used in translating a structured query into a format that can be understood by Supabase.
The operation to be visited.
A string representation of the operation.
Visits a structured query and returns a function that applies the query on a Supabase database. This is used in translating a structured query into a format that can be understood by Supabase.
The structured query to be visited.
A function that applies the query on a Supabase database.
Optional
filter?: T["FilterType"]
A specialized translator designed to work with Supabase, extending the BaseTranslator class. It translates structured queries into a format that can be understood by the Supabase database.
Example