From 1e21cbabd9c794671c23a8a0e7618e329d2237c2 Mon Sep 17 00:00:00 2001 From: vlw Date: Wed, 25 Sep 2024 13:16:28 +0000 Subject: [PATCH] doc: remove reference to `where()` from README --- README.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/README.md b/README.md index 60fc1b7..c7e7de1 100644 --- a/README.md +++ b/README.md @@ -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()`