MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_over

Method test_over

test/sql/test_query.py:1794–1805  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

1792
1793 @testing.requires.window_functions
1794 def test_over(self, connection):
1795 flds = self.tables.flds
1796
1797 eq_(
1798 connection.execute(
1799 select(
1800 flds.c.intcol,
1801 func.row_number().over(order_by=flds.c.strcol),
1802 )
1803 ).fetchall(),
1804 [(13, 1), (5, 2)],
1805 )

Callers

nothing calls this directly

Calls 5

eq_Function · 0.90
selectFunction · 0.90
fetchallMethod · 0.45
executeMethod · 0.45
overMethod · 0.45

Tested by

no test coverage detected