Skip to content

Commit bbef9e7

Browse files
committed
Update README.md
1 parent bee3a2c commit bbef9e7

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

Diff for: README.md

+22-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,24 @@ $db->table('posts')
182182
->delete();
183183
```
184184

185+
### limit :
186+
get first 10 rows
187+
```php
188+
$db->table('posts')
189+
->where('vote',">", 3)
190+
->limit(10)
191+
->select();
192+
```
185193

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+
```
186203
--------------------------------
187204

188205
# Data Definition Language (DDL) :
@@ -239,7 +256,7 @@ $schema = [
239256
'id' => 'increments',
240257
'username' => 'string:100|not_null',
241258
'full_name' => 'string:255|defualt:no-name',
242-
'joind' => 'timestamps',
259+
'joined' => 'timestamp',
243260
'user_email' => 'string:100|not_null',
244261
];
245262

@@ -304,6 +321,10 @@ $db->table('users')->alterSchema(['drop', 'full_name'])->alter();
304321
* Oracle Call Interface (OCI)
305322
* ADD : multi where
306323
* ADD : type of where
324+
* ADD : show query
325+
* FIX : default constraint
326+
* ADD : limit function
327+
* ADD : offset function
307328
* rebuilt 80% of methods
308329
* change License terms
309330
#### 1.1.0

0 commit comments

Comments
 (0)