Module: EntitySnapshot::Postgres::Controls::Write
- Defined in:
- lib/entity_snapshot/postgres/controls/write.rb
Class Method Summary collapse
Class Method Details
.batch(stream_name: nil, category: nil, count: nil, starting_number: nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/entity_snapshot/postgres/controls/write.rb', line 5 def self.batch(stream_name: nil, category: nil, count: nil, starting_number: nil) stream_name ||= Controls::StreamName.example(category: category) write = ::Messaging::Postgres::Write.build batch = Batch.example(count: count, starting_number: starting_number) write.(batch, stream_name) stream_name end |