Re: [sqlalchemy] How to create multiple TABLES and INSERTS programatically ?

2018-03-26 Thread Mike Bayer
On Mon, Mar 26, 2018 at 1:54 PM, Prashanth Budihal wrote: > I have this project(stock market data) where I need many tables(200+) and > each one will receive fresh data inserts periodically(every 5 minutes). I > have gone thru couple of tutorials about sqlalchemy ORM and they all show > how to cre

[sqlalchemy] How to create multiple TABLES and INSERTS programatically ?

2018-03-26 Thread Prashanth Budihal
I have this project(stock market data) where I need many tables(200+) and each one will receive fresh data inserts periodically(every 5 minutes). I have gone thru couple of tutorials about sqlalchemy ORM and they all show how to create a single table and do few inserts. But if I have to create

Re: [sqlalchemy] Two application versions, different back ends

2018-03-26 Thread Rich Shepard
On Mon, 26 Mar 2018, Jonathan Vanasco wrote: Pay close attention to which database functions you use, and how you use datetime fields. Those are two things were SQLite tends to differ from the other common databases. You can handle any of those differences using dialect specific custom compiler

Re: [sqlalchemy] Two application versions, different back ends

2018-03-26 Thread Jonathan Vanasco
On Monday, March 26, 2018 at 9:41:00 AM UTC-4, Rich wrote: > > >I'm working now on the single-user, SQLite3 version and will return to > this issue when that's functioning. Pay close attention to which database functions you use, and how you use datetime fields. Those are two things were

Re: [sqlalchemy] Two application versions, different back ends

2018-03-26 Thread Rich Shepard
On Mon, 26 Mar 2018, Mike Bayer wrote: this is a very open-ended question that can't be answered with a single document. SQLAlchemy will allow for standard SQL and DDL to work across both platforms transparently as well as differences in INSERT mechanics, and additionally transactional semantics

Re: [sqlalchemy] Two application versions, different back ends

2018-03-26 Thread Mike Bayer
this is a very open-ended question that can't be answered with a single document. SQLAlchemy will allow for standard SQL and DDL to work across both platforms transparently as well as differences in INSERT mechanics, and additionally transactional semantics will work. But beyond that you would nee

Re: [sqlalchemy] How call procedure with output params?

2018-03-26 Thread Mike Bayer
what database? On Mon, Mar 26, 2018 at 8:39 AM, wrote: > Hello! > I have something like this > > DECLARE @return_param INT > SET REMOTE_PROC_TRANSACTIONS OFF > EXEC procedure_name @return_param, param1, param2 > SELECT @return_param > > > How to do this on sqlalchemy? > Thanks. > With regards, >

Re: [sqlalchemy] Duplicate primary key on table migration

2018-03-26 Thread Mike Bayer
On Fri, Mar 23, 2018 at 7:41 PM, Colton Allen wrote: > I'm moving data from one table to another. During this move I'm preserving > the ID of the old table before dropping it. However, by doing so the > sequence gets out of whack and the database will no longer allow inserts to > the trigger tab

[sqlalchemy] How call procedure with output params?

2018-03-26 Thread eugene . deneb
Hello! I have something like this DECLARE @return_param INT SET REMOTE_PROC_TRANSACTIONS OFF EXEC procedure_name @return_param, param1, param2 SELECT @return_param How to do this on sqlalchemy? Thanks. With regards, Eugene R. -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper