(s)
return '.'.join(map(quote_ident, tmp))
Quote fully qualified SQL identifier.

    The '.' is taken as namespace separator and
    all parts are quoted separately

    Example:
    >>> quote_fqident('tbl')
    'public.tbl'
    >>> quote_fqident('Baz.Foo.Bar')
    '"Baz"."Foo.Bar"'
Quote fully qualified SQL identifier.
Quote fully qualified SQL identifier .
def quote_fqident(s):
    """Quote fully qualified SQL identifier.

    The '.' is taken as namespace separator and
    all parts are quoted separately

    Example:
    >>> quote_fqident('tbl')
    'public.tbl'
    >>> quote_fqident('Baz.Foo.Bar')
    '"Baz"."Foo.Bar"'
    """
    tmp = s.split('.', 1)
    if len(tmp) == 1:
        return 'public.' + quote_ident(s)
    return '.'.join(map(quote_ident, tmp))
def quote_fqident ( s ) : tmp = s . split ( '.' , 1 ) if len ( tmp ) == 1 : return 'public.' + quote_ident ( s ) return '.' . join ( map ( quote_ident , tmp ) )