Skip to content

Commit

Permalink
Minor documentation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Oct 7, 2023
1 parent 9896c20 commit ff9795e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ documentation for more details.

If you want to use values directly in a SQL statement (use prepared statements for
security reasons whenever possible!), you have to quote the values using the
[`q()](#dbq) method:
[`q()`](#dbq) method:

```php
$db = $this->db();
Expand Down Expand Up @@ -638,7 +638,7 @@ result set you can iterate over:
$sql = 'SELECT id, label, status FROM product WHERE label LIKE ?';
$result = $this->db()->query( $sql, ['test%'] );

foreach( $result->iterateKeyValue() as $key => $row ) {
foreach( $result->iterateAssociative() as $row ) {
// ...
}
```
Expand Down Expand Up @@ -727,6 +727,7 @@ Upscheme DB object:
} );

$db->hasFkIndexes();
// returns true/false
```

Available class properties are:
Expand Down Expand Up @@ -784,7 +785,7 @@ public function delete( string $table, array $conditions = [] ) : self
* @param **array<string,mixed>** `$conditions` Key/value pairs of column names and value to compare with
* @return **self** Same object for fluid method calls

Warning: The condition values are escaped but the table name and condition
**Warning:** The condition values are escaped but the table name and condition
column names are not! Only use fixed strings for table name and condition
column names but no external input!

Expand Down

0 comments on commit ff9795e

Please sign in to comment.