feat(doc): add assoc array ref to README

This commit is contained in:
Victor Westerlund 2024-02-14 09:14:52 +00:00 committed by GitHub
parent 17e9c15e9a
commit c716093be6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,7 +112,9 @@ $coffee = MySQL->for("beverages")->limit(1)->flatten()->select(["beverage_name",
# INSERT
Use `MySQL->insert()` to append a new row to a database table
Use `MySQL->insert()` to append a new row to a database table.
Passing a sequential array to `insert()` will assume that you wish to insert data for all defined columns in the table. Pass an associative array of `[column_name => value]` to INSERT data for specific columns (assuming the other columns have a [DEFAULT](https://dev.mysql.com/doc/refman/8.0/en/data-type-defaults.html) value defined).
```php
MySQL->insert(