class TrinoProvisioner
Provisioning is behind an adapter, in the same pattern TrinoRuntime already uses with fake/real. If the Baleia catalog-store plugin does not load, switch TRINO_PROVISIONER=chart and nothing else changes.
Attributes
Public Class Methods
Source
# File app/services/trino_provisioner.rb, line 15 def adapter @adapter ||= case ENV.fetch("TRINO_PROVISIONER", "chart") when "baleia" then BaleiaTrinoProvisioner.new when "fake" then FakeTrinoProvisioner.new else ChartTrinoProvisioner.new end end
Returns the provisioner adapter selected by the TRINO_PROVISIONER env var.
@return [TrinoProvisioner] the concrete provisioner
Source
# File app/services/trino_provisioner.rb, line 26 def reset_adapter! = @adapter = nil
Clears the cached adapter so the next call rebuilds it.