Re: [sqlalchemy] How to override append and remove methods used in orm.relationships

2018-05-18 Thread Mike Bayer
On Fri, May 18, 2018 at 9:06 PM, Diego Quintana wrote: > So I watched the video, made a lot of stuff clear. What I'm not certain > about is the symmetry of relationships. > > > I used to think that, in many to many relationships (perhaps for all of the > relationships

[sqlalchemy] Getting error 'ibm_db_dbi::Error: 0 params bound not matching 1 required'

2018-05-18 Thread siddhesh
Hi, I am calling db stored procedure which has 1 out parameter. My procedure call is like CALL SOURCE.add_user_data ('', '', 2,?); When I am executing this statement using connection.execute() method , getting following error sqlalchemy.exc.DBAPIError: (ibm_db_dbi.Error)

[sqlalchemy] Getting error 'ibm_db_dbi::Error: 0 params bound not matching 1 required'

2018-05-18 Thread siddhesh
Hi, I am calling stored procedure which has 1 out parameter. So my stored procedure call is like CALL SOURCE.add_user_data ('', '', 2,?); When I am executing this statement using connection.execute() method , getting following error sqlalchemy.exc.DBAPIError: (ibm_db_dbi.Error)

[sqlalchemy] Getting error 'ibm_db_dbi::Error: 0 params bound not matching 1 required'

2018-05-18 Thread siddhesh
Hi, I am calling stored procedure which has 1 out parameter. So my stored procedure call is like CALL SOURCE.add_user_data ('', '', 2,?); When I am executing this statement using connection.execute() method , getting following error sqlalchemy.exc.DBAPIError: (ibm_db_dbi.Error)

[sqlalchemy] Getting error 'ibm_db_dbi::Error: 0 params bound not matching 1 required'

2018-05-18 Thread siddhesh
Hi, I am calling stored procedure which has 1 out parameter. So my stored procedure call is like CALL SOURCE.add_user_data ('', '', 2,?); When I am executing this statement using connection.execute() method , getting following error sqlalchemy.exc.DBAPIError: (ibm_db_dbi.Error)

[sqlalchemy] Getting error 'ibm_db_dbi::Error: 0 params bound not matching 1 required'

2018-05-18 Thread siddhesh
Hi, I am calling stored procedure which has 1 out parameter. So my stored procedure call is like CALL SOURCE.add_user_data ('', '', 2,?); When I am executing this statement using connection.execute() method , getting following error sqlalchemy.exc.DBAPIError: (ibm_db_dbi.Error)

[sqlalchemy] Getting error ibm_db_dbi::Error: 0 params bound not matching 1 required when trying to run stored procedure

2018-05-18 Thread siddhesh
Hi, I am calling stored procedure which has 1 out parameter. So my stored procedure call is like CALL SOURCE.add_user_data ('', '', 2,?); When I am executing this statement using connection.execute() method , getting following error sqlalchemy.exc.DBAPIError: (ibm_db_dbi.Error)

Re: [sqlalchemy] design question for sqlite backed app

2018-05-18 Thread Jonathan Vanasco
On Friday, May 18, 2018 at 5:17:00 PM UTC-4, Mike Bayer wrote: > > > Well, SQLite locks the whole file during writes so that could be > problematic.if you have a write transaction open, it could cause > problems.I haven't stayed up to date on the latest SQLite changes, > current

Re: [sqlalchemy] design question for sqlite backed app

2018-05-18 Thread Mike Bayer
On Fri, May 18, 2018 at 1:47 PM, Jonathan Vanasco wrote: > We use a custom SqlAlchemy+Pyramid backed client for requesting and managing > LetsEncrypt SSL certificates. It centrally stores/manages the certificates, > which can then be deployed to various servers on a network,

Re: [sqlalchemy] How to override append and remove methods used in orm.relationships

2018-05-18 Thread Mike Bayer
On Fri, May 18, 2018 at 4:44 PM, Diego Quintana wrote: > So I'm back to this, and I wonder about something you said: >> >> >> the main complication here is that those "dynamic" relationships >> require that a query runs for everything, which means everything has >> to be in

Re: [sqlalchemy] How to override append and remove methods used in orm.relationships

2018-05-18 Thread Diego Quintana
So I'm back to this, and I wonder about something you said: > > the main complication here is that those "dynamic" relationships > require that a query runs for everything, which means everything has > to be in the database, which means it flushes the session very > aggressively (and also

[sqlalchemy] design question for sqlite backed app

2018-05-18 Thread Jonathan Vanasco
We use a custom SqlAlchemy+Pyramid backed client for requesting and managing LetsEncrypt SSL certificates. It centrally stores/manages the certificates, which can then be deployed to various servers on a network, with support built-in for PostgreSQL and SqlIte data storage. I'm working on

Re: [sqlalchemy] polymorphic_on / polymorphic_identity randomly 'ignored'

2018-05-18 Thread Benjamin B.
Hello Simon, It really looks like you put the finger on the problem. I'm going to try this now and see if it solves the problem, because we're currently building Comm objects and not Email or Phones. Thank you for your reply ! On Friday, May 18, 2018 at 2:22:14 PM UTC+2, Simon King wrote:

Re: [sqlalchemy] polymorphic_on / polymorphic_identity randomly 'ignored'

2018-05-18 Thread Simon King
On Fri, May 18, 2018 at 12:19 PM, Benjamin B. wrote: > Hello everybody, > > TL;DR We are experiencing a bug where, with perfectly valid data, the > polymorphic_identity is randomly (0,05%) not respected, and the object > ends-up being the parent class instead of the "requested"

[sqlalchemy] polymorphic_on / polymorphic_identity randomly 'ignored'

2018-05-18 Thread Benjamin B.
Hello everybody, *TL;DR *We are experiencing a bug where, with perfectly valid data, the polymorphic_identity is randomly (0,05%) not respected, and the object ends-up being the parent class instead of the "requested" child class. First, some code ! We have here a three table schema : -

render impl for custom dialect

2018-05-18 Thread Антонио Антуан
Hi. I use [that](https://github.com/xzkostyan/clickhouse-sqlalchemy) library and tries to make migrations using alembic. Here is simple implementation for that dialect: ``` class ClickHOuseImpl(postgresql.PostgresqlImpl): __dialect__ = 'clickhouse' transactional_ddl = False ``` Here is