mini\Table\Contracts\MutableTableInterface abstract interface

Documentation

Interface for tables that support INSERT, UPDATE, and DELETE operations

UPDATE and DELETE take a query parameter that specifies which rows to affect. The query must be derived from the same underlying table:

$table->delete($table->eq('status', 'inactive'));
$table->update($table->gt('age', 65), ['retired' => true]);

Implementations MUST validate that the query is compatible (e.g., same underlying storage) and throw InvalidArgumentException if not.

Inheritance

Implements: mini\Table\Contracts\TableInterface Traversable Countable IteratorAggregate mini\Table\Contracts\SetInterface

Methods (31)

Update rows matching the query

Delete rows matching the query

Get column definitions for this table (SetInterface method)

Get all column definitions regardless of projection

Filter rows where column equals value (NULL uses IS NULL semantics)

Filter rows where column is less than value

Filter rows where column is less than or equal to value

Filter rows where column is greater than value

Filter rows where column is greater than or equal to value

Filter rows where column value is in the given set

Filter rows where column matches a LIKE pattern

Return rows that are in this table OR the other table (set union)

Filter rows matching any of the given predicates (OR semantics)

Return rows that are in this table but NOT in the other set (set difference)

Project to specific columns

Check if value(s) exist in the table's projected columns (SetInterface method)

Set ordering (overwrites previous)

Set maximum number of rows to return (overwrites previous)

Set number of rows to skip (overwrites previous)

Get current limit (null if unlimited)

Get current offset (0 if not set)

Check if the table has any rows

Load a single row by its row ID

Return table with duplicate rows removed

Return table with aliased column names

Check if a property exists (including null values)

Return table with property set

Documentation missing

Documentation missing

Source

src/Table/Contracts/MutableTableInterface.php:19-47