Yann Weber
e74623b1a4
Disabling an annoying warning when using reflect=True in MetaData instanciation
пре 9 година
Yann Weber
f26e87f621
Adding default date for date_create and date_update columns
The dates are set in EmComponent::create() for date_create and in EmComponent::save() for date_update
The values are sets to datetime.datetime.utcnow() so we now that EVERY date in the db are in UTC, no matter django, database or even server configurations.
We will have to take care to convert dates from database to django timezone in dates fieldtypes.
пре 9 година
Yann Weber
c100dd43f3
Adding default date for date_create and date_update columns
The dates are set in EmComponent::create() for date_create and in EmComponent::save() for date_update
The values are sets to datetime.datetime.utcnow() so we now that EVERY date in the db are in UTC, no matter django, database or even server configurations.
We will have to take care to convert dates from database to django timezone in dates fieldtypes.
пре 9 година
Yann Weber
7fb90e3045
Set some FK of EmField to NULL by default
пре 9 година
Yann Weber
f958efbff5
Code factorisation for new UID creation
Added a classmethod EmComponent::newUid() that determines the caller's class and return a newly registrated UID
пре 9 година
Yann Weber
c4e1afd192
More SQL isolation and some little bugfixes
пре 9 година
Yann Weber
493149cfeb
Added sqlutils functions
пре 9 година
ArnAud
fa9b842a3d
all uids ar integers
пре 9 година
Yann Weber
c901e7a643
Bugfixes in sqlsetup
Put every uid columns and associated FK in INTEGER instead of VARCHAR(50)
пре 9 година
Yann Weber
8fc072f6ee
Cleaning and changin some methods name in sqlwrapper
пре 9 година
Yann Weber
6ab79eb412
Implemented alter table in sqlwrapper
Adding a column is implemented for mysql, postgresql and sqlite.
Droping and altering a column is only implemented for mysql and postgresql for the moment.
Quick&dirty tests has been done for sqlite and mysql only.
пре 9 година
Driky
49994da98f
Prise en charge de la clause bindparam dans sqlquerybuilder.py
To-Do: tester
пре 9 година
Driky
f937a63b53
Ajout de insert et delete dans sqlquerybuilder.py
To-do: prendre en charge le cas de execute ou une query a des parametre binder et une liste de dictionnaire est envoyé en param
пре 9 година
Driky
d66ccfc431
sqlobject.py renommer en sqlquerybuilder.py
Implementation d'alias au ordre sqlalchemy: select, select_from, where, update, execute
To-Do: implemente insert et delete, tester.
пре 9 година
ArnAud
58a4d7c681
Schéma: uid as integer, no column named 'class'
пре 9 година
Yann Weber
b82ccd7911
Allow to use SqlWrapper.createTable without being called by SqlWrapper.createAllFromConf
пре 9 година
Yann Weber
ddfbb2b056
Modified SqlWrapper to handle SqlSetup script
Now SQLSetup in able (via initDb) to initialize the database.
WARNING : initDb start by droping all tables in database before creating the new ones
пре 9 година
Yann Weber
dde02cadd0
New version of sqlwrapper that is not a singleton anymore
пре 9 година
Yann Weber
1a6a367481
Removed lines cut after 72 chars
пре 9 година
Yann Weber
9896c16e8e
Small bugfixes in sqlobject and sqlwrapper
пре 9 година
Yann Weber
4120a45fff
Bugfixes in sqlwrapper
пре 9 година
Yann Weber
a25e97607c
Updated version of the sqlwrapper
пре 9 година
Yann Weber
155e089750
Added some test for sql_wrapper alter schema functions
пре 9 година
Yann Weber
c7defe71e0
Added tests for sqlwrapper
Removed logging test in EditorialModel/lib/component.py
Added comment in Database/sqlwrapper.py
пре 9 година
Yann Weber
aad5586cb1
Updated sqlwrapper to enable sqlite support and logging enable/disable
пре 9 година
ArnAud
4e2b85328c
ME: installation of the basic tables
пре 9 година
Yann Weber
ebdb512500
Modification to be less dependent to django + logging in db wrapper
пре 9 година
ArnAud
3ce6e1774e
sqlWrapper: default attend un objet
пре 9 година
Yann Weber
07209417a7
Refactoring comments in db wrapper
пре 9 година
ArnAud
3e80b68303
connection à une base de donnée
пре 9 година
Roland Haroutiounian
966e16a2bb
Paramétrage des noms de connexion dans le module Databases
пре 9 година
Roland Haroutiounian
d8d0f9f303
Ajout du module Database
пре 9 година