Closed TysonAndre closed 6 years ago
https://github.com/TysonAndre/PhanSQLPlugin is a WIP
Using Phan's @template
support to override getRows()
or addBindVars
may be useful.
https://secure.php.net/manual/en/mysqli-stmt.bind-param.php and https://secure.php.net/manual/en/mysqli-stmt.bind-result.php may be possible to analyze.
Haven't investigated what the most common approach is (Symfony? ORMs?)
http://php.net/manual/en/pdo.exec.php
E.g. for
$count = $dbh->exec("SELECT rating, name FROM fruit");
int
forexec("DELETE ...")
array<int,array{name:mixed, rating:mixed}>
$dbh->exec(self::_sql_select)
SELECT ... WHERE
)