MCPcopy
hub / github.com/pandas-dev/pandas / postgresql_adbc_iris

Function postgresql_adbc_iris

pandas/tests/io/test_sql.py:703–718  ·  view source on GitHub ↗
(postgresql_adbc_conn, iris_path)

Source from the content-addressed store, hash-verified

701
702@pytest.fixture
703def postgresql_adbc_iris(postgresql_adbc_conn, iris_path):
704 import adbc_driver_manager as mgr
705
706 conn = postgresql_adbc_conn
707
708 try:
709 conn.adbc_get_table_schema("iris")
710 except mgr.ProgrammingError:
711 conn.rollback()
712 create_and_load_iris_postgresql(conn, iris_path)
713 try:
714 conn.adbc_get_table_schema("iris_view")
715 except mgr.ProgrammingError: # note arrow-adbc issue 1022
716 conn.rollback()
717 create_and_load_iris_view(conn)
718 return conn
719
720
721@pytest.fixture

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected