Cédric Krier
889b1cc9f8
Allow to search and order on Dict key value
...
issue7905
review62391002
2019-01-18 11:32:47 +01:00
Cédric Krier
ae06a8bca2
Add transactional queue and workers
...
issue7406
review45461002
2018-07-27 09:32:28 +02:00
Cédric Krier
0aed819d47
Add hostname configuration to list database
...
issue7375
review44991002
2018-05-22 23:42:35 +02:00
Cédric Krier
b3ca13748b
Add Exclude constraint
...
issue1422
review44061002
2018-03-19 16:57:49 +01:00
Nicolas Évrard
acdbe5a08f
Allow to perform unaccented searches on Char fields
...
issue7115
review44611002
2018-03-16 18:17:53 +01:00
Nicolas Évrard
ddb7769310
Move handling of sequences to the Database object
...
issue6788
review43521002
2017-10-02 17:48:23 +02:00
Nicolas Évrard
5cee718423
Move low level handling of the SQL type to the backend
...
This changeset defines on the field the (somehow) abstract SQL type a field
should use letting the duty of specifying the real SQL type the database
supports and the conversion to/from the python types to the backend.
issue6351
review33951002
2017-03-31 12:44:22 +02:00
Sergi Almacellas Abellana
6575419cc9
Add window functions on Database
...
issue6355
review33961002
2017-03-22 10:49:26 +01:00
Cédric Krier
c1b8ee10c6
Add has_select_for on Database
...
- Use has_select_for for ir.sequence.strict instead of lock
issue6134
review32911002
2017-01-25 23:21:57 +01:00
Sergi Almacellas Abellana
5967d21d46
Remove database management from RPC
...
issue5384
review29311002
2016-07-07 16:05:45 +02:00
Nicolas Évrard
2fef479575
Follow PEP-0249 for Transaction and backends
...
issue4949
review19781002
2016-03-03 21:51:57 +01:00
Cédric Krier
6cd05ed6fe
Add has_multirow_insert
...
There are still many databases that doesn't support this SQL-92 syntax.
issue4881
review19331002
2015-07-28 08:04:29 +02:00
Cédric Krier
eddb17dea7
Re-factor dict* methods on each cursor into the interface
...
issue4807
review7241002
2015-06-15 01:18:07 +02:00
Cédric Krier
c144f8c349
Fix most flake8 errors
...
review8771002
2014-12-02 12:54:01 +01:00
Cédric Krier
360f39f89d
Make cache size configurable
...
* Clean private context keyword in RPC
* Add cache section in configuration
issue4320
review10641002
2014-11-19 21:35:51 +01:00
Cédric Krier
67dfdc6a99
Make global cache depends on explicit context keys
...
This should prevent the invalidation of the cache when the context keys that are
changed has no influence onn the global cache.
issue3905
review6291002
2014-05-22 23:36:00 +02:00
Cédric Krier
c46a026c40
Refactore Transaction to add close and autocommit
...
review2151002
2013-12-18 18:09:43 +01:00
Cédric Krier
fc6c6cfdda
Migration to python-sql
...
* Use python-sql
* Add convert_domain method on Fields
* Add sql_format and sql_type methods on Fields
* Allow to return a full domain for Function.searcher
* Replace static backend by dynamic get method
* Replace order_field by order_<field name> method
review1001002
2013-09-06 22:32:37 +02:00
Cédric Krier
0fe1b93864
Active Record
2012-09-24 22:16:53 +02:00
Cédric Krier
ee3be37a36
Fix pep8 and pyflakes
2012-04-01 23:08:15 +02:00
Cédric Krier
56eb3e283c
Remove unused CONTEXT_CACHE_SIZE constant
2012-03-12 15:34:53 +01:00
Cédric Krier
62b8321101
Don't use LRUCache as context cache to allow to clean it
...
References to the cursor cache are kept on BrowseRecord, we must be sure that
this cache will be cleaned.
review272001
2012-03-12 15:33:43 +01:00
Cédric Krier
9e4d8baa6c
Cursor cache must depend of the user
...
review90002
2011-08-22 19:12:19 +02:00
Cédric Krier
1ab6964687
Add readonly on Transaction
...
review80005
2011-08-21 11:05:51 +02:00
Cédric Krier
0f3ba1f69f
Use RETURNING in INSERT if available
...
review21003
2011-08-21 10:20:23 +02:00
Cédric Krier
587567077f
Add LRUDict to use as cache
...
issue2033
review31005
2011-06-14 11:44:26 +02:00
Cédric Krier
cb63509356
Add MySQL backend
2010-02-25 16:43:04 +01:00
Cédric Krier
80ad687daf
Raise NotImplementedError in interface class
2010-02-23 15:54:27 +01:00
Cédric Krier
f4568e0cde
Factorise code by adding get_cache function on Cursor.
2009-09-07 15:34:04 +02:00
Cédric Krier
3cf4f4a7e3
Add limit_clause function on cursor
2009-09-07 15:18:17 +02:00
Cédric Krier
768e98e26a
Move BrowseRecord cache onto the cursor
2009-08-11 11:13:14 +02:00
Cédric Krier
92757863f3
Handle _sql_constraints when database doesn't
2009-07-30 17:02:42 +02:00
Cédric Krier
f820d707f5
Remove _sequence on ModelSQL
...
Add nextid, setnextid, currid, lastid to have a generic way to handle sequence
Add has_lock function to be more database independant
2009-07-07 19:32:31 +02:00
Cédric Krier
83814d6193
Really close some cursors to not keep unused cursor in memory
2009-05-20 01:05:52 +02:00
Cédric Krier
1a10e5ffaa
Fix warnings for python 2.6 for issue915
2009-04-08 17:55:24 +02:00
Cédric Krier
b75d10cd20
Use a new pool for object
...
Move workflow method in ModelWorkflow
Move workflow service in workflow module
Remove Service and LocalService
Remove web_service and use a dispatcher in protocols
New netrpc/xmlrpc syntax to be easier to introspect
2009-02-11 14:52:22 +01:00
Cédric Krier
bb5d16ca3e
Remove psycopg2 from server.py
2009-02-06 10:26:38 +01:00
Cédric Krier
e6ee0854b2
Move dump and restore into specific backend
2009-02-05 16:44:38 +01:00
Cédric Krier
f63aaa316d
Remove sql_db and add database in backend
2009-02-04 15:29:28 +01:00