Module: Postgresql::Check::CommandRecorder

Defined in:
lib/postgresql/check/command_recorder.rb

Instance Method Summary collapse

Instance Method Details

#add_check(*args) ⇒ Object



4
5
6
# File 'lib/postgresql/check/command_recorder.rb', line 4

def add_check(*args)
  record(:add_check, args)
end

#invert_add_check(args) ⇒ Object



12
13
14
15
16
# File 'lib/postgresql/check/command_recorder.rb', line 12

def invert_add_check(args)
  table_name, condition, options = args

  [:remove_check, [table_name, options]]
end

#remove_check(*args) ⇒ Object



8
9
10
# File 'lib/postgresql/check/command_recorder.rb', line 8

def remove_check(*args)
  record(:remove_check, args)
end