Module: SqlFootprint
- Defined in:
- lib/sql_footprint.rb,
lib/sql_footprint/version.rb,
lib/sql_footprint/sql_filter.rb,
lib/sql_footprint/sql_capturer.rb,
lib/sql_footprint/sql_anonymizer.rb,
lib/sql_footprint/sql_statements.rb,
lib/sql_footprint/footprint_serializer.rb
Defined Under Namespace
Classes: FootprintSerializer, SqlAnonymizer, SqlCapturer, SqlFilter, SqlStatements
Constant Summary
collapse
- VERSION =
'1.0.0'.freeze
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.capturers ⇒ Object
Returns the value of attribute capturers.
18
19
20
|
# File 'lib/sql_footprint.rb', line 18
def capturers
@capturers
end
|
Class Method Details
.exclude ⇒ Object
32
33
34
35
36
37
|
# File 'lib/sql_footprint.rb', line 32
def exclude
@capture = false
yield
ensure
@capture = true
end
|
.start ⇒ Object
20
21
22
23
24
25
|
# File 'lib/sql_footprint.rb', line 20
def start
@capture = true
@capturers = Hash.new do |hash, database_name|
hash[database_name] = SqlCapturer.new(database_name)
end
end
|
.stop ⇒ Object
27
28
29
30
|
# File 'lib/sql_footprint.rb', line 27
def stop
@capture = false
capturers.values.each(&:write)
end
|