mirror of
https://codeberg.org/vlw/php-mysql.git
synced 2025-09-14 00:33:41 +02:00
doc: remove reference to where()
from README
This commit is contained in:
parent
c5d5954fcb
commit
1e21cbabd9
1 changed files with 0 additions and 11 deletions
11
README.md
11
README.md
|
@ -5,7 +5,6 @@ This library provides abstraction methods for common operations on MySQL-like da
|
||||||
For example:
|
For example:
|
||||||
```php
|
```php
|
||||||
MySQL->for(string $table)
|
MySQL->for(string $table)
|
||||||
->with(?array $model)
|
|
||||||
->where(?array ...$conditions)
|
->where(?array ...$conditions)
|
||||||
->order(?array $order_by)
|
->order(?array $order_by)
|
||||||
->limit(int|array|null $limit)
|
->limit(int|array|null $limit)
|
||||||
|
@ -367,13 +366,3 @@ $coffee = MySQL->for("beverages")->limit(3, 2)->select(["beverage_name", "bevera
|
||||||
// ...etc
|
// ...etc
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
# Restrict affected/returned database columns to table model
|
|
||||||
|
|
||||||
Chain and pass an array to `MySQL->with()` before a `select()`, `update()`, or `insert()` method to limit which columns will be returned/affected. It will use the **values** of the array so it can be either sequential or associative.
|
|
||||||
|
|
||||||
**This method will cause `select()`, `update()`, and `insert()` to ignore any columns that are not present in the passed table model.**
|
|
||||||
|
|
||||||
You can remove an already set table model by passing `null` to `MySQL->with()`
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue