sqlalchemy text module #11
choisungwook
started this conversation in
General
Replies: 1 comment
-
from sqlalchemy import text
statement = text("""
INSERT INTO
projects (name, created_at, updated_at)
VALUES(:name, CURRENT_TIMESTAMP,CURRENT_TIMESTAMP)
""")
db.execute(statement, {
"name": request.name
})
db.commit() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
참고자료
Beta Was this translation helpful? Give feedback.
All reactions