sql:['create table `test_table` (`id` int(11) not null auto_increment primary key, `first_name` varchar(255) not null, `last_name` varchar(255) not null, `email` varchar(255) null, `logins` int(11) not null default \'1\', `about` text not null, `created_at` timestamp default 0 not null, `updated_at` timestamp default 0 not null)','alter table `test_table` add index test_table_logins_index(`logins`)'],
bindings:[]
},
postgres:{
sql:['create table "test_table" ("id" serial primary key not null, "first_name" varchar(255) not null, "last_name" varchar(255) not null, "email" varchar(255) null, "logins" integer not null default \'1\', "about" text not null, "created_at" timestamp not null, "updated_at" timestamp not null)','create index test_table_logins_index on "test_table" ("logins")'],
sql:['create table `other_table` (`main` int(11) not null, `paragraph` text not null default \'Lorem ipsum Qui quis qui in.\')','alter table `other_table` add primary key other_table_main_primary(`main`)'],
bindings:[]
},
postgres:{
sql:['create table "other_table" ("main" integer not null, "paragraph" text not null default \'Lorem ipsum Qui quis qui in.\')','alter table "other_table" add primary key ("main")'],
bindings:[]
},
sqlite3:{
sql:['create table "other_table" ("main" integer null, "paragraph" text null default \'Lorem ipsum Qui quis qui in.\')'],
bindings:['Lorem ipsum Dolore labore incididunt enim.',newDate(),'test@example.com','Test','User',1,newDate(),'Lorem ipsum Dolore labore incididunt enim.',newDate(),'test2@example.com','Test','User',2,newDate()]
},
sqlite3:{
sql:'insert into "accounts" ("first_name", "last_name", "email", "logins", "about", "created_at", "updated_at") select ? as "first_name", ? as "last_name", ? as "email", ? as "logins", ? as "about", ? as "created_at", ? as "updated_at" union select ? as "first_name", ? as "last_name", ? as "email", ? as "logins", ? as "about", ? as "created_at", ? as "updated_at"',
bindings:['Lorem ipsum Dolore labore incididunt enim.',newDate(),'test@example.com','Test','User',1,newDate(),'Lorem ipsum Dolore labore incididunt enim.',newDate(),'test2@example.com','Test','User',2,newDate()]
bindings:['Lorem ipsum Dolore labore incididunt enim.',newDate(),'test2@example.com','Test','User',2,newDate(),'Lorem ipsum Dolore labore incididunt enim.',newDate(),'test2@example.com','Test','User',2,newDate()]
},
sqlite3:{
sql:'insert into "accounts" ("first_name", "last_name", "email", "about", "logins", "created_at", "updated_at") select ? as "first_name", ? as "last_name", ? as "email", ? as "about", ? as "logins", ? as "created_at", ? as "updated_at" union select ? as "first_name", ? as "last_name", ? as "email", ? as "about", ? as "logins", ? as "created_at", ? as "updated_at"',
bindings:['Lorem ipsum Dolore labore incididunt enim.',newDate(),'test2@example.com','Test','User',2,newDate(),'Lorem ipsum Dolore labore incididunt enim.',newDate(),'test2@example.com','Test','User',2,newDate()]
sql:'select `tableName`.*, `otherTable`.`name` from `tableName` left join `otherTable` on `tableName`.`id` = `otherTable`.`otherId`',
bindings:[]
},
postgres:{
sql:'select "tableName".*, "otherTable"."name" from "tableName" left join "otherTable" on "tableName"."id" = "otherTable"."otherId"',
bindings:[]
},
sqlite3:{
sql:'select "tableName".*, "otherTable"."name" from "tableName" left join "otherTable" on "tableName"."id" = "otherTable"."otherId"',
bindings:[]
}
},
'selects.13':{
mysql:{
sql:'select * from `tableName` left join `table2` on `tableName`.`one_id` = `table2`.`tableName_id` or `tableName`.`other_id` = `table2`.`tableName_id2`',
bindings:[]
},
postgres:{
sql:'select * from "tableName" left join "table2" on "tableName"."one_id" = "table2"."tableName_id" or "tableName"."other_id" = "table2"."tableName_id2"',
bindings:[]
},
sqlite3:{
sql:'select * from "tableName" left join "table2" on "tableName"."one_id" = "table2"."tableName_id" or "tableName"."other_id" = "table2"."tableName_id2"',