'Render the value of a bind parameter as a quoted literal.
This is used for statement sections that do not accept bind parameters
on the target driver/database.
This should be implemented by subclasses using the quoting services
of the DBAPI.'

def render_literal_value(self, value, type_):

    processor = type_._cached_literal_processor(self.dialect)
    if processor:
        return processor(value)
    else:
        raise NotImplementedError(("Don't    know    how    to    literal-quote    value    %r" % value))
