sqlalchemy.func.row

Here are the examples of the python api sqlalchemy.func.row taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 Source : test_query.py
with MIT License
from sqlalchemy

    def test_function_against_row_constructor(self, connection):

        stmt = select(func.row_to_json(func.row(1, "foo")))

        eq_(connection.scalar(stmt), {"f1": 1, "f2": "foo"})

    def test_with_ordinality_named(self, connection):