Yann Weber
889abc8547
Put the database configuration asinstance attribute of EmComponent
пре 9 година
Roland Haroutiounian
b03958a65a
Suppression de sqlutils.getEngine au profit de sqlutils.get_engine
пре 9 година
Roland Haroutiounian
3f4ee09c9f
Normalisation PEP8/Pylint sur sqlsetup.py
пре 9 година
Roland Haroutiounian
b774d33fae
Nettoyage et mise en conformité PEP 8 de sqlutils.py
пре 9 година
Roland Haroutiounian
2bae702a8b
Ajout de l'alias get_engine dans sqlutils.py
пре 9 година
Roland Haroutiounian
1796990944
[PEP8] Nettoyage de Database/sqlutils.py
пре 9 година
Roland Haroutiounian
1322e14d6b
Normalisation PEP8/Pylint sur sqlsetup.py
пре 9 година
Roland Haroutiounian
c3f736ca43
Nettoyage et mise en conformité PEP 8 de sqlutils.py
пре 9 година
Roland Haroutiounian
ad3c662a47
Ajout de l'alias get_engine dans sqlutils.py
пре 9 година
Roland Haroutiounian
8e91c99fae
[PEP8] Nettoyage de Database/sqlutils.py
пре 9 година
Yann Weber
6af0b45f3f
Code factorization on EmType select and unselect fields. Added comparison capabilities to EmComponent (and childs)
Implemented __hash__ and __eq__ for EmComponent (based on class name and uid) to test equality betwenn two instance. Allows to use "instance in instance_list" syntax
пре 9 година
Yann Weber
a3b9daf319
sqlwrapper deletion and sqlsetup enhancement
Moved the database initialisation functionnality to sqlsetup and fixed all the code to handle the sqlwrapper deletion
пре 9 година
Yann Weber
4fb2f789b5
Replacing EmComponent method getDbE by db_engine
пре 9 година
Yann Weber
16a962fb3f
Implemented DropColumn for sqlite
пре 9 година
Yann Weber
6359adc0f4
Added tests for EmField.delete() and EmClass.delete()
Also add a new function is sqlutils to execute ddl
пре 9 година
Yann Weber
b45e7ea4ee
Added an getTable function to sqlutils
It takes an EmComponent child class as parameter and return an sqlalchemy Table
пре 9 година
Yann Weber
493149cfeb
Added sqlutils functions
пре 9 година