Ed
ontem
Vamos analisar cada uma das alternativas para encontrar a correspondência correta entre os tipos do SQLAlchemy, os tipos nativos do Python e os tipos SQL. A) Boolean no SQLAlchemy corresponde a str no Python e VARCHAR no SQL. - Incorreto. O tipo Boolean no SQLAlchemy corresponde a bool no Python e BOOLEAN no SQL. B) Integer no SQLAlchemy corresponde a int no Python e INTEGER no SQL. - Correto. O tipo Integer no SQLAlchemy realmente corresponde a int no Python e INTEGER no SQL. C) DateTime no SQLAlchemy corresponde a float no Python e REAL no SQL. - Incorreto. O tipo DateTime no SQLAlchemy corresponde a datetime no Python e TIMESTAMP ou DATETIME no SQL. D) Text no SQLAlchemy corresponde a bool no Python e BOOLEAN no SQL. - Incorreto. O tipo Text no SQLAlchemy corresponde a str no Python e TEXT no SQL. Portanto, a alternativa correta é: B) Integer no SQLAlchemy corresponde a int no Python e INTEGER no SQL.