Khairi Hafsham
772374735d
Make all tests to be PEP8 compliant
...
tested using pycodestyle version 2.2.0
Fixes : #3885
Change-Id: I5df43adc3aefe318f9eeab72a078247a548ec566
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/343
2017-02-07 11:21:56 -05:00
Sergey Skopin
3ebd1b30eb
Add 'FOR NO KEY UPDATE' / 'FOR KEY SHARE' support for Postgresql
...
Adds ``key_share=True`` for with_for_update().
Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com >
Change-Id: I74e0c3fcbc023e1dc98a1fa0c7db67b4c3693a31
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/279
2016-06-08 11:24:57 -04:00
Jack Zhou
e8f97c9e35
Add SKIP LOCKED support for Postgresql, Oracle
...
This adds `SELECT ... FOR UPDATE SKIP LOCKED`/
`SELECT ... FOR SHARE SKIP LOCKED` rendering.
Change-Id: Id1dc4f1cafc1de23f397a6f73d54ab2c58d5910d
Pull-request: https://bitbucket.org/zzzeek/sqlalchemy/pull-requests/86
2016-06-02 17:46:16 -04:00
Mike Bayer
31cecebd48
- add support for specifying tables or entities for "of"
...
- implement Query with_for_update()
- rework docs and tests
2013-11-28 23:23:27 -05:00
Mike Bayer
4aaf3753d7
- fix up rendering of "of"
...
- move out tests, dialect specific out of compiler, compiler tests use new API,
legacy API tests in test_selecatble
- add support for adaptation of ForUpdateArg, alias support in compilers
2013-11-28 22:25:09 -05:00
Mario Lassnig
741da87384
added ORM support
2013-11-14 20:18:52 +01:00
Mario Lassnig
71c45937f9
add psql FOR UPDATE OF functionality
2013-11-12 23:08:51 +01:00
Mike Bayer
20cdc64588
trying different approaches to test layout. in this one, the testing modules
...
become an externally usable package but still remains within the main sqlalchemy parent package.
in this system, we use kind of an ugly hack to get the noseplugin imported outside of the
"sqlalchemy" package, while still making it available within sqlalchemy for usage by
third party libraries.
2012-09-27 02:37:33 -04:00
Mike Bayer
22ba1c43b7
-whitespace bonanza, contd
2012-07-28 17:05:50 -04:00
Mike Bayer
7142a17291
- [feature] Added new for_update/with_lockmode()
...
options for Postgresql: for_update="read"/
with_lockmode("read"),
for_update="read_nowait"/
with_lockmode("read_nowait").
These emit "FOR SHARE" and "FOR SHARE NOWAIT",
respectively. Courtesy Diana Clarke
[ticket:2445]
2012-03-21 22:58:55 -04:00