src/EventSourcing/Snapshotting/Vendor/MySqlJsonSnapshotStore.php 1 location
|
@@ 103-111 (lines=9) @@
|
100 |
|
/** |
101 |
|
* @return bool |
102 |
|
*/ |
103 |
|
public function initialized() |
104 |
|
{ |
105 |
|
try { |
106 |
|
$result = $this->connection->query('SELECT 1 FROM `'.self::SNAPSHOTS_TABLE.'` LIMIT 1'); |
107 |
|
} catch (\Exception $e) { |
108 |
|
return false; |
109 |
|
} |
110 |
|
return $result !== false; |
111 |
|
} |
112 |
|
} |
113 |
|
|
src/EventSourcing/EventStore/Vendor/MySqlJsonEventStore.php 1 location
|
@@ 264-272 (lines=9) @@
|
261 |
|
/** |
262 |
|
* @return bool |
263 |
|
*/ |
264 |
|
public function initialized() |
265 |
|
{ |
266 |
|
try { |
267 |
|
$result = $this->connection->query('SELECT 1 FROM `'.self::STREAMS_TABLE.'` LIMIT 1'); |
268 |
|
} catch (\Exception $e) { |
269 |
|
return false; |
270 |
|
} |
271 |
|
return $result !== false; |
272 |
|
} |
273 |
|
|
274 |
|
/** |
275 |
|
* @param string $streamId |