I have a large sql dump file ... with several CREATE TABLE and INSERT INTO . Is there a way to load all this data into SQLAlchemy sqlite database right away. I plan to use the introspective ORM from sqlsoup after creating the tables. However, when I use the engine.execute() method, it complains: sqlite3.Warning: You can only execute one statement at a time.
Is there any way around this problem. It is possible to split the file with a regular expression or some kind of parser, but I donβt know enough SQL to get all the cases for a regular expression.
Any help would be greatly appreciated.
Will
EDIT: Since this seems important ... The dump file was created using the MySQL database, so it has a lot of commands / syntax that sqlite3 does not understand correctly.
source share