def sql_compile(dialect, statement, incl_literal_binds=True):
    """Compile a statement for the given dialect."""
    return statement.compile(
        dialect=dialect,
        compile_kwargs={'literal_binds': True} if incl_literal_binds else {}
    )