`; PostgreSQL only) * * @param string $tableName The table from which documents should be deleted * @param array|object $criteria The JSON containment query values * @throws DocumentException If the database mode is not PostgreSQL, or if an error occurs */ public static function byContains(string $tableName, array|object $criteria): void { Custom::nonQuery(Query\Delete::byContains($tableName), Parameters::json(':criteria', $criteria)); } /** * Delete documents matching a JSON Path match query (`@?`; PostgreSQL only) * * @param string $tableName The table from which documents should be deleted * @param string $path The JSON Path match string * @throws DocumentException If the database mode is not PostgreSQL, or if an error occurs */ public static function byJsonPath(string $tableName, string $path): void { Custom::nonQuery(Query\Delete::byJsonPath($tableName), [':path' => $path]); } }