Skip to content

Commit

Permalink
updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 16, 2012
1 parent 322a110 commit 10fdecf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions examples/query-language-and-conditions.php
Expand Up @@ -9,8 +9,8 @@


dibi::connect(array(
'driver' => 'sqlite',
'database' => 'data/sample.sdb',
'driver' => 'sqlite3',
'database' => 'data/sample.s3db',
));


Expand Down Expand Up @@ -56,3 +56,11 @@
%else 1 LIMIT 10 %end'
);
// -> SELECT * FROM customers WHERE LIMIT 10



// IF()
dibi::test('UPDATE products SET', array(
'price' => array('IF(price_fixed, price, ?)', 123),
));
// -> SELECT * FROM customers WHERE LIMIT 10
4 changes: 2 additions & 2 deletions examples/query-language-basic-examples.php
Expand Up @@ -11,8 +11,8 @@


dibi::connect(array(
'driver' => 'sqlite',
'database' => 'data/sample.sdb',
'driver' => 'sqlite3',
'database' => 'data/sample.s3db',
));


Expand Down

0 comments on commit 10fdecf

Please sign in to comment.