SQL::Translator::Producer::GoogleBigQuery - Google BigQuery specific producer for SQL::Translator
use SQL::Translator; use SQL::Translator::Producer::GoogleBigQuery; my $t = SQL::Translator->new( parser => '...' ); $t->producer('GoogleBigQuery', outdir => './'); ## dump to ... $t->translate;
This module will produce text output of the schema suitable for Google BigQuery. It will be a '.json' file of BigQuery schema format.
outdir
Base directory of output schema files.
typemap
Override type mapping from DBI type to Goolge BigQuery type.
Example:
use DBI qw/:sql_types/; use SQL::Translator; use SQL::Translator::Producer::GoogleBigQuery; my $t = SQL::Translator->new( parser => '...' ); $t->producer('GoogleBigQuery', outdir => './', typemap => { SQL_TINYINT() => 'boolean' }); $t->translate;
Copyright (C) karupanerura.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
karupanerura <karupa@cpan.org>
To install SQL::Translator::Producer::GoogleBigQuery, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SQL::Translator::Producer::GoogleBigQuery
CPAN shell
perl -MCPAN -e shell install SQL::Translator::Producer::GoogleBigQuery
For more information on module installation, please visit the detailed CPAN module installation guide.