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

Method test_over

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

Source from the content-addressed store, hash-verified

1860
1861 @testing.requires.window_functions
1862 def test_over(self, connection):
1863 flds = self.tables.flds
1864
1865 eq_(
1866 connection.execute(
1867 select(
1868 flds.c.intcol,
1869 func.row_number().over(order_by=flds.c.strcol),
1870 )
1871 ).fetchall(),
1872 [(13, 1), (5, 2)],
1873 )

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