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
|
@@ 293-301 (lines=9) @@
|
290 |
|
/** |
291 |
|
* @return bool |
292 |
|
*/ |
293 |
|
public function initialized() |
294 |
|
{ |
295 |
|
try { |
296 |
|
$result = $this->connection->query('SELECT 1 FROM `'.self::STREAMS_TABLE.'` LIMIT 1'); |
297 |
|
} catch (\Exception $e) { |
298 |
|
return false; |
299 |
|
} |
300 |
|
return $result !== false; |
301 |
|
} |
302 |
|
|
303 |
|
/** |
304 |
|
* @param string $streamId |