Hi,

i not sure about this,i look docs SQLAlchemy in call SP ,

class Models():
     
   def lst():
       __tablename__ = "test"
       ID = column(Integer)


def call_procedure(lstparamter,params):
       connection = cloudsql.Engine.raw_connection()
       try:
           cursor = connection.cursor()
           cursor.callproc("call_store_pro", [ [lstparamter] , params ])
           results = list(cursor.fetchall())
           cursor.close()
           connection.commit()
           return results

       finally:
           connection.close()

[lstparamter] is model list of  class Models(), i going to pass list to 
input SP in SQL Server or MySQL and etc, SQLAlchemy support it???


 

Thanks,
Ramin


-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to