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
Use paginate() instead of get() to fetch paginated result
217
271
```php
@@ -630,6 +684,7 @@ if (!$db->insert ('myTable', $insertData)) {
630
684
}
631
685
```
632
686
687
+
633
688
### Error helpers
634
689
After you executed a query you have options to check if there was an error. You can get the MySQL error string or the error code for the last executed query.
635
690
```php
@@ -668,3 +723,27 @@ print_r ($db->trace);
668
723
)
669
724
670
725
```
726
+
727
+
##Table Locking
728
+
To lock tables, you can use the **lock** method together with **setLockMethod**.
729
+
The following example will lock the table **users** for **write** access.
730
+
```php
731
+
$db->setLockMethod("WRITE")->lock("users");
732
+
```
733
+
734
+
Calling another **->lock()** will remove the first lock.
0 commit comments