Open he7d3r opened 3 years ago
See https://docs.sqlalchemy.org/en/14/orm/queryguide.html.
BTW: Using string interpolation like this is probably asking for trouble (read: SQL injection?) https://github.com/he7d3r/desafio-engenharia-dados/blob/48e4aec8ae84ad7b151572426c2cdf670a30a8a0/dashboard/src/routes.py#L102-L110
See also this Python sqlalchemy cheat sheet (suggested at this post: SQLAlchemy makes ETL magically easy)
See https://docs.sqlalchemy.org/en/14/orm/queryguide.html.
BTW: Using string interpolation like this is probably asking for trouble (read: SQL injection?) https://github.com/he7d3r/desafio-engenharia-dados/blob/48e4aec8ae84ad7b151572426c2cdf670a30a8a0/dashboard/src/routes.py#L102-L110