mirror of
https://codeberg.org/vlw/php-mysql.git
synced 2025-09-14 00:33:41 +02:00
fix: fix return types for executor methods
This commit is contained in:
parent
4ffa2ee24f
commit
f35936cea6
1 changed files with 3 additions and 3 deletions
|
@ -173,7 +173,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Create Prepared Statament for SELECT with optional WHERE filters
|
// Create Prepared Statament for SELECT with optional WHERE filters
|
||||||
public function select(array|string|null $columns = null): mysqli_result {
|
public function select(array|string|null $columns = null): mysqli_result|bool {
|
||||||
$this->throw_if_no_table();
|
$this->throw_if_no_table();
|
||||||
|
|
||||||
// Create array of columns from CSV
|
// Create array of columns from CSV
|
||||||
|
@ -206,7 +206,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create Prepared Statement for UPDATE using PRIMARY KEY as anchor
|
// Create Prepared Statement for UPDATE using PRIMARY KEY as anchor
|
||||||
public function update(array $entity): mysqli_result {
|
public function update(array $entity): mysqli_result|bool {
|
||||||
$this->throw_if_no_table();
|
$this->throw_if_no_table();
|
||||||
|
|
||||||
// Make constraint for table model if defined
|
// Make constraint for table model if defined
|
||||||
|
@ -238,7 +238,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create Prepared Statemt for INSERT
|
// Create Prepared Statemt for INSERT
|
||||||
public function insert(array $values): mysqli_result {
|
public function insert(array $values): mysqli_result|bool {
|
||||||
$this->throw_if_no_table();
|
$this->throw_if_no_table();
|
||||||
|
|
||||||
// A value for each column in table model must be provided
|
// A value for each column in table model must be provided
|
||||||
|
|
Loading…
Add table
Reference in a new issue