You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All row data (columns) are automatically parsed to the correct PHP types (detected from the DB column type - but no DB structure is read, PG send type of all columns in the result).
316
316
317
-
You can get your own data (manually passed, not from DB) parsed to the same type as have the column in the result:
318
-
319
-
```php
320
-
$result = $connection->query('SELECT id, nick, active FROM users');
321
-
322
-
$data = $result->parseColumnValue('id', '123');
323
-
dump($data); // (integer) 123
324
-
```
325
-
326
317
On the result object, we can also check what columns were accessed in our application. You can check this before your request ends, and you can get possible columns that are unnecessary to be selected from the DB:
0 commit comments