python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Converting raw sql query to SQL Alchemy ORM
I'm currently executing this query in one process:
SELECT DISTINCT ON (c.api_key, worker_id) worker_id, c.api_key, a.updated_at, b.user_id, a.country
FROM TABLE_A a
INNER JOI...

Enrique Ortiz Casillas
Votes: 0
Answers: 1
SQLAlchemy fails to insert decimal only on temp table
Trying to insert into temp tables with SQLAlchemy (plugged into PYODBC/sql server) and inserting more than one row with decimal values and fast_executemany=True throws:
ProgrammingError("(pyodbc...
manoftheyear
Votes: 0
Answers: 1
Creation timestamp of a row in SQLAlchemy
Using SQLAlchemy ORM, what is a good way to record the creation time of a record, without overwriting the creation time on subsequent updates?
Here's a sample table definition:
class Car:
model = ...

John Gordon
Votes: 0
Answers: 1
Does SQLAlchemy close sessions after commit()?
So this question is a little like Does SQLAlchemy reset the database session between SQLAlchemy Sessions from the same connection?
I have a Flask/SQLAlchemy/Postgres app, which intermittently seems to...

Nick M
Votes: 0
Answers: 1