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
Also, you may call the `query()` method directly on the Table service. In this case a session will be created behind the scenes, and it will proxy your query to the session.
452
-
453
-
```php
454
-
<?php
455
-
456
-
$table = $ydb->table();
457
-
458
-
// making a query
459
-
$result = $table->query('select * from `users` limit 10;');
460
-
461
-
```
462
-
463
450
As soon as your script is finished, the session will be destroyed.
464
451
465
452
## Customizing queries
@@ -469,18 +456,19 @@ Normally, a regular query through the `query()` method is sufficient, but in exc
469
456
```php
470
457
<?php
471
458
472
-
$session = $table->session();
473
-
474
-
// creating a new query builder instance
475
-
$query = $session->newQuery('select * from `users` limit 10;');
0 commit comments