MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / check

Function check

test/dialect/oracle/test_reflection.py:621–629  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

619
620def enterprise_edition_or_version(version):
621 def check():
622 if testing.db.dialect.server_version_info < (version,):
623 with testing.db.connect() as conn:
624 return (
625 "Enterprise Edition"
626 in conn.exec_driver_sql("select * from v$version").scalar()
627 )
628 else:
629 return True
630
631 return check
632

Calls 3

connectMethod · 0.45
scalarMethod · 0.45
exec_driver_sqlMethod · 0.45

Tested by

no test coverage detected