5 use Test::SQL::Translator qw(maybe_plan);
11 'SQL::Translator::Parser::SQLite',
12 'SQL::Translator::Producer::YAML');
15 my $sqlt_version = $SQL::Translator::VERSION;
151 reference_table: person
203 - update pet set name=name
211 perform_action_when: after
218 select pr.person_id, pr.name as person_name, pt.name as pet_name
219 from person pr, pet pt
220 where person.person_id=pet.pet_id
226 parser_type: SQL::Translator::Parser::SQLite
228 producer_type: SQL::Translator::Producer::YAML
231 version: $sqlt_version
234 my $file = "$Bin/data/sqlite/create.sql";
235 open FH, "<$file" or die "Can't read '$file': $!\n";
238 my $tr = SQL::Translator->new(
245 ok( $out = $tr->translate, 'Translate SQLite to YAML' );
246 eq_or_diff( $out, $yaml, 'YAML matches expected' );