@@ -78,4 +78,49 @@ class Connection
7878 */
7979 public function transactional(Closure $func);
8080
81+ /**
82+ * Executes an SQL DELETE statement on a table.
83+ *
84+ * Table expression and columns are not escaped and are not safe for user-input.
85+ *
86+ * @param __doctrine-literal-string $table
87+ * @param array<__doctrine-literal-string, mixed> $criteria
88+ * @param array<int<0,max>, string|ParameterType|Type>|array<string, string|ParameterType|Type> $types
89+ *
90+ * @return int|numeric-string The number of affected rows.
91+ *
92+ * @throws Exception
93+ */
94+ public function delete(string $table, array $criteria = [], array $types = []): int|string;
95+
96+ /**
97+ * Executes an SQL UPDATE statement on a table.
98+ *
99+ * Table expression and columns are not escaped and are not safe for user-input.
100+ *
101+ * @param __doctrine-literal-string $table
102+ * @param array<__doctrine-literal-string, mixed> $data
103+ * @param array<__doctrine-literal-string, mixed> $criteria
104+ * @param array<int<0,max>, string|ParameterType|Type>|array<string, string|ParameterType|Type> $types
105+ *
106+ * @return int|numeric-string The number of affected rows.
107+ *
108+ * @throws Exception
109+ */
110+ public function update(string $table, array $data, array $criteria = [], array $types = []): int|string;
111+
112+ /**
113+ * Inserts a table row with specified data.
114+ *
115+ * Table expression and columns are not escaped and are not safe for user-input.
116+ *
117+ * @param __doctrine-literal-string $table
118+ * @param array<__doctrine-literal-string, mixed> $data
119+ * @param array<int<0,max>, string|ParameterType|Type>|array<string, string|ParameterType|Type> $types
120+ *
121+ * @return int|numeric-string The number of affected rows.
122+ *
123+ * @throws Exception
124+ */
125+ public function insert(string $table, array $data, array $types = []): int|string;
81126}
0 commit comments