cfa429df0f
dblayer : add the hookpreread and the hookpostread
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2267 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-21 11:43:18 +00:00
e0b6aa77d2
dblayer : add a Singleton to not reconnect each time we need to access the same database.
...
dblayer : add a method to disconnect the database engine
dblayer : add the transactions methods, linke in PDO
dblayer : remove the extension of PDO
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2259 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-20 12:19:58 +00:00
5f3e003b70
dblayer : create table : add "if not exists"
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2241 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-08-14 08:59:40 +00:00
4cd06da7da
dblayer : sqlite : chmod 0666 only if the file exists
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2098 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-04-29 11:28:56 +00:00
160d8e7a46
dblayer : allow insert of integer data
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2082 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-04-27 20:39:38 +00:00
97ede7f03b
dblayer : don't allow anything than strings. Null parameters are skipped
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2059 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-23 15:01:21 +00:00
ede724a76d
dblayer : don't allow the information which are not string
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2057 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-23 14:39:57 +00:00
d0dfe2dba1
dblayer : correct the test of write access to sqlite
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2056 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-23 13:02:58 +00:00
1cfc21e5f0
dblayer : check if the unique key is defined before using it in UPDATE. If not defined, use primary key
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2052 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-23 11:08:28 +00:00
5f441df4b7
dblayer : add the connected tests before using the SQLITE PDO engine
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2051 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-23 09:49:49 +00:00
839d71a44f
dblayer : add a exception if the provided PDO driver is not known
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2050 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-23 09:42:39 +00:00
ba5f375b5a
dblayer : bad function name
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2047 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-22 08:15:35 +00:00
e3bec29cf8
dblayer : bad function name
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2046 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-22 08:14:30 +00:00
8897e82170
dblayer : add support to hooks (pre|post)(insert|update|delete)
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2042 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-22 04:18:05 +00:00
cb5f651247
dblayer : don't do the update if no data is provided
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2036 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-21 15:48:27 +00:00
9628c604fd
dblayer : remove a 506 http code unknown
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2023 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-13 10:48:34 +00:00
211dbfcefb
dblayer : don't allow the foreign keys to be in the select : conflict
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2022 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-13 10:44:24 +00:00
d590337cf5
dblayer : add the possibility to filtering on foreignkeys when reading
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2021 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-03-13 10:35:24 +00:00
b4241e1f30
dblayer : Check if the database is connected before using it
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1985 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-02-02 13:49:33 +00:00
b152996eab
dblayer : Removing the unused singleton
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1951 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-01-27 18:05:33 +00:00
e49a5a97af
dbLayer : new format with static call to limit the number of connection to the database
...
authzgroups : update to support the new dbLayer format
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1950 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-01-27 17:38:25 +00:00
4f23451432
dbLayer : don't connect multiple times to the same database/username
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1949 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-01-27 14:37:25 +00:00
53cd221538
DBLayer : Allow the order of column with name 'group' by adding separator
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1917 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2015-01-07 03:23:34 +00:00
153c58a39c
dblayer : Check before update if multiple unique keys are not used before doing the update
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1858 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-10-02 13:57:19 +00:00
b80f9ecdea
BUG : dblayer : don't raise an exception when re-inserting unique record
...
dblayer : add more unit tests
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1850 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-24 09:13:18 +00:00
6e97bad1f7
dblayer : foreign keys are not mandatory in update (in verify)
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1844 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-22 11:32:54 +00:00
5085627b1d
dblayer : be OK if the error of dblayer is an array or a string
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1843 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-22 11:18:35 +00:00
b034fa3625
dblayer : add more debug
...
dblayer : add more unit tests (foreign keys)
dblayer : add the same answer when updating a line with the same informations
dblayer : better support of foreign keys
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1842 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-22 10:52:53 +00:00
19966c094c
dblayer : force the autoincrement values in INSERT to be compliant with our tests
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1841 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-19 12:22:20 +00:00
6d789a1651
dblayer : force the autoincrement fields to null in insert to have a value
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1840 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-19 12:19:44 +00:00
02bc20dd5d
dblayer : correct tue verify in updates : must pass the key
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1838 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-19 11:07:29 +00:00
e81452a782
Remove the field name in tests : it is in the key
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1837 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-19 08:54:52 +00:00
ac15d8b3c3
Add translation to new dblayers
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1836 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-19 08:52:35 +00:00
c71452932f
dblayer : return the verify result with priority
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1834 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-19 08:38:07 +00:00
7df93f95db
dblayer : push the verify before insert/update in a public method, callable from in HTML before doing the work. Keep the verifications before doing the real modification of the database
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1829 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-19 07:23:06 +00:00
a1c5a35899
dblayer : allow the titles to be defined in public variable in plus of a function which can be overloaded
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1828 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-17 13:54:02 +00:00
29e92c1147
dblayer : reindent / add a todo
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1817 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-15 14:19:31 +00:00
2c21043a9e
BUG : dblayer : UPDATE can now update the table primary key too
...
dblayer : add support of the differents field separator (choosed by DB engine)
Add more unit tests
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1813 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-12 14:14:26 +00:00
b2264440a4
dblayer : add more unittests
...
dblayer : add compatibility in column names with MySQL and SQLite
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1812 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-12 12:56:18 +00:00
5e93c78ddb
dblayer : Force using UTF8 for MySQL and PostgreSQL
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1811 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-11 14:44:35 +00:00
50c328cdd6
BUG : dblayer : allow to prepare the SQL with fields containing spaces
...
BUG : dblayer : add more unit tests
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1809 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-11 13:05:53 +00:00
b496dadc62
BUG : dblayer : allow to create more than one foreign key
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1808 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-10 14:41:22 +00:00
effbc9f4a8
Correct indentation error
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1807 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-10 11:38:30 +00:00
675ecee530
dblayer : Add support to OR in WHERE clause
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1806 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-09-10 11:13:57 +00:00
33e87e33de
Add Exception code in dblayer
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1701 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-11 14:59:17 +00:00
b8a3e1aa23
Update domframework to be gettext package compliant
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1661 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-06 13:16:43 +00:00
40ad90502c
dblayer : Add dropTable support
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1644 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-01 08:04:54 +00:00
9fef934b71
Cosmetics : remove spaces at the end of lines and correct lines with more than 80 chars
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1643 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-08-01 07:11:14 +00:00
dea292339a
dblayer : don't check the non provided field in update
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1623 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-31 12:54:04 +00:00
33f15aff33
dblayer: Add the verification of the types of fields in update
...
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1622 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
2014-07-31 12:47:19 +00:00