doc: remove reference to where() from README

This commit is contained in:
Victor Westerlund 2024-09-25 13:16:28 +00:00
parent c5d5954fcb
commit 1e21cbabd9

View file

@ -5,7 +5,6 @@ This library provides abstraction methods for common operations on MySQL-like da
For example:
```php
MySQL->for(string $table)
->with(?array $model)
->where(?array ...$conditions)
->order(?array $order_by)
->limit(int|array|null $limit)
@ -367,13 +366,3 @@ $coffee = MySQL->for("beverages")->limit(3, 2)->select(["beverage_name", "bevera
// ...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()`