MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / scalar

Method scalar

test/dialect/postgresql/test_types.py:1748–1752  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

1746
1747 @testing.fixture()
1748 def scalar(self, connection):
1749 def go(expression):
1750 return connection.scalar(select(expression))
1751
1752 return go
1753
1754 def test_cast_name(self, scalar):
1755 eq_(scalar(cast("pg_class", postgresql.REGCLASS)), "pg_class")

Callers 15

_sqlite_jsonMethod · 0.45
checkMethod · 0.45
goMethod · 0.45
test_executeMethod · 0.45
test_scalar_optionalMethod · 0.45
test_start_incrementMethod · 0.45
test_insert_via_seqMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected