File tree 1 file changed +22
-1
lines changed
1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,24 @@ $db->table('posts')
182
182
->delete();
183
183
```
184
184
185
+ ### limit :
186
+ get first 10 rows
187
+ ``` php
188
+ $db->table('posts')
189
+ ->where('vote',">", 3)
190
+ ->limit(10)
191
+ ->select();
192
+ ```
185
193
194
+ ### limit :
195
+ get first 10 rows offset 3
196
+ ``` php
197
+ $db->table('posts')
198
+ ->where('vote',">", 3)
199
+ ->limit(10)
200
+ ->offset(3)
201
+ ->select();
202
+ ```
186
203
--------------------------------
187
204
188
205
# Data Definition Language (DDL) :
@@ -239,7 +256,7 @@ $schema = [
239
256
'id' => 'increments',
240
257
'username' => 'string:100|not_null',
241
258
'full_name' => 'string:255|defualt:no-name',
242
- 'joind ' => 'timestamps ',
259
+ 'joined ' => 'timestamp ',
243
260
'user_email' => 'string:100|not_null',
244
261
];
245
262
@@ -304,6 +321,10 @@ $db->table('users')->alterSchema(['drop', 'full_name'])->alter();
304
321
* Oracle Call Interface (OCI)
305
322
* ADD : multi where
306
323
* ADD : type of where
324
+ * ADD : show query
325
+ * FIX : default constraint
326
+ * ADD : limit function
327
+ * ADD : offset function
307
328
* rebuilt 80% of methods
308
329
* change License terms
309
330
#### 1.1.0
You can’t perform that action at this time.
0 commit comments