Class: Textus::Infra::Store
- Inherits:
-
Object
- Object
- Textus::Infra::Store
show all
- Defined in:
- lib/textus/infra/store.rb,
lib/textus/infra/store/base.rb,
lib/textus/infra/store/audit_log.rb,
lib/textus/infra/store/file_store.rb,
lib/textus/infra/store/link_store.rb,
lib/textus/infra/store/entry_index.rb,
lib/textus/infra/store/cursor_store.rb,
lib/textus/infra/store/index/lookup.rb,
lib/textus/infra/store/envelope/meta.rb,
lib/textus/infra/store/index/builder.rb,
lib/textus/infra/store/workflow_queue.rb
Defined Under Namespace
Modules: Envelope, Index
Classes: AuditLog, Base, CursorStore, EntryIndex, FileStore, LinkStore, WorkflowQueue
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(database:, file_system:) ⇒ Store
Returns a new instance of Store.
4
5
6
7
|
# File 'lib/textus/infra/store.rb', line 4
def initialize(database:, file_system:)
@db = database.connection
@file_system = file_system
end
|
Instance Attribute Details
#db ⇒ Object
Returns the value of attribute db.
9
10
11
|
# File 'lib/textus/infra/store.rb', line 9
def db
@db
end
|
#file_system ⇒ Object
Returns the value of attribute file_system.
9
10
11
|
# File 'lib/textus/infra/store.rb', line 9
def file_system
@file_system
end
|
Instance Method Details
#audit_log ⇒ Object
14
|
# File 'lib/textus/infra/store.rb', line 14
def audit_log = @audit_log ||= AuditLog.new(@db)
|
#cursor_store ⇒ Object
11
|
# File 'lib/textus/infra/store.rb', line 11
def cursor_store = @cursor_store ||= CursorStore.new(@db)
|
#entry_index ⇒ Object
13
|
# File 'lib/textus/infra/store.rb', line 13
def entry_index = @entry_index ||= EntryIndex.new(@db)
|
#file_store ⇒ Object
16
|
# File 'lib/textus/infra/store.rb', line 16
def file_store = @file_store ||= FileStore.new(@file_system)
|
#link_store ⇒ Object
12
|
# File 'lib/textus/infra/store.rb', line 12
def link_store = @link_store ||= LinkStore.new(@db)
|
#transaction ⇒ Object
18
|
# File 'lib/textus/infra/store.rb', line 18
def transaction(&) = @db.transaction(&)
|
#workflow_queue ⇒ Object
15
|
# File 'lib/textus/infra/store.rb', line 15
def workflow_queue = @workflow_queue ||= WorkflowQueue.new(@db)
|