Current section
Files
Jump to
Current section
Files
lib/green_fairy/cql/operator_input.ex
defmodule GreenFairy.CQL.OperatorInput do
@moduledoc """
Alias for GreenFairy.CQL.Schema.OperatorInput for backwards compatibility.
This module re-exports all functions from the Schema.OperatorInput module.
"""
defdelegate type_for(type), to: GreenFairy.CQL.Schema.OperatorInput
defdelegate array_type_for(type), to: GreenFairy.CQL.Schema.OperatorInput
defdelegate scalar_for(type), to: GreenFairy.CQL.Schema.OperatorInput
@deprecated "Use adapter.operator_inputs/0 instead - adapters own their operators"
@dialyzer {:nowarn_function, operator_types: 0}
@compile {:no_warn_undefined, {GreenFairy.CQL.Schema.OperatorInput, :operator_types, 0}}
def operator_types do
# Use apply to avoid compile-time deprecation warning in this wrapper
apply(GreenFairy.CQL.Schema.OperatorInput, :operator_types, [])
end
defdelegate generate_all(opts \\ []), to: GreenFairy.CQL.Schema.OperatorInput
defdelegate operator_category(identifier), to: GreenFairy.CQL.Schema.OperatorInput
defdelegate generate_input(identifier, operators, scalar_type, description), to: GreenFairy.CQL.Schema.OperatorInput
end