Repository URL to install this package:
|
Version:
2.5 ▾
|
ó
EYc @ s¢ d d l Z d d l m Z m Z d d l m Z d d l m Z d d l
m Z d d l m Z d Z
e j d e j Z e j d e j Z d
Z d Z d Z d e j e j f d YZ e e d
<d
e j f d YZ d e j f d YZ d e j f d YZ d e j f d YZ d e j f d YZ d e j f d YZ d e j f d YZ d e j f d YZ d S(! iÿÿÿÿNi ( t ARRAYt
ischema_namesi ( t types( t functions( t custom_op( t utilt HSTOREt hstoresÝ
(
"(?P<key> (\\ . | [^"])* )" # Quoted key
)
[ ]* => [ ]* # Pair operator, optional adjoining whitespace
(
(?P<value_null> NULL ) # NULL value
| "(?P<value> (\\ . | [^"])* )" # Quoted value
)
s
[ ]* , [ ]*
c C s· d } t | } | t | | d d t | | !} | t | | t | | d | !} t | | k r d | d } n t | | k r¦ | d d } n d | | | f S( s format an unmarshalling error.i i i s [...]iÿÿÿÿs5 After %r, could not parse residual at position %d: %r( t lent maxt min( t
hstore_strt post ctxt hslent parsed_tailt residual( ( sZ /home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/hstore.pyt _parse_error% s ''c C s! i } d } t j | } xÕ | d k rò | j d j d d j d d } | j d ri d } n' | j d j d d j d d } | | | <| | j 7} t j | | } | d k rÜ | | j 7} n t j | | } q W| t | k rt t | | n | S(
s Parse an hstore from its literal string representation.
Attempts to approximate PG's hstore input parsing rules as closely as
possible. Although currently this is not strictly necessary, since the
current implementation of hstore's output syntax is stricter than what it
accepts as input, the documentation makes no guarantees that will always
be the case.
i t keys \"t "s \\s \t
value_nullt valueN(
t HSTORE_PAIR_REt matcht Nonet groupt replacet endt HSTORE_DELIMITER_RER t
ValueErrorR ( R t resultR t
pair_matchR R t delim_match( ( sZ /home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/hstore.pyt
_parse_hstore7 s&