MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_or_tsquery

Method test_or_tsquery

test/dialect/postgresql/test_query.py:1323–1334  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

1321 eq_([3, 5], [r.id for r in results1])
1322
1323 def test_or_tsquery(self, connection):
1324 matchtable = self.tables.matchtable
1325 results2 = connection.execute(
1326 matchtable.select()
1327 .where(
1328 matchtable.c.title.bool_op("@@")(
1329 func.to_tsquery("nutshells | rubies")
1330 )
1331 )
1332 .order_by(matchtable.c.id)
1333 ).fetchall()
1334 eq_([3, 5], [r.id for r in results2])
1335
1336 def test_and_match(self, connection):
1337 matchtable = self.tables.matchtable

Callers

nothing calls this directly

Calls 7

eq_Function · 0.90
fetchallMethod · 0.45
executeMethod · 0.45
order_byMethod · 0.45
whereMethod · 0.45
selectMethod · 0.45
bool_opMethod · 0.45

Tested by

no test coverage detected