Hey @all,

i have a sql script in the resource file, which creates all necessary database tables, indexes and insert some initial data.

How can i execute these script?

Here is an example of such script:
Qt Code:
  1. CREATE TABLE "table1" (
  2. "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
  3. "bla1" TEXT,
  4. );
  5. CREATE TABLE "table2" (
  6. "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
  7. "bla2" TEXT,
  8. );
To copy to clipboard, switch view to plain text mode 

Best Regards
NoRulez