@@ -74,4 +74,100 @@ class Connection
7474 */
7575 public function transactional(Closure $func);
7676
77+ /**
78+ * @param list<mixed>|array<string, mixed> $params
79+ * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
80+ *
81+ * @return array<string, mixed>|false
82+ *
83+ * @throws Exception
84+ *
85+ * @phpstan-impure
86+ */
87+ public function fetchAssociative(string $query, array $params = [], array $types = []): array|false;
88+
89+ /**
90+ * @param list<mixed>|array<string, mixed> $params
91+ * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
92+ *
93+ * @return list<mixed>|false
94+ *
95+ * @throws Exception
96+ *
97+ * @phpstan-impure
98+ */
99+ public function fetchNumeric(string $query, array $params = [], array $types = []): array|false
100+
101+ /**
102+ * @param list<mixed>|array<string, mixed> $params
103+ * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
104+ *
105+ * @return mixed|false
106+ *
107+ * @throws Exception
108+ *
109+ * @phpstan-impure
110+ */
111+ public function fetchOne(string $query, array $params = [], array $types = []): mixed
112+
113+ /**
114+ * @param list<mixed>|array<string, mixed> $params
115+ * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
116+ *
117+ * @return list<list<mixed>>
118+ *
119+ * @throws Exception
120+ *
121+ * @phpstan-impure
122+ */
123+ public function fetchAllNumeric(string $query, array $params = [], array $types = []): array
124+
125+ /**
126+ * @param list<mixed>|array<string, mixed> $params
127+ * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
128+ *
129+ * @return list<array<string,mixed>>
130+ *
131+ * @throws Exception
132+ *
133+ * @phpstan-impure
134+ */
135+ public function fetchAllAssociative(string $query, array $params = [], array $types = []): array
136+
137+ /**
138+ * @param list<mixed>|array<string, mixed> $params
139+ * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
140+ *
141+ * @return array<mixed,mixed>
142+ *
143+ * @throws Exception
144+ *
145+ * @phpstan-impure
146+ */
147+ public function fetchAllKeyValue(string $query, array $params = [], array $types = []): array
148+
149+ /**
150+ * @param list<mixed>|array<string, mixed> $params
151+ * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
152+ *
153+ * @return array<mixed,array<string,mixed>>
154+ *
155+ * @throws Exception
156+ *
157+ * @phpstan-impure
158+ */
159+ public function fetchAllAssociativeIndexed(string $query, array $params = [], array $types = []): array
160+
161+ /**
162+ * @param list<mixed>|array<string, mixed> $params
163+ * @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
164+ *
165+ * @return list<mixed>
166+ *
167+ * @throws Exception
168+ *
169+ * @phpstan-impure
170+ */
171+ public function fetchFirstColumn(string $query, array $params = [], array $types = []): array
172+
77173}
0 commit comments