After you read all text from file, you split all sql statements by semicolon. Then you can execute every sql statement one by one.
After you read all text from file, you split all sql statements by semicolon. Then you can execute every sql statement one by one.
I should think you would also be able to loop through the file contents and execute each query iteratively.
Maybe it is SQL driver dependent. On PostgreSQL it is working.
yeah, in ruby the driver exec only one query per time.
Now I'm spliting the file and running a query per exec. Thx to all![]()
Bookmarks