From ca15f5ca56dccaab72fb565459e2b14a1da2d3c3 Mon Sep 17 00:00:00 2001 From: Alican Date: Thu, 1 Mar 2018 14:53:11 +0300 Subject: [PATCH] =?UTF-8?q?run=20metodu=20all=20ile=20de=C4=9Fi=C5=9Ftiril?= =?UTF-8?q?di.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Son yapılan güncelleme ile run() metodunu all() ile değiştirildi. --- examples/all.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/all.php b/examples/all.php index 81a24b1..af50228 100644 --- a/examples/all.php +++ b/examples/all.php @@ -8,7 +8,7 @@ // select query $db->from('table_name') - ->run(); + ->all(); // single select query $db->from('table_name') @@ -22,32 +22,32 @@ // join $db->from('table_name') ->join('other_table', '%s.other_table_id = %s.table_id') - ->run(); + ->all(); // left join $db->from('table_name') ->left_join('other_table', '%s.other_table_id = %s.table_id') - ->run(); + ->all(); // right join $db->from('table_name') ->right_join('other_table', '%s.other_table_id = %s.table_id') - ->run(); + ->all(); // orderby $db->from('table_name') ->orderby('column_name', 'ASC') - ->run(); + ->all(); // groupby $db->from('table_name') ->groupby('column_name') - ->run(); + ->all(); // limit $db->from('table_name') ->limit(0, 20) - ->run(); + ->all(); // with where.. $db->from('table_name') @@ -125,7 +125,7 @@ $query = $db->from('users') ->orderby('user_id', 'DESC') ->limit($pagination['start'], $pagination['limit']) - ->run(); + ->all(); print_r($query);