Re: Commit: postgres on cursor and sqlite on connection

2015-11-09 Thread dieter
Cecil Westerhof writes: > I have written some code I like to use with several databases. At the > moment sqlite and postgres. It looks like with progres I can use: > cursor.execute('COMMIT;') > but that with sqlite I need to use: > conn.commit() > > Is this true, or am I doing something wro

Re: Commit: postgres on cursor and sqlite on connection

2015-11-09 Thread Ian Kelly
On Mon, Nov 9, 2015 at 8:44 AM, Cecil Westerhof wrote: > I have written some code I like to use with several databases. At the > moment sqlite and postgres. It looks like with progres I can use: > cursor.execute('COMMIT;') > but that with sqlite I need to use: > conn.commit() > > Is this tru

Commit: postgres on cursor and sqlite on connection

2015-11-09 Thread Cecil Westerhof
I have written some code I like to use with several databases. At the moment sqlite and postgres. It looks like with progres I can use: cursor.execute('COMMIT;') but that with sqlite I need to use: conn.commit() Is this true, or am I doing something wrong? When I use cursor.execute('COMMI