nexus_cqrs 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nexus_cqrs/helpers.rb +6 -1
- data/lib/nexus_cqrs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1ab92b227b0ff36a308b6495262108cfbd2f993068d86032b22623937726e76
|
4
|
+
data.tar.gz: 1827bd428f92211c7e30c1af6c52b20800f2cda21c4d3d0c6afd1c457aef79ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 926c2a7d769f2e9df9654006e64b4e9ce55710b7e2ead60ada884b5d3df6c67b0dcd83c50c616a80246399f634bc326f5d765c21fc7c9810bb6dd9aeb4655612
|
7
|
+
data.tar.gz: be235bec498b0e57cbd9748a8ae891f605537b0a8c0b40db0412a4ee08687ec2b3582e82b0ffae884fa35ef94d0718a60a94c83175ce2dab4ba6d42038b92ba9
|
data/lib/nexus_cqrs/helpers.rb
CHANGED
@@ -7,12 +7,17 @@ module NexusCqrs
|
|
7
7
|
|
8
8
|
# Executes a CQRS Query
|
9
9
|
def query(query)
|
10
|
-
|
10
|
+
query_executor.execute(query)
|
11
11
|
end
|
12
12
|
|
13
13
|
# Provide access to the CQRS executor
|
14
14
|
def command_executor
|
15
15
|
@command_executor ||= $COMMAND_EXECUTOR
|
16
16
|
end
|
17
|
+
|
18
|
+
# Provide access to the CQRS executor
|
19
|
+
def query_executor
|
20
|
+
@command_executor ||= $QUERY_EXECUTOR
|
21
|
+
end
|
17
22
|
end
|
18
23
|
end
|
data/lib/nexus_cqrs/version.rb
CHANGED