Module: SandthornDriverSequel2

Defined in:
lib/sandthorn_driver_sequel_2.rb,
lib/sandthorn_driver_sequel_2/access.rb,
lib/sandthorn_driver_sequel_2/storage.rb,
lib/sandthorn_driver_sequel_2/version.rb,
lib/sandthorn_driver_sequel_2/migration.rb,
lib/sandthorn_driver_sequel_2/event_query.rb,
lib/sandthorn_driver_sequel_2/event_store.rb,
lib/sandthorn_driver_sequel_2/sequel_driver.rb,
lib/sandthorn_driver_sequel_2/utilities/array.rb,
lib/sandthorn_driver_sequel_2/access/event_access.rb,
lib/sandthorn_driver_sequel_2/event_store_context.rb,
lib/sandthorn_driver_sequel_2/access/snapshot_access.rb,
lib/sandthorn_driver_sequel_2/wrappers/event_wrapper.rb,
lib/sandthorn_driver_sequel_2/wrappers/snapshot_wrapper.rb,
lib/sandthorn_driver_sequel_2/file_output_wrappers/events.rb

Defined Under Namespace

Modules: Access, Errors, EventStoreContext, FileOutputWrapper, Utilities Classes: EventAccess, EventQuery, EventStore, EventWrapper, Migration, SequelDriver, SnapshotAccess, SnapshotWrapper, Storage

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.driver_from_url(url: nil, context: nil, file_output_options: {}) ⇒ Object



15
16
17
# File 'lib/sandthorn_driver_sequel_2.rb', line 15

def driver_from_url url: nil, context: nil, file_output_options: {}
  EventStore.new url: url, context: context, file_output_options: file_output_options
end

.migrate_db(url: nil, context: nil) ⇒ Object



18
19
20
21
# File 'lib/sandthorn_driver_sequel_2.rb', line 18

def migrate_db url: nil, context: nil
  migrator = Migration.new url: url, context: context
  migrator.migrate!
end