modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2024-10-01 16:30:58 +04:00
parent 2e58cbd49f
commit ec367b8a12
1 changed files with 1 additions and 2 deletions

View File

@ -104,18 +104,17 @@ Application::run(new class extends Application {
} }
} }
if (!$found) self::die("Vous devez spécifier le canal de données"); if (!$found) self::die("Vous devez spécifier le canal de données");
else self::exit();
} }
$capacitor = new Capacitor($storage, $channel); $capacitor = new Capacitor($storage, $channel);
switch ($this->action) { switch ($this->action) {
case self::ACTION_QUERY: case self::ACTION_QUERY:
$args = $this->args; $args = $this->args;
var_export($args); #XXX
if (!$args) { if (!$args) {
# lister les id # lister les id
$out = new Stream(STDOUT); $out = new Stream(STDOUT);
$primaryKeys = $storage->getPrimaryKeys($channel); $primaryKeys = $storage->getPrimaryKeys($channel);
var_export($primaryKeys); #XXX
$rows = $db->all([ $rows = $db->all([
"select", "select",
"cols" => $primaryKeys, "cols" => $primaryKeys,