source: trunk/module/pg.py

Revision Log Mode:


Legend:

Added
Modified
Copied or renamed
Diff Rev Age Author Log Message
(edit) @494   7 years cito Fix exception handling in pgnotify.
(edit) @493   7 years cito Do not use positional parameters internally. This restores backward …
(edit) @487   7 years darcy Add pgnotify method.
(edit) @464   7 years cito Implement context manager in pg similar to pgdb.
(edit) @462   7 years cito We don't need the contextlib in this implementation.
(edit) @461   7 years cito Add transaction handling methods and context managers to pg.
(edit) @460   7 years cito Allow setting the debug attribute just to True.
(edit) @459   7 years cito Remove unneccessary code.
(edit) @447   7 years cito Added a namedresult() method to the classic API.
(edit) @446   7 years cito Support positional parameters in the query() method.
(edit) @442   7 years cito Make the regtypes flag accessible through an additional method.
(edit) @441   7 years cito Incorporate regular type names in the clear() method.
(edit) @440   7 years cito Add option to let get_attnames() return regular type names.
(edit) @439   7 years cito Return regtype instead of 'text' for array types.
(edit) @436   7 years cito Some clean-up, mostly PEP8 issues.
(edit) @434   7 years cito Add sqlstate attribute to DatabaseError? instances.
(edit) @423   8 years darcy In early November, 2011 the system housing PyGreSQL was hacked and …
(edit) @422   9 years darcy Changes to ease transition to Python 3.x while allowing scripts to …
(edit) @412   9 years darcy Fix money quoting. Amounst of $0.00 should certainly be allowed. Add …
(edit) @404   10 years cito Added SVN keyword "Id".
(edit) @394   11 years darcy Zero is not NULL. Fix test in _quote_num.
(edit) @391   11 years cito The insert() and update() methods now check if the table is selectable …
(edit) @390   11 years cito Typo.
(edit) @389   11 years cito Support for composite primary keys, code clean-up in get(), insert(), …
(edit) @387   11 years cito Some clean-up and using more meaningful names, removing the …
(edit) @386   11 years cito Added note about composite primary keys.
(edit) @385   11 years cito Code simplifications. Improved unittest for pkey().
(edit) @384   11 years cito Reimplemented "protocol_version" and "server_version" as attributes …
(edit) @383   11 years cito Added methods for determining the protocol and server version.
(edit) @382   11 years darcy Add "return_changes" flag to insert method.
(edit) @380   11 years darcy Correction to how oid is munged.
(edit) @379   11 years darcy Remove code added for backwards compatibility with old style OID munging.
(edit) @377   11 years cito Minor issues.
(edit) @369   11 years cito Small bugfix and some code clean-up in pg module.
(edit) @365   11 years cito Added support for PQescapeStringConn() and PQescapeByteaConn(). …
(edit) @364   11 years cito Support for PQescapeStringConn and PQescapeByteaConn.
(edit) @359   11 years cito Avoid bare excepts.
(edit) @358   11 years cito Some optimization of pg._quote(). Removed checks for attr types which …
(edit) @357   11 years cito Modernize code in pg module a bit (we are requiring Py 2.3 now).
(edit) @346   11 years cito Consistently use 4 spaces instead of tabs for all Python moduls, as …
(edit) @333   11 years cito Allow the DB wrapper to be used with an existing _pg, DB or pgdb …
(edit) @332   11 years cito Some style improvements (PEP8), use single instead of double …
(edit) @328   11 years cito If available, use decimal.Decimal for numeric types.
(edit) @321   12 years darcy Quote field names in inserts. Add unit test.
(edit) @320   13 years cito In some cases, PostgreSQL stumbled over unknown types in …
(edit) @319   13 years cito Added _join_parts to pkey() and get_relations() again, in a slightly …
(edit) @315   13 years darcy Allow keywords to be specified for insert, update and delete. Document …
(edit) @312   13 years darcy Using _join_parts is inefficient for certain ops. Just joing …
(edit) @308   13 years cito Do not quote SQL constants for date and time.
(edit) @296   13 years cito Small bugfix (bad code that does not work in Python 2.5).
(edit) @288   13 years cito Use SQL-standard way of escaping quotes. Adapted unit tests.
(edit) @287   13 years cito Added escape/unescape functions for SQL strings and "bytea" …
(edit) @284   13 years darcy If caller supplies key dictionary, make sure that all has a namespace. …
(edit) @283   13 years darcy Previous fix was in wrong place in the code.
(edit) @282   13 years darcy Add another backwards compatibility code for OID mangling.
(edit) @278   14 years darcy Reorder attnames tests so that "interval" is checked for before "int." …
(edit) @275   14 years cito Minor coding improvement in backwards compatibility hack.
(edit) @273   14 years darcy Add code for backwards compatibilty in OID munging to avoid flag days.
(edit) @271   14 years darcy Setting date to "now()" is not clearing it. Reverting to setting to blank.
(edit) @250   14 years cito Updated test_pg to account for the added features.
(edit) @239   14 years cito The parameter of get_relations was inconsistently named "typ" and …
(edit) @232   14 years darcy Change get_tables method to get_relations and allow any type of …
(edit) @226   14 years cito Take into account that nowadays not every table must have an oid …
(edit) @222   14 years cito Added shebang line as requested by Devrim Gunduz for building …
(edit) @210   14 years cito Remove duplicate comment
(edit) @204   14 years cito Major improvements in classic pg module
(edit) @202   14 years cito Improved namespace support, handle search_path correctly, removed old …
(edit) @201   14 years darcy Remove debugging line.
(edit) @198   15 years darcy Check for namespace when looking for primary keys. Add unit test for above.
(edit) @193   15 years darcy Fix the module so that it handles schemas correctly.
(edit) @183   15 years darcy Fix silly coding error.
(edit) @182   15 years darcy Add Id string. Add check for interval type in attribute list. Fix typo.
(edit) @181   15 years darcy Don't crash in update method if primary key doesn't exist yet.
(edit) @177   15 years darcy Use new error class hierarchy. Remove some try/except statements and …
(edit) @162   15 years darcy Switch to using isinstance instead of type. This allows us to send …
(edit) @160   15 years darcy Except query from the setattr line too so that it can also be wrapped …
(edit) @159   15 years darcy If a table is added after the pkeys dictionary is filled in, the key …
(edit) @157   15 years darcy Don't create convenience method for close method as it is wrapped …
(edit) @155   16 years darcy Add interval type. Use list comprehensions for efficiency.
(edit) @152   16 years darcy Move to version 3.4 release. Add changes. Use new PyGreSQL.org addresses.
(edit) @151   16 years darcy Change internal names to have leading underscores but not trailing. …
(edit) @149   16 years darcy Fix copied from PostgreSQL CVS tree. PostgreSQL commit message …
(edit) @148   16 years darcy Add debugging aid to startup code.
(edit) @133   17 years darcy The quote function should return a string suitable for dropping into a …
(edit) @128   17 years momjian > There is an ugly little problem with the DB wrapper class. > > In …
(edit) @121   17 years darcy Change the pkey method so that the caller can optionally set the …
(edit) @120   17 years darcy Change the debug variable to allow better control by the caller over …
(edit) @113   17 years momjian Well, that certainly appeared to be very straight forward. pg.py and …
(edit) @99   18 years darcy Fix name in comments and add info about this module's place in PyGreSQL.
(edit) @79   18 years darcy The "%d", while syntactically correct, was confusing. Added a space …
(edit) @39   19 years darcy Add oid to list of keys cached. Add a test to avoid an exception in …
(edit) @29   19 years momjian Update to PyGreSQL 3.1: Fix some quoting functions. In particular …
(edit) @27   19 years momjian Update for PyGreSQL 3.0, from D'Arcy J.M. Cain
(edit) @16   20 years scrappy Bring python up to date ... From: D'Arcy J.M. Cain <darcy@…>
(add) @14   20 years momjian Re-add python.
Note: See TracRevisionLog for help on using the revision log.