From 12e8a96b7a454eeefc908b514741cd179ad705c1 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 15 Mar 2019 13:06:03 +0000 Subject: [PATCH] dblayeroo : update meta function headers git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5124 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- dblayeroo.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dblayeroo.php b/dblayeroo.php index c49501e..76ecc72 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -313,7 +313,7 @@ class dblayeroo natsort ($res); return array_values ($res); } - /* }}} */ + /* }}} */ /** Create the table defined by the differents fields. * Define the SQL syntax based on SQL engines @@ -997,7 +997,7 @@ class dblayeroo information_schema.KEY_COLUMN_USAGE AS kColUsage2, information_schema.REFERENTIAL_CONSTRAINTS AS rCons WHERE - kColUsage1.table_catalog=:dbname + kColUsage1.table_catalog=:dbname AND kColUsage2.table_name=:table AND rCons.constraint_name=kColUsage1.constraint_name AND rCons.unique_constraint_name=kColUsage2.constraint_name @@ -1481,6 +1481,14 @@ class dblayeroo } // }}} + /** Get the meta data or clear them. + * The meta data are all the requests done by the dblayeroo, the time needed + * for each, the number of rows returned by the SQL server. + * They allow to debug the app + * @param boolean|null $meta If meta is set, clear the meta-data. If not set, + * return the actual value of the meta-data + * @return array or $this + */ public function meta ($meta = null) // {{{ {