Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mlevent committed Sep 23, 2021
1 parent ab35f52 commit 40edce9
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ $update = $db->raw('UPDATE payments SET active = !active WHERE status = ?', ['pa
Birincil anahtarla eşleşen kaydı döndürür.

```php
$find = $db->table('products')
->find(15)
->first();
$find = $db->find(15)
->first('products');
```

- `find(15)`
Expand All @@ -113,15 +112,15 @@ $total = $db->where('userGroup', 'Admin')
Etkilenen satır sayısı veya okunan satır sayısına ulaşmak için kullanılır.

```php
$db->rowCount();
echo $db->rowCount();
```

## lastInsertId()

Insert işlemlerinde kaydedilen son satırın birincil anahtarını döndürür.

```php
$db->lastInsertId();
echo $db->lastInsertId();
```

---
Expand Down Expand Up @@ -315,10 +314,10 @@ $touch = $db->table('products')

## Delete

Bir veya birden fazla kaydı silmek için kullanılır. Örnekte `products` tablosundaki `slug` sütunu boş olan tüm satırlar silinir.
Bir veya birden fazla kaydı silmek için kullanılır.

```php
$delete = $db->isNull('slug')
$delete = $db->in('id', [321, 412, 324, 142])
->delete('products');
```

Expand Down Expand Up @@ -640,4 +639,4 @@ Metodlar: `truncate()`, `drop()`, `optimize()`, `analyze()`, `check()`, `checksu

## Contributors

- [mlevent](https://github.com/mlevent) Mert Levent - creator, maintainer
- [mlevent](https://github.com/mlevent) Mert Levent

0 comments on commit 40edce9

Please sign in to comment.