Module: ActualDbSchema::MultiTenant

Includes:
OutputFormatter
Defined in:
lib/actual_db_schema/multi_tenant.rb

Overview

Handles multi-tenancy support by switching schemas for supported databases

Constant Summary

Constants included from OutputFormatter

OutputFormatter::UNICODE_COLORS

Class Method Summary collapse

Methods included from OutputFormatter

#colorize

Class Method Details

.with_schema(schema_name) ⇒ Object



9
10
11
12
13
14
# File 'lib/actual_db_schema/multi_tenant.rb', line 9

def with_schema(schema_name)
  context = switch_schema(schema_name)
  yield
ensure
  restore_context(context)
end