[storm] execute many?
James Henstridge
james at jamesh.id.au
Mon Apr 14 12:50:07 BST 2008
On 14/04/2008, Jorgen Bodde <jorgen.maillist at gmail.com> wrote:
> Hi James and Gustavo,
>
> Thanks for elaborating it!
> Although it would still be nice to have multiple SQL statements e.g. a
> file that I can execute I see now why it is not such a big loss.
When you reply to list mail, use the "reply to all" option. Your last
email was only sent to me.
Note that the DB-API executemany() method is designed to execute the
one statement multiple times with different parameters. If you have a
file containing a sequence of different commands (as you might in a
schema upgrade script), then you are probably best off issuing them
one at a time with execute().
James.
More information about the storm
mailing list