Ñò
u@€Dc @ s‡ d Z d d k Td d k Td „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d f d
„ ƒ YZ e
d j o d Ge GHHe GHn d
S( sZ PyGreSQL classic interface.
This pg module implements some basic database management stuff.
It includes the _pg module and builds on it, providing the higher
level wrapper class named DB with addtional functionality.
This is known as the "classic" ("old style") PyGreSQL interface.
For a DB-API 2 compliant interface use the newer pgdb module.
iÿÿÿÿ( t *c C s | d j o d S| d j o | d j o d St | ƒ S| d j o! | d j o d Sd t | ƒ S| d j oR t | ƒ t j o. | d j o d St | ƒ i ƒ d j } n | } d | S| d j o | d j o d Sn d t | ƒ i d d ƒ i d d ƒ S( s Return quotes if needed.t NULLt intt seqt decimalt t moneys '%.2f't boolt tt truet 1t yt yest ons 'f's 't't datet inett cidrs '%s's \s \\t 's ''N( s intR R ( R R R
R R R
( s 'f's 't'( R R R ( t Nonet strt floatt typet
StringTypet lowert replace( t dR ( ( s( /usr/lib64/python2.6/site-packages/pg.pyt _quote s*
c C sA | i d d ƒ } | i ƒ p! | d i ƒ p | | i ƒ j S( s1 Check whether this string is a quoted identifier.t _t ai ( R t isalnumt isdigitR ( t s( ( s( /usr/lib64/python2.6/site-packages/pg.pyt
_is_quoted/ s c C s. | i d d ƒ } | i ƒ o | d i ƒ S( s4 Check whether this string is an unquoted identifier.R R i ( R R R ( R ( ( s( /usr/lib64/python2.6/site-packages/pg.pyt _is_unquoted4 s c C sŸ | i ƒ } | d d j o5g } | i d d ƒ d } | i | d ƒ x] t | ƒ d j oI | d d j o8 | i d ƒ | d i d d ƒ } | i | d ƒ qM Wd i | ƒ g } d i | d ƒ i ƒ } | or | d d j o | i | d ƒ qNt | ƒ } | d c | d 7