(sql, **options)
return ''.join(stack.run(sql))
Format *sql* according to *options*.

    Available options are documented in :ref:`formatting`.

    Returns the formatted SQL statement as string.
Format *sql* according to *options*.
Format * sql * according to * options * .
def format(sql, **options):
    """Format *sql* according to *options*.

    Available options are documented in :ref:`formatting`.

    Returns the formatted SQL statement as string.
    """
    stack = engine.FilterStack()
    options = formatter.validate_options(options)
    stack = formatter.build_filter_stack(stack, options)
    stack.postprocess.append(filters.SerializerUnicode())
    return ''.join(stack.run(sql))
def format ( sql , * * options ) : stack = engine . FilterStack ( ) options = formatter . validate_options ( options ) stack = formatter . build_filter_stack ( stack , options ) stack . postprocess . append ( filters . SerializerUnicode ( ) ) return '' . join ( stack . run ( sql ) )