About 50 results
Open links in new tab
  1. python - SQLAlchemy default DateTime - Stack Overflow

    from sqlalchemy.sql import func time_created = Column(DateTime(timezone=True), server_default=func.now()) time_updated = Column(DateTime(timezone=True), …

  2. python - Using OR in SQLAlchemy - Stack Overflow

    I've looked through the docs and I can't seem to find out how to do an OR query in SQLAlchemy. I just want to do this query. SELECT address FROM addressbook WHERE city='boston' AND …

  3. How to convert SQLAlchemy row object to a Python dict?

    Is there a simple way to iterate over column name and value pairs? My version of SQLAlchemy is 0.5.6 Here is the sample code where I tried using dict(row): import sqlalchemy from sqlalchemy import ...

  4. python - How do I connect to SQL Server via sqlalchemy using …

    sqlalchemy, a db connection module for Python, uses SQL Authentication (database-defined user accounts) by default. If you want to use your Windows (domain or local) credentials to authenticate to ...

  5. python - How do I get a raw, compiled SQL query from a SQLAlchemy ...

    SQLAlchemy doesn't actually put the parameters into the statement -- they're passed into the database engine as a dictionary. This lets the database-specific library handle things like escaping special …

  6. python - stored procedures with sqlAlchemy - Stack Overflow

    Aug 25, 2010 · How can I call stored procedures of sql server with sqlAlchemy?

  7. How to create an SQL View with SQLAlchemy? - Stack Overflow

    Mar 19, 2012 · Update: SQLAlchemy now has a great usage recipe here on this topic, which I recommend. It covers different SQL Alchemy versions up to the latest and has ORM integration (see …

  8. SQLAlchemy: What's the difference between flush() and commit()?

    What the difference is between flush() and commit() in SQLAlchemy? I've read the docs, but am none the wiser - they seem to assume a pre-understanding that I don't have. I'm particularly interest...

  9. How to check and handle errors in SQLAlchemy - Stack Overflow

    My two cents on handling errors in SQLAlchemy: a simple python's try-except will not work as MySQL is persistent. For example, if you try to insert a record to the database but it is a duplicate, the program …

  10. How can I use UUIDs in SQLAlchemy? - Stack Overflow

    Oct 8, 2008 · Is there a way to define a column (primary key) as a UUID in SQLAlchemy if using PostgreSQL (Postgres)?