Skip to content

Use session as context manager in examples #34

@sfc-gh-turbaszek

Description

@sfc-gh-turbaszek

To align with best practices and to assure that session are really closed in case of errors examples should use snowpakr sesson in the following way:

    with Session.builder.getOrCreate() as session:
        print(main(session, *sys.argv[1:]))  # type: ignore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions