Changeset 893 for trunk/docs


Ignore:
Timestamp:
Sep 21, 2016, 10:44:59 AM (3 years ago)
Author:
cito
Message:

Add a way to switch off array casting in pgdb

Location:
trunk/docs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/contents/changelog.rst

    r887 r893  
    22=========
    33
    4 Version 5.0.2 (2016-09-08)
     4Version 5.0.3 (2016-09-21)
     5--------------------------
     6- It is now possible to use a custom array cast method for the pgdb module,
     7  e.g. pgdb.set_typecast('anyarray', lambda v, basecast: v) will cause arrays
     8  to be always returned as strings instead of lists.
     9
     10Version 5.0.2 (2016-09-13)
    511--------------------------
    612- Fixed an infinite recursion problem in the DB wrapper class of the classic
  • trunk/docs/contents/pgdb/module.rst

    r882 r893  
    8585
    8686.. versionadded:: 5.0
     87
     88As of version 5.0.3 you can also use this method to change the typecasting
     89of PostgreSQL array types. You must run ``set_typecast('anyarray', cast)``
     90in order to do this. The ``cast`` method must take a string value and a cast
     91function for the base type and return the array converted to a Python object.
     92For instance, run ``set_typecast('anyarray', lambda v, c: v)`` to switch off
     93the casting of arrays completely, and always return them encoded as strings.
    8794
    8895.. method:: reset_typecast([typ])
  • trunk/docs/index.rst

    r889 r893  
    1 .. PyGreSQL index page without toc (for use with cloud theme)
     1.. PyGreSQL index page with toc (for use without cloud theme)
    22
    33Welcome to PyGreSQL
     
    55
    66.. toctree::
    7     :hidden:
     7    :maxdepth: 2
    88
     9    about
    910    copyright
    1011    announce
     
    1213    contents/index
    1314    community/index
    14 
    15 .. include:: about.txt
Note: See TracChangeset for help on using the changeset viewer.