Skip to content

Math operations in select #456

Description

@filantus
  • GINO version: 0.8.2
  • Python version: 3.7.2
  • asyncpg version: 0.18.3
  • aiocontextvars version: 0.2.1
  • PostgreSQL version: 11.1

Description

Hi!

Can you please tell how possible to use math operations in models querying?

I want reach with GINO orm same result like in raw sql, for example:

SELECT t1.col_a * t2.col_b * 1.5 as value
FROM t1
JOIN t2 ON t2.some_key = t1.some_key;

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionA community question, closed when inactive.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions