modifs.mineures sans commentaires
This commit is contained in:
parent
a587f99e42
commit
c78196450e
@ -40,12 +40,20 @@ class SqliteStorage extends CapacitorStorage {
|
||||
return new _sqliteMigration($migrations, $channel->getName());
|
||||
}
|
||||
|
||||
function channelExists(string $name): bool {
|
||||
return null !== $this->db->get([
|
||||
"select name",
|
||||
function channelExists(string $name, ?array &$row=null): bool {
|
||||
$row = $this->db->one([
|
||||
"select",
|
||||
"from" => static::CHANNELS_TABLE,
|
||||
"where" => ["name" => $name],
|
||||
]);
|
||||
return $row !== null;
|
||||
}
|
||||
|
||||
function getChannels(): iterable {
|
||||
return $this->db->all([
|
||||
"select",
|
||||
"from" => static::CHANNELS_TABLE,
|
||||
]);
|
||||
}
|
||||
|
||||
protected function _addToChannelsSql(CapacitorChannel $channel): array {
|
||||
|
Loading…
x
Reference in New Issue
Block a user