summaryrefslogtreecommitdiffstats
path: root/testdb.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-08-10 19:46:10 +0200
committerRemi Collet <fedora@famillecollet.com>2010-08-10 19:46:10 +0200
commit715ba4df3faccf9839f7e194bf41078cae91027b (patch)
tree8bc452daf67cb18c97a05aaab0408c96806c6fe8 /testdb.php
parentfe3d37364bbc072aedac951d4b2acc724ba7393a (diff)
add CommonTable->get() and CommonTable->find() methods
Diffstat (limited to 'testdb.php')
-rw-r--r--testdb.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/testdb.php b/testdb.php
index 3454245..85c78e3 100644
--- a/testdb.php
+++ b/testdb.php
@@ -35,4 +35,35 @@ if ($rpm->update(999, array('stamp'=>2)))
}
$all = $rpm->getAllRepo();
print_r(array_pop($all));
+
+echo "find(devel):";
+if ($row = $rpm->find(array('main'=>'devel'))) {
+ print_r($row);
+} else {
+ echo "not found\n";
+}
+echo "find(rawhide):";
+if ($row = $rpm->find(array('main'=>'rawhide'))) {
+ print_r($row);
+} else {
+ echo "not found\n";
+}
+echo "find():";
+if ($row = $rpm->find(array())) {
+ print_r($row);
+} else {
+ echo "not found\n";
+}
+echo "get(999):";
+if ($row = $rpm->get(999)) {
+ print_r($row);
+} else {
+ echo "not found\n";
+}
+echo "get(888):";
+if ($row = $rpm->get(888)) {
+ print_r($row);
+} else {
+ echo "not found\n";
+}
?>