[sqlalchemy] Re: SQLAlchemy for c++

2009-06-08 Thread Can Xue
2009/6/8 Jarrod Chesney jarrod.ches...@gmail.com Hi All Does anyone knows where i can find information about using SQLAlchemy from c++ or even if its possible. SQLAlchemy is written in pure python. So, you question should be: * How to embed the Python interpreter in my C++ program? or *

[sqlalchemy] Re: Reading in single columns as numpy arrays

2009-06-06 Thread Can Xue
2009/6/5 Thomas thomas.robitai...@gmail.com Hi, I'm trying to read in single columns from an SQL database as 1D numpy arrays with the correct types. So a FLOAT column would be returned as a numpy.float32 array, etc. Is there an easy way to do this? Maybe you have to define your own Float

[sqlalchemy] lock tables in python way?

2007-06-21 Thread Can Xue
I'm using MySQL and when I need to lock a table, I do: conn = engine.connect() conn._autocommit = dummyFunc conn.execute(LOCK TABLES tablename WRITE) try: ... conn.execute(COMMIT) except: conn.execute(ROLLBACK) ... finally:

[sqlalchemy] How to catch a changed event in ORM

2007-06-20 Thread Can Xue
I'm working in a GUI project and use the SQLAlchemy for ORM. Can anyone tell me how to catch a attribute changed event in SQLAlchemy so that application can update the UI automaticly. Thank you. -- XUE Can --~--~-~--~~~---~--~~ You received this message because

[sqlalchemy] Re: How to catch a changed event in ORM

2007-06-20 Thread Can Xue
Thank you but when I try downloading http://www.sistechnology.com/o2rm/o2rm0224.tar.bz2, I get a 404 not found :-( 2007/6/21, svilen [EMAIL PROTECTED]: I'm working in a GUI project and use the SQLAlchemy for ORM. Can anyone tell me how to catch a attribute changed event in SQLAlchemy so