Module: PgAggregates::CommandRecorder
- Defined in:
- lib/pg_aggregates/command_recorder.rb
Instance Method Summary collapse
- #create_aggregate(*args, &block) ⇒ Object
- #drop_aggregate(*args) ⇒ Object
- #invert_create_aggregate(args) ⇒ Object
- #invert_drop_aggregate(args) ⇒ Object
Instance Method Details
#create_aggregate(*args, &block) ⇒ Object
5 6 7 |
# File 'lib/pg_aggregates/command_recorder.rb', line 5 def create_aggregate(*args, &block) record(:create_aggregate, args, &block) end |
#drop_aggregate(*args) ⇒ Object
9 10 11 |
# File 'lib/pg_aggregates/command_recorder.rb', line 9 def drop_aggregate(*args) record(:drop_aggregate, args) end |
#invert_create_aggregate(args) ⇒ Object
13 14 15 |
# File 'lib/pg_aggregates/command_recorder.rb', line 13 def invert_create_aggregate(args) [:drop_aggregate, args] end |
#invert_drop_aggregate(args) ⇒ Object
17 18 19 |
# File 'lib/pg_aggregates/command_recorder.rb', line 17 def invert_drop_aggregate(args) [:create_aggregate, args] end |