CodeExplorer getPlatformName example
[ ParameterType::STRING,
ParameterType::INTEGER,
]);
return (bool) $result->
fetchOne();
} protected function doClear(string
$namespace): bool
{ if ('' ===
$namespace) { if ('sqlite' ===
$this->
getPlatformName()) { $sql = "DELETE FROM
$this->table";
} else { $sql = "TRUNCATE TABLE
$this->table";
} } else { $sql = "DELETE FROM
$this->table WHERE
$this->idCol LIKE '
$namespace%'";
} try { $this->conn->
executeStatement($sql);
} catch (TableNotFoundException
) { }