def sql_file(tmp_path):
    """ Construct a file containing a SQL statement """

    directory = tmp_path / "sql"

    directory.mkdir()

    file = directory / "sql.txt"

    file.write_text("SELECT\n 1 as foo;")

    return file.absolute()