Module: TableCopy
- Defined in:
- lib/table_copy.rb,
lib/table_copy/pg.rb,
lib/table_copy/copier.rb,
lib/table_copy/version.rb,
lib/table_copy/pg/field.rb,
lib/table_copy/pg/index.rb,
lib/table_copy/pg/source.rb,
lib/table_copy/pg/destination.rb
Defined Under Namespace
Modules: PG
Classes: Copier
Constant Summary
collapse
- VERSION =
"0.0.9"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.logger ⇒ Object
8
9
10
|
# File 'lib/table_copy.rb', line 8
def logger
@logger ||= Logger.new($stdout)
end
|
Class Method Details
.add_link(name, source, destination) ⇒ Object
25
26
27
|
# File 'lib/table_copy.rb', line 25
def add_link(name, source, destination)
links_to_add[name] = TableCopy::Copier.new(source, destination)
end
|
.deferred_config(&block) ⇒ Object
21
22
23
|
# File 'lib/table_copy.rb', line 21
def deferred_config(&block)
@deferred_config = block
end
|
.links ⇒ Object
12
13
14
15
16
17
18
19
|
# File 'lib/table_copy.rb', line 12
def links
if configured?
@links
else
configure_links
@links
end
end
|