Skip to content

Commit 2d61b54

Browse files
committed
Pre 7.x release updates
1 parent 26bb5bb commit 2d61b54

1 file changed

Lines changed: 76 additions & 76 deletions

File tree

docs/db-connector-class.md

Lines changed: 76 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -189,72 +189,72 @@ The methods below are convenience methods for executing SQL SELECT queries and g
189189
> This argument has NO IMPACT on your query. You can ignore it if you are not using the query logging feature which is explained later below.
190190
191191
```php
192-
/////////////////////////////////////////////////////////////
193-
// Use this to fetch the first row returned by the select
194-
// query as an associative array where the keys are the
195-
// column names
196-
//
197-
// - If the query returns no rows, false is returned
198-
/////////////////////////////////////////////////////////////
199-
public function dbFetchOne(
200-
string $select_query,
201-
array $parameters = [],
202-
?object $calling_object=null
203-
): mixed
204-
205-
/////////////////////////////////////////////////////////////
206-
// Use this to fetch a sequential array of all rows returned
207-
// by the select query ( where each row is an associative
208-
// array where the keys are the column names)
209-
//
210-
// - An empty array is returned if no row is returned by
211-
// the query
212-
/////////////////////////////////////////////////////////////
213-
public function dbFetchAll(
214-
string $select_query,
215-
array $parameters = [],
216-
?object $calling_object=null
217-
): array
218-
219-
/////////////////////////////////////////////////////////////
220-
// Use this to fetch a sequential array of the first column
221-
// from all rows returned by the select query
222-
//
223-
// - An empty array is returned if no row is returned by
224-
// the query
225-
/////////////////////////////////////////////////////////////
226-
public function dbFetchCol(
227-
string $select_query,
228-
array $parameters = [],
229-
?object $calling_object=null
230-
): array
231-
232-
/////////////////////////////////////////////////////////////
233-
// Use this to fetch an associative array where keys are
234-
// made up of values from the first specified database
235-
// table column and the values are from the second
236-
// specified database column in the select query.
237-
//
238-
// - An empty array is returned if no row is returned by
239-
// the query
240-
/////////////////////////////////////////////////////////////
241-
public function dbFetchPairs(
242-
string $select_query,
243-
array $parameters = [],
244-
?object $calling_object=null
245-
): array
246-
247-
/////////////////////////////////////////////////////////////
248-
// Use this to fetch the value of the first row in the
249-
// first column returned by the select query.
250-
//
251-
// - Null is returned if the query returns no rows
252-
/////////////////////////////////////////////////////////////
253-
public function dbFetchValue(
254-
string $select_query,
255-
array $parameters = [],
256-
?object $calling_object=null
257-
): mixed
192+
/////////////////////////////////////////////////////////////
193+
// Use this to fetch the first row returned by the select
194+
// query as an associative array where the keys are the
195+
// column names
196+
//
197+
// - If the query returns no rows, false is returned
198+
/////////////////////////////////////////////////////////////
199+
public function dbFetchOne(
200+
string $select_query,
201+
array $parameters = [],
202+
?object $calling_object=null
203+
): mixed
204+
205+
/////////////////////////////////////////////////////////////
206+
// Use this to fetch a sequential array of all rows returned
207+
// by the select query ( where each row is an associative
208+
// array where the keys are the column names)
209+
//
210+
// - An empty array is returned if no row is returned by
211+
// the query
212+
/////////////////////////////////////////////////////////////
213+
public function dbFetchAll(
214+
string $select_query,
215+
array $parameters = [],
216+
?object $calling_object=null
217+
): array
218+
219+
/////////////////////////////////////////////////////////////
220+
// Use this to fetch a sequential array of the first column
221+
// from all rows returned by the select query
222+
//
223+
// - An empty array is returned if no row is returned by
224+
// the query
225+
/////////////////////////////////////////////////////////////
226+
public function dbFetchCol(
227+
string $select_query,
228+
array $parameters = [],
229+
?object $calling_object=null
230+
): array
231+
232+
/////////////////////////////////////////////////////////////
233+
// Use this to fetch an associative array where keys are
234+
// made up of values from the first specified database
235+
// table column and the values are from the second
236+
// specified database column in the select query.
237+
//
238+
// - An empty array is returned if no row is returned by
239+
// the query
240+
/////////////////////////////////////////////////////////////
241+
public function dbFetchPairs(
242+
string $select_query,
243+
array $parameters = [],
244+
?object $calling_object=null
245+
): array
246+
247+
/////////////////////////////////////////////////////////////
248+
// Use this to fetch the value of the first row in the
249+
// first column returned by the select query.
250+
//
251+
// - Null is returned if the query returns no rows
252+
/////////////////////////////////////////////////////////////
253+
public function dbFetchValue(
254+
string $select_query,
255+
array $parameters = [],
256+
?object $calling_object=null
257+
): mixed
258258
```
259259

260260
Here are some actual examples of how to use the methods above:
@@ -330,17 +330,17 @@ $maxViewCountOfCountsLt4 = $dbConnector->dbFetchValue(
330330
For queries that the **dbFetch\*** methods above can't handle, you can use the **runQuery** method. For example, delete, insert, complex select queries, update and other types of queries.
331331

332332
```php
333-
/////////////////////////////////////////////////////////////
334-
// Runs a query and returns the result as an instance of
335-
// \LeanOrm\DBExceuteQueryResult
336-
/////////////////////////////////////////////////////////////
337-
public function runQuery(
338-
string $query,
339-
array $parameters=[],
340-
?object $calling_object=null
341-
): \LeanOrm\DBExceuteQueryResult
333+
/////////////////////////////////////////////////////////////
334+
// Runs a query and returns the result as an instance of
335+
// \LeanOrm\DBExceuteQueryResult
336+
/////////////////////////////////////////////////////////////
337+
public function runQuery(
338+
string $query,
339+
array $parameters=[],
340+
?object $calling_object=null
341+
): \LeanOrm\DBExceuteQueryResult
342342
```
343-
Here are some actual examples of how to use **runQuery**:
343+
Here is an actual example of how to use **runQuery**:
344344

345345
```php
346346
$queryResult1 = $dbConnector->runQuery(

0 commit comments

Comments
 (0)