Commit Graph

25 Commits

Author SHA1 Message Date
1d1e0cb0b6 dblayer : Move unique fields in each SQL engine
bug dblayer : table name was alwas 'table' (missing $)
adding quotes arround unique fields to support spaces


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1438 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-12 12:00:52 +00:00
a1122a716c Add creationTable function for MySQL, SQLite and PostgreSQL
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1437 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-11 14:50:16 +00:00
87b4c843ef Add the public in functions of dblayer
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1436 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-11 12:23:19 +00:00
57ee35fb22 Fix error in unique fields validation
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1429 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-05 20:18:02 +00:00
3671350f7d Check before using if the SQLite database file is writeable and raise an exceptiion in case of error
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1423 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-05 12:27:36 +00:00
edb78f936c Force Foreignkeys support in SQLite (PRAGMA foreign_keys = ON;)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1422 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-05 11:19:33 +00:00
b7fe8ad341 Missing ! : not test of existing key in an array before update in dblayer
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1412 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-04 16:43:51 +00:00
2e8dd883d2 Add a PDO exception if PDO has a problem
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1408 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-06-04 12:17:22 +00:00
95cd53193e In creation, non mandatory and inexisting fields are not asked
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1340 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-05-21 21:08:43 +00:00
5449ecc27a Skip the primary key in update tests if it is provided
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1331 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-05-21 20:01:24 +00:00
c0d4b0ef24 Update the dbLayer to update more easily the tables
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1317 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-05-21 14:23:09 +00:00
7c2ea07315 Bug : display in read method doesn't function. It always display all the fields
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1262 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-03-26 19:58:13 +00:00
350aa1dea8 Add all the phpdocs to the domframework
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1246 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-03-24 19:44:34 +00:00
7e69a0e978 Correct bug in uniq constrain violation test in update for dblayer
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1240 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-03-23 19:58:55 +00:00
bd575e67ed A little bug : if we don't modify the uniq columns, no need to check if there is a constrain violation
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1239 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-03-23 19:09:42 +00:00
9460c245ef Add a unique constrain in the tables in dblayer. Block the creation/update if the constrain is forced.
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1232 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-03-22 14:57:42 +00:00
32835b4d7c Add an exception to dblayer.php if the datas are not in the right format
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1230 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-03-22 11:55:48 +00:00
544dc3cfed Return the number of rows modified by the request
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1226 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-03-19 20:35:09 +00:00
383e831ff3 Add support to read in dblayer with order and colmuns displayed
Return the number of deleted rows in delete


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1223 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-03-18 18:35:48 +00:00
a11b4d0bb7 Add ordering reads in dblayer
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1222 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-03-17 15:16:14 +00:00
5dbf9bcfcc Suppress a extra space in a SQL command
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1221 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-03-17 14:51:43 +00:00
0a8051a1ce Parameters for read in dblayer are provided in array to have more than one criteria.
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1220 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-03-17 12:52:57 +00:00
ad830056b1 Add correct read support (filter without value, bad key assignement)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1218 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-03-13 19:00:05 +00:00
c05626a567 Missing */ in dblayer
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1213 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-02-28 09:23:09 +00:00
96cf1c4010 First release of domframework
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1207 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-02-27 08:47:54 +00:00